Retrieve Transaction Data for Withdrawing from Safe
Returns the EIP-712 typed data that needs to be signed by the user’s wallet to withdraw ERC20 tokens or native tokens (xDAI) from the user’s Safe account.
For ERC20 tokens, provide the token contract address. For native token (xDAI) withdrawals, use “0x0000000000000000000000000000000000000000” as the tokenAddress.
This endpoint is used as part of a three-step process:
- Call this endpoint to get the EIP-712 typed data
- Sign the typed data with the user’s wallet using EIP-712 signature standard
- Submit the signature to the POST
/api/v1/accounts/withdrawendpoint
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The address of the token to withdraw. Use "0x0000000000000000000000000000000000000000" for native token (xDAI) withdrawals.
^0x[a-fA-F0-9]{40}$The address to withdraw to.
^0x[a-fA-F0-9]{40}$The amount to withdraw in the token's base units.
^[1-9][0-9]*$Response
Successfully retrieved EIP-712 typed data for signing.