Prepare a one-time permit2 approval transaction for a given token.
This is only required if the owner would like to transfer tokens from their wallet to their Earn Account with gas-sponsorship.
This approval transaction itself can be submitted with gas-sponsorship.
In this case, EIP-712 typed data will be returned and should be signed by the owner off-chain.
This signature can then be submitted to the ‘Prepare gas-sponsored transaction’ endpoint (/gas_sponsorship/prepare).
Gas-sponsored approvals can only be achieved by ERC-20 tokens that support permit (EIP-2612).
Some tokens, like USDT and WETH, do not allow for this behavior.
In the case of non-permit tokens, the one-time approval transaction can be submitted in the conventional manner where the owner must sign, submit and pay gas for the transaction.
The owner of the smart account's address.
Blockchain network
base, ethereum, arbitrum The token you would like to transfer with gas sponsorship.
"USDC"
"WETH"
"0xA0b86a33E6441ccF30EE5DdEF1E9b652C91ac1c8"
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.