Important Integration Notes
Handling of failed bridging operations
Automatic refunds
Retry of the transaction on destination chain
Monetisation
const quoteParams = new URLSearchParams({
originChain: '8453',
destinationChain: '42161',
sellToken: '0x4200000000000000000000000000000000000006',
buyToken: '0xaf88d065e77c8cc2239327c5edb3a432268e5831',
sellAmount: '100000000000000000000',
originAddress: '$USER_TAKER_ADDRESS',
sortRoutesBy: 'price',
// Monetisation parameters
feeRecipient: '0x2fb3a9fb601808e110b1ade14068d69c3bfe0fef' // address to which the fee should be sent
feeBps: 100 // The amount in bps of the amount that will be delivered to the feeRecipient
// Or, to collect multiple fees
feeRecipient: '0x2fb3a9fb601808e110b1ade14068d69c3bfe0fef,0x3bb2a1fb601808e110b1ade14068d69c3bfe0fef' // addresses to which the fee should be sent
feeBps: '100,200' // The amounts in bps of the amount that will be delivered to the `feeRecipient`s
// In both cases feeToken is optional as currently it is only possible to collect fees in sellToken
});Last updated