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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

chainId
number
default:1

Chain ID of the network to execute the transaction on

fromAddress
string
default:0xd8da6bf26964af9d7eed9e03e53415d37aa96045
required

Ethereum address of the wallet to send the transaction from

routingStrategy
enum<string> | null

Routing strategy to use

Available options:
router,
delegate,
ensowallet
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
tx
object
required

The tx object to use in ethers

gas
string
required

The gas estimate for the transaction

token
string
required

The token address to approve

amount
string
required

The amount of tokens to approve

spender
string
required

The spender address to approve