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:
- Connect their cryptocurrency exchange or wallet account
- Authorize a transfer of cryptocurrency
- 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
| Parameter | Type | Required | Description |
|---|---|---|---|
user_id | string | Yes | Your internal user identifier |
transfer_options | object | Yes | Transfer configuration options |
transfer_options.to_addresses | array | Yes | List of destination wallet addresses |
transfer_options.to_addresses[].address | string | Yes | Wallet address to receive crypto |
transfer_options.to_addresses[].blockchain | string | Yes | Blockchain network (e.g., Solana, Ethereum) |
transfer_options.to_addresses[].network | string | Yes | Network environment (e.g., mainnet) |
transfer_options.to_addresses[].currency | string | Yes | Cryptocurrency (e.g., USDC, USDT) |
transfer_options.amount_in_fiat | string | Yes | Amount in fiat currency |
transfer_options.currency | string | Yes | Fiat currency code (e.g., USD) |
transfer_options.transaction_id | string | Yes | Your unique transaction identifier |
Response
The response includes:
| Field | Type | Description |
|---|---|---|
transfer_id | string (UUID) | Unique identifier for the created transfer |
link_token | string | Base64-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:
- Embed in an iframe: Initialize the Mesh Connect widget within your application
- Redirect: Send the user to the Mesh Connect URL to complete the transfer flow
Updated 20 days ago
