---
title: "Returns transaction that approves your EnsoWallet-v2 to spend tokens"
method: GET
path: "/api/v1/wallet/approve"
tags: ["wallet"]
---

# Returns transaction that approves your EnsoWallet-v2 to spend tokens

`GET /api/v1/wallet/approve`

## Request

- Base URL: `https://api.enso.finance`
- URL: `https://api.enso.finance/api/v1/wallet/approve`
- Auth: HTTP bearer

## Query parameters

- `chainId` number, required
- `fromAddress` string, required
- `routingStrategy` 'ensowallet-v2' | 'router' | 'delegate' | 'router-legacy' | 'delegate-legacy', nullable
- `tokenAddress` string, required
- `amount` string, required

## Response `200`

- WalletApproveTransaction
  - `tx` WalletTransaction, required
    - `data` string, required
    - `to` string, required
    - `from` string, required
    - `value` string
  - `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

---

[API](https://skmtc.dev/enso/apis/enso-api-2.md) - [All operations](https://skmtc.dev/enso/apis/enso-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/enso/apis/enso-api-2/revisions/d43e21a824af?raw)
