Mesh Link Tokens

Link Tokens enable crypto-to-fiat transfers through the Levl platform by integrating with Mesh Connect. A link token authenticates and authorizes a user session, allowing them to securely transfer cryptocurrency from their connected exchange or wallet to fiat currency for the intended beneficiary.

Overview

The Link Token flow allows your users to:

  1. Connect their cryptocurrency exchange or wallet account
  2. Authorize a transfer of cryptocurrency
  3. Have the crypto converted to fiat and delivered to the beneficiary

This integration leverages Mesh Connect's infrastructure to provide a seamless user experience while maintaining security and compliance.

Request Parameters

ParameterTypeRequiredDescription
user_idstringYesYour internal user identifier
transfer_optionsobjectYesTransfer configuration options
transfer_options.to_addressesarrayYesList of destination wallet addresses
transfer_options.to_addresses[].addressstringYesWallet address to receive crypto
transfer_options.to_addresses[].blockchainstringYesBlockchain network (e.g., Solana, Ethereum)
transfer_options.to_addresses[].networkstringYesNetwork environment (e.g., mainnet)
transfer_options.to_addresses[].currencystringYesCryptocurrency (e.g., USDC, USDT)
transfer_options.amount_in_fiatstringYesAmount in fiat currency
transfer_options.currencystringYesFiat currency code (e.g., USD)
transfer_options.transaction_idstringYesYour unique transaction identifier

Response

The response includes:

FieldTypeDescription
transfer_idstring (UUID)Unique identifier for the created transfer
link_tokenstringBase64-encoded Mesh Connect URL

Using the Link Token

Once you receive the link token, decode it from base64 to obtain the Mesh Connect URL. You can then:

  1. Embed in an iframe: Initialize the Mesh Connect widget within your application
  2. Redirect: Send the user to the Mesh Connect URL to complete the transfer flow