Pay

The Rules

  • You can only specify either size or quantity. Specifying neither or both will trigger an error. 'size' is a human readable value. ( eg. 1.2 SOL ) . 'Quantity' is the base unit, like lamports. (eg. 1200000000 lamports)

  • You can only set either discount or gated. Specifying both will trigger an error. Setting discount will imply that payers with validated tokens will receive the discount specified. Setting gated will imply the payer can only pay if they have the validated tokens.

  • You can only set either collection or mint. Specifying more than one will trigger an error.

    • collection will validate the payer is holding an NFT from the verified collection specified.

    • mint will validate the payer is holding a token with the specified mint address.

A payment transaction based on the parameters.

POST https://api.mtnapi.com/pay

Query Parameters

Request Body

{
    transaction: "<transaction>"
}

Last updated