Appearance
@swapped/connect-sdk / core / WalletTransferFeeCheck
Type Alias: WalletTransferFeeCheck
WalletTransferFeeCheck = {
isSponsored:boolean;networkFee:WalletTransferFee|null;status:"ok"; } | {message:string;requiredFee:WalletTransferFee;status:"insufficient_fee"; } | {message:string;requiredFee:WalletTransferFee;status:"exceeds_balance_with_fee";suggestedAmount:string; } | {availableAmount:string;message:string;minAmount:string;status:"below_min_after_fees"; }
Defined in: src/types/wallets.transfer.types.ts:238
Outcome of WalletsTransfer.getFeeCheck. Discriminate on status. The SDK never adjusts the transfer amount; use suggestedAmount in UI only.
Union Members
Type Literal
{ isSponsored: boolean; networkFee: WalletTransferFee | null; status: "ok"; }
Fees are covered, or the host will sponsor the send.
isSponsored
isSponsored:
boolean
Whether submit should pass isSponsored to the gateway.
networkFee
networkFee:
WalletTransferFee|null
Estimated network fee when known (/fees/network or swap quote). null when not applicable (e.g. bridge) or unavailable.
status
status:
"ok"
Type Literal
{ message: string; requiredFee: WalletTransferFee; status: "insufficient_fee"; }
Not enough native token to pay the network fee (typical for ERC-20 / TRC-20).
Type Literal
{ message: string; requiredFee: WalletTransferFee; status: "exceeds_balance_with_fee"; suggestedAmount: string; }
Native-token send: amount + fee + USD safety buffer exceeds balance. Lower the amount to suggestedAmount in the UI (see wallets.networkFeeBufferUsd).
Type Literal
{ availableAmount: string; message: string; minAmount: string; status: "below_min_after_fees"; }
Native-token send: balance minus fees is below getMinAmount.