Options for withdrawing accumulated protocol fees via OnboardingBridgeSDK.withdrawFees.
Only the configured fee-collector address may call this.
const balance = await sdk.getFeeBalance('CD...');await sdk.withdrawFees({ asset: 'CD...', amount: balance }, feeCollectorKeypair); Copy
const balance = await sdk.getFeeBalance('CD...');await sdk.withdrawFees({ asset: 'CD...', amount: balance }, feeCollectorKeypair);
Amount to withdraw, in the token's smallest unit. Must not exceed accrued fees.
Token contract address to withdraw fees for.
Options for withdrawing accumulated protocol fees via OnboardingBridgeSDK.withdrawFees.
Only the configured fee-collector address may call this.
Example