Withdraw

API Withdrawal structure:

{
    "maker": "str",
    "token": "str",
    "amount": {"type": "int", "min": 0},
    "salt": {"type": "int", "min": 0},
    "receiver": "str",
    "sign": {"type": "list", "min": 2,"max": 2, "item_schema": {"type": "str", "min": 0}},
    "gas_fee": {"type": "GasFee", "fields": "gas_fee_schema"}
}
  • maker: address of the trader who is performing the withdrawal

  • token: token being withdrawn

  • receiver: wallet address of the token recipient

  • sign: ecdsa sign of typed deposit message hash by order_signer private key

Note when building typed message for the withdraw, user should use the actual token addresses in the token field

Last updated