Overview
Every Chainrails transaction follows three simple steps from setup to completion:Request a Quote
Define the parameters for the transaction (the intent) — amount, source chain, source token, destination chain, recipient, and refund address. This tells Chainrails what the user wants to send and where it’s going.Generate an Intent Address
Once the quote is confirmed, Chainrails creates a unique intent address for that transaction. Think of this as a one-time deposit address that tracks and processes the transfer logic automatically.Fund the Intent
The user then funds this intent address directly from their wallet. Once funded, Chainrails takes care of the rest — executing the cross-chain transfer, routing liquidity, and confirming settlement. The SDK abstracts most of these steps, so you can integrate this entire flow in just a few lines of code. In this Quickstart, we’ll walk you through how to get up and running in minutes.Get started in three steps
1
Installation
Begin by installing the Chainrails SDK.
2
Obtain your API Key
Send us a message at [email protected] to get an API Key or create one from the dashboard. This key will be used to
authenticate your requests.
3
Initialize the Payment Modal
Import and initialize the Chainrails payment modal in your application.Where:
to: Your wallet address to receive payments/deposits.chain: The blockchain network to receive payments to.token: The token/currency you want to receive.amount: The amount to be paid/deposited. Leave empty or set to 0 to allow user input.
Demo
Check out our demo application to see Chainrails in action.

