earn.getRedeemQuote
Gets the asset output for an exact vault share input, including fees.
Usage
import { client } from './viem.config'
const assetAmount = await client.earn.getRedeemQuote({
shareAmount: 100_000_000n,
vault: '0x0000000000000000000000000000000000000001',
})
99_500_000nimport { Account, createClient } from 'viem/tempo'
export const client = createClient({
account: Account.fromSecp256k1('0x...'),
})Return Value
bigint
The quoted asset output in base units.
Parameters
shareAmount
- Type:
bigint
Exact number of vault shares to redeem, in base units.
vault
- Type:
Address
Vault address.
blockNumber (optional)
- Type:
bigint
Block number to read the state from.
blockOverrides (optional)
- Type:
BlockOverrides
Block overrides to apply to the state.
blockTag (optional)
- Type:
BlockTag
Block tag to read the state from.
stateOverride (optional)
- Type:
StateOverride
State override to apply.