curl --request POST \
--url https://quote.rapidx.app/api/rapidquote \
--header 'Content-Type: application/json' \
--data '
{
"chainIdFrom": 123,
"chainIdTo": 123,
"fromToken": "<string>",
"toToken": "<string>",
"fromWalletAddress": "<string>",
"toWalletAddress": "<string>",
"amountIn": "<string>"
}
'{
"Data": {
"Data": {
"success": true,
"message": "<string>",
"data": {
"id": "<string>",
"isMultiChain": true,
"route": {
"sourceTransaction": {
"dexName": "<string>",
"fromToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"toToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"gasCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"feeCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"approvalAddress": "<string>",
"callData": "<string>",
"receviableAmountByDex": {
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"amountInWei": "<string>",
"amountInUSD": "<string>"
},
"alreadySupportedToken": true
},
"destinationTransaction": {
"dexName": "<string>",
"fromToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"toToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"gasCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"feeCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"approvalAddress": "<string>",
"callData": "<string>",
"receviableAmountByDex": {
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"amountInWei": "<string>",
"amountInUSD": "<string>"
},
"alreadySupportedToken": true
}
},
"quote": {
"fromAmount": "<string>",
"toAmount": "<string>",
"totalCostInUSD": "<string>",
"approvalAddress": "<string>",
"recevableAmoutAtDestination": {
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"amountInWei": "<string>",
"amountInUSD": "<string>"
}
},
"transactionData": {
"data": "<string>",
"to": "<string>",
"value": "<string>",
"from": "<string>",
"chainId": 123,
"gasPrice": "<string>",
"gasLimit": "<string>"
},
"executorTransactionData": {
"data": "<string>",
"to": "<string>",
"value": "<string>",
"from": "<string>",
"chainId": 123,
"gasPrice": "<string>",
"gasLimit": "<string>"
}
},
"timestamp": "2023-11-07T05:31:56Z"
}
}
}Get a cross-chain bridge quote for token swaps between different blockchain networks
curl --request POST \
--url https://quote.rapidx.app/api/rapidquote \
--header 'Content-Type: application/json' \
--data '
{
"chainIdFrom": 123,
"chainIdTo": 123,
"fromToken": "<string>",
"toToken": "<string>",
"fromWalletAddress": "<string>",
"toWalletAddress": "<string>",
"amountIn": "<string>"
}
'{
"Data": {
"Data": {
"success": true,
"message": "<string>",
"data": {
"id": "<string>",
"isMultiChain": true,
"route": {
"sourceTransaction": {
"dexName": "<string>",
"fromToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"toToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"gasCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"feeCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"approvalAddress": "<string>",
"callData": "<string>",
"receviableAmountByDex": {
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"amountInWei": "<string>",
"amountInUSD": "<string>"
},
"alreadySupportedToken": true
},
"destinationTransaction": {
"dexName": "<string>",
"fromToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"toToken": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"gasCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"feeCosts": [
{
"name": "<string>",
"desctiption": "<string>",
"price": "<string>",
"estimate": "<string>",
"limit": "<string>",
"amount": "<string>",
"amountUSD": "<string>",
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
}
}
],
"approvalAddress": "<string>",
"callData": "<string>",
"receviableAmountByDex": {
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"amountInWei": "<string>",
"amountInUSD": "<string>"
},
"alreadySupportedToken": true
}
},
"quote": {
"fromAmount": "<string>",
"toAmount": "<string>",
"totalCostInUSD": "<string>",
"approvalAddress": "<string>",
"recevableAmoutAtDestination": {
"token": {
"address": "<string>",
"chainId": 123,
"decimal": 123,
"logoURI": "<string>",
"name": "<string>",
"symbol": "<string>",
"price": 123,
"tokenIsNative": true,
"tokenIsStable": true,
"amount": "<string>",
"amountIne": "<string>",
"amountInUsd": "<string>"
},
"amountInWei": "<string>",
"amountInUSD": "<string>"
}
},
"transactionData": {
"data": "<string>",
"to": "<string>",
"value": "<string>",
"from": "<string>",
"chainId": 123,
"gasPrice": "<string>",
"gasLimit": "<string>"
},
"executorTransactionData": {
"data": "<string>",
"to": "<string>",
"value": "<string>",
"from": "<string>",
"chainId": 123,
"gasPrice": "<string>",
"gasLimit": "<string>"
}
},
"timestamp": "2023-11-07T05:31:56Z"
}
}
}{
"chainIdFrom": 56,
"chainIdTo": 42161,
"fromToken": "0x0000000000000000000000000000000000000000",
"toToken": "0x0000000000000000000000000000000000000000",
"fromWalletAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
"toWalletAddress": "0x552008c0f6870c2f77e5cC1d2eb9bdff03e30Ea0",
"amountIn": "5000000000000000"
}
0x0000000000000000000000000000000000000000 for native tokens)0x0000000000000000000000000000000000000000 for native tokens)| Network | Chain ID |
|---|---|
| Ethereum | 1 |
| BSC | 56 |
| Polygon | 137 |
| Arbitrum | 42161 |
| Optimism | 10 |
| Avalanche | 43114 |
0x0000000000000000000000000000000000000000Quote request parameters
Source blockchain chain ID
Destination blockchain chain ID
Source token contract address (use 0x0000000000000000000000000000000000000000 for native tokens)
Destination token contract address (use 0x0000000000000000000000000000000000000000 for native tokens)
Source wallet address
Destination wallet address
Amount to swap in wei (smallest unit)
Successful quote response
Show child attributes