GET
/
api
/
v1
/
wallet
/
approve
curl --request GET \
  --url https://api.enso.finance/api/v1/wallet/approve
{
  "tx": {},
  "gas": "<string>",
  "token": "<string>",
  "amount": "<string>",
  "spender": "<string>"
}

Query Parameters

chainId
number
default:1

Chain ID of the network to execute the transaction on

fromAddress
string
required

Ethereum address of the wallet to send the transaction from

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

routingStrategy
enum<string> | null

Routing strategy to use. Use the same routing strategy you used to create the transaction.

Available options:
ensowallet,
router,
delegate,
router-legacy,
delegate-legacy
tokenAddress
string
default:0x6b175474e89094c44da98b954eedeac495271d0f
required

ERC20 token address of the token to approve

amount
string
default:1000000000000000000000000000
required

Amount of tokens to approve in wei

Response

200 - application/json

The response is of type object.