What is Token Gating?
Token gating in blockchain restricts access to specific features, functions, or services in a decentralized network based on owning certain tokens. It creates exclusive ecosystems where users must hold a set amount of tokens to access privileges or resources.
Gating Rules:-
Mojito handles 4 cases of gatings rules such as Contract Address
, Contract Address with Token Id
,MetaData
,Onchain
we are saving the above kind of rules against the group.
Contracts Address:
To validate owners' NFTs contain contract address in the rule.
Contract Address with Token ID:
To validate owners' NFTs contain the contract address and token id in the rule.
MetaData:
To validate owners' NFTs contain the metadata key value in the rule.
ContractAddressWithMetaData:
To validate the owner's NFTs contain the given contract address with metadata key exists.
ContractAddressWithTokenIDAndMetaData:
To validate the owner's NFTs contain the given specific contract address with token ID as well metadata key exists or metadata updated or not check to validate.
Onchain:
Validate to call blockchain smart contract methods.