---
title: "Build an approval transaction for ERC20 token"
method: POST
path: "/api/v2/{coin}/wallet/{walletId}/token/approval/build"
tags: ["Wallet"]
---

# Build an approval transaction for ERC20 token

`POST /api/v2/{coin}/wallet/{walletId}/token/approval/build`

## Path parameters

- `coin` string, required — A cryptocurrency symbol or token ticker symbol
- `walletId` string, required

## Request body

- object
  - `tokenName` string, required
  - `amount` string
  - `gasLimit` number
  - `gasPrice` number
  - `eip1559` object
    - `maxFeePerGas` number, required
    - `maxPriorityFeePerGas` number, required

## Response `200`

OK

- BuildTokenApprovalResponse
  - `txHex` string, required
  - `txInfo` object, required
    - `amount` string, required
    - `contractAddress` string, required
    - `spender` string, required
  - `recipients` object[], required
    - `address` string, required
    - `amount` string, required
    - `data` string, required
  - `eip1559` object
    - `maxFeePerGas` string, required
    - `maxPriorityFeePerGas` string, required
  - `nextContractSequenceId` number, required
  - `coin` string, required
  - `walletId` string, required

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/bitgo/apis/bitgo-api.md) · [All operations](https://skmtc.net/bitgo/apis/bitgo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitgo/bitgo-api/revisions/e445c15e5bee/schema)
