mtnAPI is the service layer for transaction requests. To leverage mtnAPI via the QR code approach, it's important to understand that your customers or dApp users need to have a Solana Pay enabled wallet ( Phantom, Glow, FTX, Solflare, etc.) These wallets are built to recognize QR codes with a transaction request URL inside of them.
To get started with implementing transaction requests, you will need to generate a QR code in your software with a URL that specifies where to request the desired serialized transaction. mtnAPI comes into play when you're ready to create the request URL.
mtnAPI offers a suite of endpoints that developers can use as the "link" parameter for their Transaction Request string. Each endpoint will request transactions for different use cases.
Once you have an understanding of what type of payment, verification, or redemption functionality you want to provide for your users, take a look at the mtnAPI endpoint descriptions below. When you've found an endpoint that aligns with your use case, simply insert it as the "link" parameter in your transaction request URL.
Enables developers to perform robust payments on the Solana network.
- SOL or SPL Token Payments
- Token Discounted Payments
- Token Gated Payments
Enables the developer to provide a “headless mint” via a physical or digital QR code. The Transaction Request will mint an NFT from the provided Candy Machine public key.
Enables the developer to check if the user is holding an NFT from a specified collection. The transaction will fail if the user does not have the NFT and succeed if they do.