Validate
Ownership validation enables the developer to check if the purchaser is holding an NFT from a specified collection. The transaction will fail if the purchaser does not have the NFT and succeed if they do.
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.
Use Case
Let's use a concert as an example where NFTs and SFTs could be used and how they would be different.
For SFTs, assume the user holds an SFT granting them general admission to the event. mtnAPI would verify that the user has the specified SPL address of the SFT and verify it on the blockchain. In the case of NFTs, assume the user holds an NFT that includes a specific row and seat number. The verification process is similar, with the only difference being validating the user is holding an NFT of a specific collection.
The POST request will return the desired discounted payment transaction
POST
https://api.mtnapi.com/validate
Query Parameters
Request Body
The GET request will return the merchant name and logo.
GET
https://api.mtnapi.com/validate
Query Parameters
Request Body
Last updated