Creates a fiat-to-crypto order. Fetches a fresh quote, creates a Chainrails intent, and initiates the order with the ramp provider.
Enter your Chainrails API key as a Bearer token
Ramp provider to use for this order
FONBNK, ONRAMP_MONEY "FONBNK"
ISO 4217 fiat currency code
"NGN"
Amount of crypto the user wants to receive
10
Destination blockchain where user wants their funds
ARBITRUM_MAINNET, ARBITRUM_TESTNET, AVALANCHE_MAINNET, AVALANCHE_TESTNET, BASE_MAINNET, BASE_TESTNET, STARKNET_MAINNET, STARKNET_TESTNET, BSC_MAINNET, ETHEREUM_MAINNET, ETHEREUM_TESTNET, OPTIMISM_MAINNET, OPTIMISM_TESTNET, MONAD_MAINNET, MONAD_TESTNET, POLYGON_MAINNET, HYPEREVM_MAINNET, LISK_MAINNET "BASE_MAINNET"
Recipient wallet address on the destination chain
"0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb"
ISO 3166-1 alpha-2 country code of the user. Required for multi-country currencies (e.g., XOF — pass "BJ" for Benin, "SN" for Senegal). Falls back to the currency's default country if omitted.
"NG"
Provider-specific fields required by the payment channel (e.g., phone number, bank code)
{ "phoneNumber": "+2348012345678" }Ramp order created successfully