@exodus/fees
v1.2.3
Published
Fees module
Downloads
8,102
Readme
@exodus/fees
This Exodus SDK feature provides an API to calculate fees for a draft transaction.
Install
yarn add @exodus/fees
Usage
This feature is designed to be used together with @exodus/headless
and is included by default. See using the sdk.
Play with it
- Open the playground https://exodus-hydra.pages.dev/features/fees
- Run
await exodus.fees.getFees({ assetName: 'bitcoin', walletAccount: 'exodus_0' })
in the Dev Tools Console.
API Side
See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.
const { fee } = await exodus.fees.getFees({ assetName: 'bitcoin', walletAccount: 'exodus_0' })
UI Side
See using the sdk for more details on basic UI-side setup.