For NFT Collections on Secondary Marketplaces

A sample query string has been attached at the end of this page.

Note: All the query parameters marked with *(asterisk) are mandatory to send to successfully load the widget and complete the transaction.

Query ParameterExampleTypeDefault valueDescription
apiKey *4fcd6904-706b-4aff-bd9d-77422813bbb7stringYour API key for authentication.
contractID *63306038308c667bb8755b77stringcontractId is generated once you give Transak details about your smart contract and blockchain.

Contact sales to generate a contractID and start your integration.
tokenData *Examplebase64 encoded stringtokenData is an array that consists of only a single element. The value for this query param should be Base64 encoded.

It contains:
- nftName (optional)
- ImageURL (optional)
- collectionAddress (single field)
- tokenID (array of token IDs)
- marketplace (single field)
- normalizeRoyalties (boolean)

Note: You can pass multiple token IDs of the same collection to allow user to purchase multiple NFTs in a single txn.

In "normalizeRoyalties" you need to pass "yes/no"
isNFT *truebooleanPass this as “true”.

Note: If this is passed all these query parameters should be passed compulsorily - “contractId”, “tokenData”
walletAddress0x86349020e9394b2BE1b1262531B 0C3335fc32F20stringThe blockchain address of the user's wallet that the purchased NFT will be sent to. Users will be able to edit the wallet address. The wallet address needs to be valid for the NFT and blockchain network so to make sure this works you should pass cryptoCurrencyCode or network.
environmentSTAGINGstringPRODUCTIONTo differentiate between STAGING environment and PRODUCTION environment.

Note: This param will only work with our SDK integration method.
fiatCurrencyGBPstringThe code of the fiat currency you want the customer to buy NFT in. If the fiat currency is not supported by a specific product type then the default widget will load with all the supported fiat currencies for that product type.

You can find all the supported fiat currencies here.
defaultFiatCurrencyGBPstringThe three letter code of the fiat currency your user will send/receive while buying/selling cryptocurrency. Users can change the fiat currency if this is passed. If the fiat currency is not supported by a specific product type then the default widget will load with all the supported fiat currencies for that product type.
This parameter will be skipped if fiatCurrency or countryCode is passed.
countryCodeINstringThe country's https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2. The fiat currency will be displayed as per the country code. If the country code is not supported by a specific product type then the default widget will load with all the supported countries for that product type.
This parameter will be skipped if fiatCurrency is passed.
disablePaymentMethodscredit_debit_cardstringA comma-separated list of payment methods you want to disable and hide from the customers.
email[email protected]stringThe email that will be used to identify your customer and their order (usually the email that they registered with your app).

Note: Please encode the email if it contains any special characters before passing it to query parameters. Otherwise, it will not be considered.

Eg:
[email protected] ==> Works
[email protected] ==> will not work.
userDataExampleobjectHere you can pass your user's data like their name, address, date of birth in the object format. If you will pass all the basic user's data, the customer won't be prompted to enter it.
partnerOrderId5e2f559511a9destringAn order ID that will be used to identify the transaction once a webhook is called back to your app. This can be your identifier to track your customers.
partnerCustomerId23487492stringA customer ID that will be used to identify the customer that made the transaction once a webhook is called back to your app.
disableWalletAddressFormtruebooleanfalseWhen true, the customer will not be able to change the destination address of where the cryptocurrency is sent to.

Note: When this is used, walletAddress query param should be passed.
themeColor000000stringThe theme color code for the widget main color. It is used for buttons, links and highlighted text. Only hexadecimal codes are accepted.
widgetHeight100%string100%Height of the widget iFrame.

Note: This param will only work with our SDK integration method.
widgetWidth100%string100%Widget of the widget iFrame.

Note: This param will only work with our SDK integration method.
hideMenutruebooleanfalseWhen true, then the customer will not see the menu options. This will hide the menu completely.
isFeeCalculationHiddentruebooleanfalseWhen true, then the customer will not see our fee breakdown. The customer will only see the total fee. This parameter will be ignored if your fee (on top of us) is more than 1%.
exchangeScreenTitleBuy NFTstringTo change the exchange screen title.

Sample query string:

https://global-stg.transak.com/?
apiKey=69feba7f-a1c2-4cfa-a9bd-43072768b0e6
&contractId=6571546bc5b1b22385bc3c62
&isNFT=true
&tokenData=W3tuZnROYW1lOiAiRmlnaHQgQ2x1YiIsIGltYWdlVVJMOiAiaHR0cHM6Ly9pLnNlYWRuLmlvL3MvcmF3L2ZpbGVzL2M5YzY1Y2NiMjk5MTdhYTM5YjQ0OTU3MzA5MGI5MjIyLnBuZyIsY29sbGVjdGlvbkFkZHJlc3M6ICIweGM0OTFhNGEzNjAxZTk5MjMzNjY4MjM1MjNlZmUyOTQxNWY2NDMwYzMiLHRva2VuSUQ6IFsiMCJdLCBtYXJrZXRwbGFjZTogIm9wZW5zZWEiLG5vcm1hbGl6ZVJveWFsdGllczogZmFsc2V9XQ==