Bridge/Swap
Requesting a quote
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
{ method: 'usd', value: '100' } // $100 worth{ method: 'fromAmount', value: '1000000' } // Exact input amount{ method: 'toAmount', value: '1000000' } // Exact output amountLast updated