Retrieve Token Gating

Returns whether the given address holds a specific ERC-20, ERC-721, or ERC-1155 token.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

Supported on Monad Mainnet and Testnet.

🚧

The Monad Mainnet Indexing API is available to Pro tier users. The Monad Testnet Indexing API is accessible to Pro, Basic, and Lite tiers. Free tier members can also enjoy a trial period with 30 free calls. The same request URL is used for both mainnet and testnet. Network selection is handled automatically through the API key.

If you're interested, please register directly through here. Please note that the API Key can also be used for your RPC endpoint.

Parameter

  • account, string - a 42 character address with '0x' as prefix.
  • contractAddress, string - a 42 character address with '0x' as prefix. Supports tokens following ERC-20, ERC-721, and ERC-1155 standards.

Response

  • code, number - response status code, e.g., 0 for success.
  • reason, string - reason message if there's an error.
  • message, string - response message, e.g., OK.
  • result, object - result object containing contract source code and metadata.
    • hasToken, boolean - whether the user holds this token.
    • tokenIds, string array - a string array representing the list of token IDs owned by the account.
Query Params
string
required
Defaults to 0x1d6f4d93ac7aa8574865666ab863De72129c1781

account address

string
required
Defaults to 0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A

token contract address

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json