withdraw
Documentation for eth_defi.orderly.vault.withdraw function.
- withdraw(vault, *, amount, token, wallet_address, orderly_account_id, broker_id, token_id=None)
Withdraw tokens from the Orderly vault.
See also: https://orderly.network/docs/build-on-omnichain/user-flows/withdrawal-deposit
- Parameters
vault (eth_defi.orderly.vault.OrderlyVault) – The vault to deposit into.
amount (int) – The amount of tokens to deposit.
token (web3.contract.contract.Contract) – The token to deposit.
wallet_address (eth_typing.evm.HexAddress) – The wallet address to deposit from.
orderly_account_id (eth_typing.evm.HexAddress) – The orderly account ID to deposit to.
broker_id (str) – The broker ID to deposit to.
token_id (str | None) – The token ID to deposit to.
- Return type
tuple[web3.contract.contract.ContractFunction, web3.contract.contract.ContractFunction, web3.contract.contract.ContractFunction]