For the complete documentation index, see llms.txt. This page is also available as Markdown.

Allowance

get

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

Authorizations
AuthorizationstringRequired
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

Interface representing the structure of an API response for ERC20 operations.

successbooleanRequired

Indicates whether the API request was successful.

messagestringRequired

A message providing additional information about the API response.

datastringOptional

Optional data payload returned by the API.

get/erc20/{account}/allowance
GET /erc20/{account}/allowance?chainId=text&address=text&owner=text&spender=text 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"
}