Allowance

get

Retrieves the allowance of a specified ERC20 token for a given owner and spender.

Authorizations
Path parameters
accountstringRequired
  • The account address making the request.
Query parameters
chainIdstringRequired
  • The ID of the blockchain network.
addressstringRequired
  • The contract address of the ERC20 token.
ownerstringRequired
  • The address of the token owner.
spenderstringRequired
  • The address of the spender.
Header parameters
AuthorizationstringRequired
  • The authorization token from the request header.
Responses
200
A promise that resolves to an ERC20APIResponse containing the allowance as a string.
application/json
get
GET //erc20/{account}/allowance HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Accept: */*
200

A promise that resolves to an ERC20APIResponse containing the allowance as a string.

{
  "success": true,
  "message": "text",
  "data": "text"
}