How to Use Advanced Query Parameters
Some query parameters accept structured objects or arrays instead of simple strings. This guide provides detailed examples and explains how each parameter works so you can integrate them correctly.
Wallet Configuration
Set up destination wallets and control how users interact with the crypto transfer step.
walletAddressesData
Use this parameter to specify different wallet addresses for multiple networks or coins in a single request. If a currency requires a secondary identifier (tag, memo, or destination tag), include it in the addressAdditionalData field.
You can provide addresses keyed by network name or by coin symbol. The widget will automatically pick the correct address based on the user
walletRedirection
Enable wallet redirection to let your app handle the crypto transfer step directly. This is especially useful for off-ramp flows where you want to redirect users to your own withdrawal page with pre-filled transaction details.
With redirectURL
When walletRedirection=true is passed with a redirectURL (and productsAvailed=SELL):
- The user is redirected to the
redirectURLwith order info appended as query parameters when they click Transfer Crypto on the Complete Your Transfer page. - A
TRANSAK_WALLET_REDIRECTIONJavaScript event is emitted with the following payload:
- It is up to the partner to redirect users to their crypto withdrawal page by pre-filling the relevant details from the URL parameters or the event payload.
Without redirectURL
When walletRedirection=true is passed without a redirectURL:
- Only the
TRANSAK_WALLET_REDIRECTIONfrontend event is sent (with the same payload as above). - The partner listens for this event and redirects users to their crypto withdrawal page, pre-filling:
cryptoCurrencycryptoAmountnetworkwalletAddress
User Identity & KYC
Pre-fill user details to speed up onboarding and reduce friction during KYC verification.
userData
Pre-fill user identity details to streamline or skip the KYC form entirely. If all required fields — name, email, mobile number, date of birth, and address — are provided, the user will not be prompted to enter them again.
US Postal Code Format: The correct format is either 5 digits (12345) or 9 digits with a hyphen (12345-6789).
Redirects & Tracking
Control where users land after completing a transaction and capture order details for your backend.
redirectURL
After a transaction completes, the user is redirected to the URL you provide via redirectURL. Transak automatically appends the following query parameters so you can track the transaction on your end.
Example redirect URL:
The redirectURL parameter is supported across all integration methods — SDK, iFrame, Redirect Link, Webview, and React Native SDK. However, deeplinking (for example, redirecting users back into a mobile app) is only supported with the Browser Redirection integration method.
Token & Currency Configuration
Customize which tokens and currencies are available in the widget, including custom or unlisted tokens.
cryptoCurrencyData
Use this parameter to display a custom cryptocurrency in the widget that isn’t natively supported by Transak. Provide the token code, display name, and an image URL so it appears correctly in the UI.
sourceTokenData
Specify which token the user should pay with and how much. This is useful when you want to lock in a particular source token and amount for a swap or on-ramp transaction.
NFT Checkout Parameters
Configure NFT metadata, marketplace details, and smart contract calldata for NFT purchase flows.
nftData
Pass NFT metadata to configure the NFT Checkout experience. Each entry describes a collection, including the token IDs, individual prices, quantity, and the NFT standard (ERC721 or ERC1155).
tokenData
Provide token metadata for marketplace-based NFT purchases via platforms like OpenSea. This parameter lets you pass collection details, token IDs, and marketplace-specific settings for the checkout flow.
calldata
The calldata parameter contains the encoded hex data that is sent to your smart contract during a transaction. You’ll need to generate this from your contract’s ABI and compress it before passing it to Transak.
Not sure how to generate calldata? See How to Generate Calldata for NFT Checkout for a step-by-step guide.