Skip to content

Approve ERC20 Token Spending

POST
/asset/erc20/approve

Approve an ERC20 token spender for a given amount.

Note: This endpoint is in beta and may be subject to changes.

Authorizations

Request Body required

object
spender

The address allowed to spend tokens.

string
amount

The amount of tokens to approve.

string
contractDeploymentId

The deployment ID of the ERC20 contract.

string
signingWalletId

The wallet ID used to sign the transaction.

string

Responses

200

Approval successful.

object
queryId
string
uuid

400

Bad request, missing or invalid parameters.

object
code

HTTP status code.

integer
status

Status message, e.g., “INTERNAL_SERVER_ERROR”.

string