Fees module
npm install @exodus/feesThis Exodus SDK feature provides an API to calculate fees for a draft transaction.
``sh`
yarn add @exodus/fees
This feature is designed to be used together with @exodus/headless and is included by default. See using the sdk.
1. Open the playground https://exodus-hydra.pages.dev/features/fees
2. Run await exodus.fees.getFees({ assetName: 'bitcoin', walletAccount: 'exodus_0' }) in the Dev Tools Console.
See using the sdk for more details on how features plug into the SDK and the API interface in the type declaration.
`ts``
const { fee } = await exodus.fees.getFees({ assetName: 'bitcoin', walletAccount: 'exodus_0' })
See using the sdk for more details on basic UI-side setup.