Token Gated Payments
Much like a token discounted payment, a token gated payment will cause the transaction to fail if the 'buyer' does not have an NFT from the specified collection or list.
How it Works
Developer specifies an NFT collection or an SPL mint address for an SFT as the verification target. mtnAPI uses the index API to query all the NFTs and SFTs in the user's wallet.
mtnAPI verifies whether an NFT belongs to a collection or an SFT belongs to a specific SPL token address.
If mtnAPI validates the above, there is a program with instruction included in the transaction that verifies NFT or SFT collection on-chain to provide a trusted solution.
If verification returns true, the purchase amount will be allowed to proceed (if they have the tokens). Id the verification is false, the transaction will fail.
Make sure you are following the rules of the API!
Example (Mint Gated Payment)
Last updated