3mint
  • 👋Welcome to 3mint
  • 💻3mint Platform
    • Introduction
    • Deploy a contract
    • Upload your NFT data
    • Create checkout links
    • Add customers
    • Monitor your links
  • ⌨️Developer Guides
    • Introduction
    • Contracts
      • Contract Architecture
      • End-to-end Example
    • Mint
      • How To
      • End-to-end Example
      • Code Snippets
    • Wallets
      • End-to-end Example
      • Mobile Pass
        • Creating Passes
    • Token Gating
      • End-to-end Example
      • Code Snippets
  • 📖API Reference
    • Overview
    • Contracts
      • Deploy Contract
      • Get Contract
    • Collectibles
      • Get All Templates
      • Mint Collectible
    • Wallets
      • Create Wallet
      • Get Wallet
    • Customers
      • Create Customer
      • Get Customer
      • Delete Customer
    • Claim Links
      • Create Link
      • Update Link
    • Token Gating
      • Create Gate
  • ❓FAQ
    • Web3 101
    • Platform
Powered by GitBook
On this page
  • Verifying token gating requirements
  • Validate address elements
  1. API Reference
  2. Token Gating

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

{
  "code":"invalid_request",
  "msg":"string"
}
{
    "result": "true"
}
{
  "code":"invalid_request",
  "msg":"string"
}
PreviousToken GatingNextWeb3 101

Last updated 2 years ago

📖