On Ramp Quote
Convert fiat currency to cryptocurrency (e.g., BRL to BRZ via PIX).
Note: we currently only support BRL → BRZ on ramps at the moment.
Request a Quote
You can request a quote using an existing recipient ID or by passing the settlement details directly in the payload.
const quote = await orda.onRamp.requestQuote({
fromCurrency: 'BRL',
intent: {
method: 'fromAmount',
value: '100.00'
},
recipientId: 'recipient-id'
});
console.log('PIX Key:', quote.depositInstructions.pixKey);
console.log('Transaction ID:', quote.transactionId);const quote = await orda.onRamp.requestQuote({
fromCurrency: 'BRL',
intent: {
method: 'usd',
value: '100'
},
settlementDetails: {
toChain: '8453',
toToken: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913',
toAddress: '0xRecipientAddress'
}
});Deposit Instructions
The quote response includes PIX deposit details and a QR code formatted in Base64.
{
"transactionId": "tx-id",
"depositInstructions": {
"pixKey": "[email protected]",
"pixKeyType": "EMAIL",
"amount": "100.00",
"currency": "BRL"
}
}Get Status
const status = await orda.onRamp.getStatus(quote.transactionId);
console.log(status.status); // 'AwaitingDeposit', 'Processing', 'Completed', etc.Wait for Completion
await orda.onRamp.waitForCompletion(quote.transactionId, {
intervalMs: 15000,
timeoutMs: 3600000,
onStatusUpdate: (status) => console.log('Status:', status)
});Terminal Statuses
Last updated