1.2.4 • Published 1 year ago
@exodus/fees v1.2.4
@exodus/fees
This Exodus SDK feature provides an API to calculate fees for a draft transaction.
Install
yarn add @exodus/feesUsage
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.