Transfer tokens to and from an Earn Account.
If DEPOSIT’is selected, tokens will be transferred from theowner`‘s wallet into their Earn Account.
If WITHDRAW is selected, tokens will be transferred from the owner’s Earn Account into their wallet.
If a gas-sponsored DEPOSIT transfer is desired for a given token, a one-time Permit2 allowance must be set before proceeding. This is common practice for many other applications and, for many owners, this one-time allowance will already have been set for the token they would like to transfer.
Once the one-time allowance is set for a given token and gas_sponsorship is set to ‘true’, EIP-712 typed data will be returned and can be signed off-chain by the user. This signature can then be submitted to the ‘Prepare gas-sponsored transaction’ endpoint (/gas_sponsorship/prepare) where a sender can be set for the transaction.
The owner's wallet address.
Blockchain network
base, ethereum, arbitrum The token you would like to transfer.
The amount of 'token' to transfer.
x > 01.5
Whether you are depositing to or withdrawing from your earn account.
DEPOSIT, WITHDRAW Optionally request gas sponsorship. If set to true, EIP-712 signature data will be returned that must be signed by the owner and submitted to the /gas_sponsorship/prepare endpoint.
The address of the wallet which will send the transaction. This only needs to be set when action is 'DEPOSIT' and gas_sponsorship is true.