latestOpenAPI 3.0.02026-08-2232150173.9 KB
b70d36b7002b
wallet
Returns transaction that approves your EnsoWallet-v2 to spend tokens
get/api/v1/wallet/approve
Query parameters
chainIdnumber required
Chain ID of the network to execute the transaction on
fromAddressstring required
Ethereum address of the wallet to send the transaction from
routingStrategy'ensowallet-v2' | 'router' | 'delegate' | 'router-legacy' | 'delegate-legacy' nullable
Routing strategy to use
tokenAddressstring required
ERC20 token address of the token to approve
amountstring required
Amount of tokens to approve in wei
Response
Example response
{
"tx": {
"data": "0x",
"to": "0x1111111111111111111111111111111111111111",
"from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
"value": "0"
}
}