{s}omniamarkets

@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / WithdrawVaultParams

Interface: WithdrawVaultParams

Defined in: trade.ts:386

Claim a payout that fell back to a pool's internal ERC20Vault (a PayoutFallbackToVault credit) back to the caller's wallet.

Properties

vault

vault: `0x${string}`

Defined in: trade.ts:391

The ERC20Vault to withdraw from — the pool address (BinaryPool/SpotPool ARE ERC20Vaults).


token

token: `0x${string}`

Defined in: trade.ts:393

Token to withdraw (ERC-20 address, or the vault's native sentinel).


amount

amount: bigint

Defined in: trade.ts:398

Amount to withdraw, raw units. Must be ≤ the vault's withdrawable balance (read it with client.getVaultBalance).


gas?

optional gas?: bigint

Defined in: trade.ts:400

Gas ceiling for this tx.

Default Value

TraderConfig.gas (10,000,000)