このエンドポイントを使用すると、NMKR Payを介した複数の特定トークンの購入プロセスの前に、独自のカスタムキューまたはホワイトリストシステムを柔軟に追加できます。
/v2/CreatePaymentTransaction
さらに、販売したいトークンの「projectUid」(プロジェクトIDではない)と「nftUids」(トークンIDではない)、そしてそれぞれのトークン数を指定します。
curl --request POST \
--url https://studio-api.nmkr.io/v2/CreatePaymentTransaction \
--header 'Content-Type: application/json' \
--header 'authorization: <your API Key>' \
--data '{
"projectUid": "9e2d000a-ed53-4db4-819b-25cdab41fd47",
"paymentTransactionType": "nmkr_pay_specific",
"paymentgatewayParameters": {
"mintNfts": {
"reserveNfts": [
{
"nftUid": "608bf1ba-79e5-4e84-b011-e12e0ed0999f",
"tokencount": 1
},
{
"nftUid": "5cd4bebb-c0c5-48ed-ab25-58aa19639840",
"tokencount": 1
}
]
}
},
"customerIpAddress": "1.2.3.4"
}'
{
"paymentTransactionUid": "Ta1a88a1cf1744c76889396c9ae916a88",
"projectUid": "9e2d000a-ed53-4db4-819b-25cdab41fd47",
"paymentTransactionType": "nmkr_pay_specific",
"customProperties": {},
"state": "prepared",
"transactionParameters": [
{
"tokencount": 1,
"policyId": null,
"tokenname": "ThatsWhy0038",
"tokennameHex": "546861747357687930303338"
},
{
"tokencount": 1,
"policyId": null,
"tokenname": "ThatsWhy0042",
"tokennameHex": "546861747357687930303432"
}
],
"paymentTransactionCreated": "2023-08-17T12:31:06.2258978+00:00",
"paymentgatewayResults": {
"priceInLovelace": 80000000,
"fee": null,
"minUtxo": null,
"mintNfts": {
"countNfts": 1,
"reserveNfts": [
{
"nftUid": "608bf1ba-79e5-4e84-b011-e12e0ed0999f",
"tokencount": 1,
"tokennameHex": "546861747357687930303338",
"policyId": null,
"nftId": 286521,
"lovelace": null
},
{
"nftUid": "5cd4bebb-c0c5-48ed-ab25-58aa19639840",
"tokencount": 1,
"tokennameHex": "546861747357687930303432",
"policyId": null,
"nftId": 286525,
"lovelace": null
}
]
},
"additionalPriceInTokens": []
},
"paymentTransactionSubStateResult": null,
"auctionResults": null,
"directSaleResults": null,
"directSaleOfferResults": null,
"decentralParameters": null,
"mintAndSendResults": null,
"smartContractInformation": null,
"cbor": "",
"signedCbor": "",
"expires": null,
"signGuid": null,
"fee": null,
"txHash": null,
"nmkrPayUrl": "https://pay.nmkr.io/?mtid=Ta1a88a1cf1744c76889396c9ae916a88",
"referencedTransaction": null,
"customeripaddress": "1.2.3.4",
"referer": null
}