# crypto.link.com crypto.link.com is Link's crypto onramp powered by Stripe. It enables purchasing of cryptocurrency directly with a credit card, debit card, or bank transfer and have it delivered to the users specified wallet. ## API ### POST /agents/create_session **Request parameters** (all optional): `destination_currency` — The cryptocurrency to purchase. Examples: `usdc`, `eth`, `btc`, `sol`. `destination_network` — The blockchain network. Examples: `ethereum`, `base`, `bitcoin`, `solana`. Both should be specified together. Supported combinations: - USDC on Base: `destination_currency=usdc`, `destination_network=base` - USDC on Ethereum: `destination_currency=usdc`, `destination_network=ethereum` - USDC on Solana: `destination_currency=usdc`, `destination_network=solana` - USDC on Polygon: `destination_currency=usdc`, `destination_network=polygon` - USDC on Optimism: `destination_currency=usdc`, `destination_network=optimism` - USDC on Avalanche: `destination_currency=usdc`, `destination_network=avalanche` - USDC on Stellar: `destination_currency=usdc`, `destination_network=stellar` - USDC on Aptos: `destination_currency=usdc`, `destination_network=aptos` - USDC on Worldchain: `destination_currency=usdc`, `destination_network=worldchain` - ETH on Ethereum: `destination_currency=eth`, `destination_network=ethereum` - ETH on Base: `destination_currency=eth`, `destination_network=base` - ETH on Optimism: `destination_currency=eth`, `destination_network=optimism` - BTC on Bitcoin: `destination_currency=btc`, `destination_network=bitcoin` - SOL on Solana: `destination_currency=sol`, `destination_network=solana` - MATIC on Polygon: `destination_currency=matic`, `destination_network=polygon` - AVAX on Avalanche: `destination_currency=avax`, `destination_network=avalanche` - APT on Aptos: `destination_currency=apt`, `destination_network=aptos` - WLD on Worldchain: `destination_currency=wld`, `destination_network=worldchain` - XLM on Stellar: `destination_currency=xlm`, `destination_network=stellar` - XRP on XRPL: `destination_currency=xrp`, `destination_network=xrpl` - RLUSD on XRPL: `destination_currency=rlusd`, `destination_network=xrpl` - RLUSD on Ethereum: `destination_currency=rlusd`, `destination_network=ethereum` `supported_destination_currencies` — Comma-separated list of currencies to offer. Example: `supported_destination_currencies=usdc,eth,sol` `supported_destination_networks` — Comma-separated list of networks to offer. Example: `supported_destination_networks=base,ethereum,solana` `source_amount` — Amount in USD the user wants to spend. Example: `50.00` `destination_amount` — Amount of crypto the user wants to receive. Specify at most one of `source_amount` or `destination_amount`. `wallet_addresses` — A hash of wallet addresses keyed by network name. The address must be valid for the specified network. Example: `wallet_addresses[base_network]=0x...` **Response:** ``` { "redirect_url": "https://crypto.link.com?session_hash=123" } ``` After receiving the `redirect_url`, redirect the user to that URL to complete the onramp purchase. **Example curl request:** ``` curl -X POST https://crypto.link.com/agents/create_session -d "destination_currency=usdc" -d "destination_network=base" -d "wallet_addresses[base_network]=0x1234567890abcdef1234567890abcdef1234567" ```