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
Show child attributes
Whether the request was successful
Response message
Show child attributes
Swap ID
Whether this is a multi-chain swap
Show child attributes
Show child attributes
DEX name
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Show child attributes
Gas cost name
Gas cost description
Gas price
Gas estimate
Gas limit
Gas amount in wei
Gas amount in USD
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Show child attributes
Gas cost name
Gas cost description
Gas price
Gas estimate
Gas limit
Gas amount in wei
Gas amount in USD
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Token approval address
Transaction call data
Show child attributes
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Amount in wei
Amount in USD
Whether token is already supported
Show child attributes
DEX name
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Show child attributes
Gas cost name
Gas cost description
Gas price
Gas estimate
Gas limit
Gas amount in wei
Gas amount in USD
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Show child attributes
Gas cost name
Gas cost description
Gas price
Gas estimate
Gas limit
Gas amount in wei
Gas amount in USD
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Token approval address
Transaction call data
Show child attributes
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Amount in wei
Amount in USD
Whether token is already supported
Show child attributes
Source amount in wei
Destination amount in wei
Total cost in USD
Token approval address
Show child attributes
Show child attributes
Token contract address
Blockchain chain ID
Token decimal places
Token logo URL
Token name
Token symbol
Token price in USD
Whether the token is native to the blockchain
Whether the token is a stablecoin
Token amount in wei
Token amount in human readable format
Token amount in USD
Amount in wei
Amount in USD
Show child attributes
Transaction data
Transaction recipient address
Transaction value in wei
Transaction sender address
Blockchain chain ID
Gas price
Gas limit
Show child attributes
Transaction data
Transaction recipient address
Transaction value in wei
Transaction sender address
Blockchain chain ID
Gas price
Gas limit
Response timestamp