Create Gate
Verifying token gating requirements
Validate address elements
POST
https://api.3mint.io/api/v1/tokenGate
Single API call that verifies the ownership of a token and returns whether or not certain conditions are met.
Headers
Name | Type | Description |
---|---|---|
X-API-KEY* | String | API key required for authorization |
Content-Type* | String | application/json |
Request Body
Name | Type | Description |
---|---|---|
contractAddress | String | The address of an ERC-20, ERC-721, or ERC-1155 contract |
logic | String | The and / or element to combine multiple requirements |
requirements | List | An extra list of requirements if a combo requirement is needed |
type* | String | The type of asset being verified: erc1155, erc721, erc20, coin |
walletAddress* | String | The address of an Externally Owned Account (EOA) |
network | String | The network in question: Mainnet, Mumbai, Goerli, etc. |
tokenIds | Array | A list of token IDs |
chain | String | The blockchain to use: Ethereum, Polygon, Optimism, etc. |
minBalance | String | Minimum balance required |
maxBalance | String | Maximum balance required |
minTime | String | Minimum amount of time a wallet must hold the required balance |
minTimestamp | String | The date from which the wallet must hold the required balance |
Last updated