TransferOptions
object within your link token request to specify the parameters of the payment transaction. This includes defining the acceptable cryptocurrencies, their respective destination addresses, and the payment amount.
ToAddresses
array within TransferOptions
allows you to define the cryptocurrencies users can pay with and the corresponding receiving addresses. Each object in this array represents a payment option.
Important: For each entry in the ToAddresses
array, you must provide the Mesh-specific Unique Identifier (UID) for the network on which the supported token resides. Refer to the Mesh Connect documentation for a comprehensive list of supported tokens, networks, and their Mesh UIDs: Tokens | Networks | Integrations
ToAddresses
array. For each object, specify the network, symbol, and destination address.
Link Token Request Body:
NetworkId
: The Mesh UID of the network.Symbol
: The cryptocurrency symbol.Amount
: The amount the user is expected to pay, in the cryptocurrency specified by the Symbol.Address
: The recipient’s cryptocurrency address.TransactionId
: A unique identifier for this payment transaction. This is crucial for mapping payments to orders or other internal systems.AmountInFiat
and a single network/token/address combination, Link will bypass asset and network selection, taking the user directly to the payment preview.
Link Token Request Body:
AmountInFiat
: The payment amount in fiat currency (e.g., USD).ClientFee
parameter in the link token request.
Important:
ClientFee
will override any default fee configured in your Mesh dashboard for the transaction.ClientFee
: A decimal representing the fee percentage (e.g., 0.025
for 2.5%)."FundingOptions": { "Enabled": true }
during the initial setup of the Link UI. You do this by including the following setting in your Link initialization code:
👍 This is best suited forWith this option enabled, if a user doesn’t have enough balance for a transfer, Mesh can guide them through using the balances in their account, and payment methods linked to their account to top up their balance.payment
oronRamp
transfer types and operate best with a single token and a passed amount parameter