Bridge/Swap
Request quotes for crypto transfers with flexible intent methods.
Requesting 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.quote.request({
fromChain: '1', // Ethereum
fromToken: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
fromAddress: '0xYourAddress',
intent: {
method: 'usd',
value: '100'
},
recipientId: 'recipient-id'
});const quote = await orda.quote.request({
fromChain: '1',
fromToken: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
fromAddress: '0xYourAddress',
intent: {
method: 'fromAmount',
value: '1000000' // 1 USDC (6 decimals)
},
settlementDetails: {
toChain: '8453',
toToken: '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913',
toAddress: '0xRecipientAddress'
}
});Intent Methods
Use one of these intent methods to specify the quote intent.
{ method: 'usd', value: '100' } // $100 worth{ method: 'fromAmount', value: '1000000' } // Exact input amountThe intent value when using fromAmount must be in smallest units (e.g. for USDC with 6 decimals: 100000 = 1 USDC)
{ method: 'toAmount', value: '1000000' } // Exact output amountThe intent value when using toAmount must be in smallest units (e.g. for USDC with 6 decimals: 100000 = 1 USDC)
Last updated