API Reference

Retrieve Token Gating

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

📘

Supported on Monad Testnet.

🚧

The Token Gating API on Monad is currently available to our paid Members. Free tier members can also enjoy a trial period with 30 free calls. 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.
Language
Credentials
Header
Click Try It! to start a request and see the response here!