Skip to main content
GET
/
api
/
v1
/
bungee
/
quote
Get Bungee quote
curl --request GET \
  --url https://public-backend.bungee.exchange/api/v1/bungee/quote
{
"success": true,
"statusCode": 200,
"result": {
"originChainId": 42161,
"destinationChainId": 8453,
"userAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"receiverAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"input": {
"token": {
"chainId": 42161,
"address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"name": "USDC",
"symbol": "USDC",
"decimals": 6,
"logoURI": "https://assets.coingecko.com/coins/images/6319/large/usdc.png?1696506694",
"icon": "https://assets.coingecko.com/coins/images/6319/large/usdc.png?1696506694"
},
"amount": "100000000",
"priceInUsd": 1,
"valueInUsd": 100
},
"destinationExec": null,
"autoRoute": {
"userOp": "sign",
"requestHash": "0x903a4ca1867d1e4706d7a2dc458725571d77698d2806ab68cff7f155ceee7a64",
"output": {
"token": {
"chainId": 8453,
"address": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"name": "Ether",
"symbol": "ETH",
"decimals": 18,
"logoURI": "https://media.socket.tech/networks/ethereum.svg",
"icon": "https://media.socket.tech/networks/ethereum.svg"
},
"priceInUsd": 2929.17,
"valueInUsd": 99.88313632983598,
"minAmountOut": "33928969861150703",
"amount": "34099467197136385",
"effectiveReceivedInUsd": 99.88313632983598
},
"requestType": "SINGLE_OUTPUT_REQUEST",
"approvalData": {
"spenderAddress": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
"amount": "100000000",
"tokenAddress": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"userAddress": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
},
"affiliateFee": null,
"signTypedData": {
"domain": {
"name": "Permit2",
"chainId": 42161,
"verifyingContract": "0x000000000022D473030F116dDEE9F6B43aC78BA3"
},
"types": {
"PermitWitnessTransferFrom": [
{
"name": "permitted",
"type": "TokenPermissions"
},
{
"name": "spender",
"type": "address"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
},
{
"name": "witness",
"type": "Request"
}
],
"TokenPermissions": [
{
"name": "token",
"type": "address"
},
{
"name": "amount",
"type": "uint256"
}
],
"Request": [
{
"name": "basicReq",
"type": "BasicRequest"
},
{
"name": "swapOutputToken",
"type": "address"
},
{
"name": "minSwapOutput",
"type": "uint256"
},
{
"name": "metadata",
"type": "bytes32"
},
{
"name": "affiliateFees",
"type": "bytes"
},
{
"name": "minDestGas",
"type": "uint256"
},
{
"name": "destinationPayload",
"type": "bytes"
},
{
"name": "exclusiveTransmitter",
"type": "address"
}
],
"BasicRequest": [
{
"name": "originChainId",
"type": "uint256"
},
{
"name": "destinationChainId",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "sender",
"type": "address"
},
{
"name": "receiver",
"type": "address"
},
{
"name": "delegate",
"type": "address"
},
{
"name": "bungeeGateway",
"type": "address"
},
{
"name": "switchboardId",
"type": "uint32"
},
{
"name": "inputToken",
"type": "address"
},
{
"name": "inputAmount",
"type": "uint256"
},
{
"name": "outputToken",
"type": "address"
},
{
"name": "minOutputAmount",
"type": "uint256"
},
{
"name": "refuelAmount",
"type": "uint256"
}
]
},
"values": {
"permitted": {
"token": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"amount": "100000000"
},
"spender": "0xcdea28ee7bd5bf7710b294d9391e1b6a318d809a",
"nonce": "1765973054",
"deadline": 1765973654,
"witness": {
"basicReq": {
"originChainId": 42161,
"destinationChainId": 8453,
"deadline": 1765973654,
"nonce": "1765973054",
"sender": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"receiver": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
"delegate": "0x86C950FE91D96Fa113A96eE23EDc7C517b94BFDC",
"bungeeGateway": "0xcdea28ee7bd5bf7710b294d9391e1b6a318d809a",
"switchboardId": 1,
"inputToken": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"inputAmount": "100000000",
"outputToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"minOutputAmount": "33928969861150703",
"refuelAmount": "0"
},
"swapOutputToken": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
"minSwapOutput": "33974425024229249",
"metadata": "0xae76afe1490c38e4000000000000000000000000000000000000000000002713",
"affiliateFees": "0x",
"minDestGas": "0",
"destinationPayload": "0x",
"exclusiveTransmitter": "0x0000000000000000000000000000000000000000"
}
}
},
"gasFee": null,
"slippage": 0.5,
"suggestedClientSlippage": 0.5,
"txData": null,
"estimatedTime": 20,
"routeDetails": {
"name": "Bungee Protocol",
"logoURI": "",
"routeFee": null,
"dexDetails": null
},
"refuel": null,
"quoteId": "ae76afe1490c38e4",
"quoteExpiry": 1765973114,
"routeTags": [
"MAX_OUTPUT",
"SUGGESTED"
]
},
"manualRoutes": [],
"depositRoute": null
},
"message": null
}

Query Parameters

userAddress
string
required

Sender wallet address

Example:

"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"

originChainId
string
required

Source Chain Id

Example:

"42161"

destinationChainId
string
required

Destination Chain Id

Example:

"10"

inputToken
string
required

Address of the input token

Example:

"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"

inputAmount
string
required

Input amount in wei

Example:

"100000000000000"

receiverAddress
string
required

Receiver wallet address

Example:

"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"

outputToken
string
required

Output token address

Example:

"0x0b2c639c533813f4aa9d7837caf62653d097ff85"

slippage
string

Swap slippage for manual routes and slippage considered for auto route. Example for 0.5% slippage

Example:

"0.5"

delegateAddress
string

Delegate address applied to routes where delegate is an option. By default set to userAddress

refuel
string

Apply refuel to the request. Refuel by default is false

Example:

"false"

destinationPayload
string

Destination payload to execute on the receiver. Destination gas limit needed along with this param if set

destinationGasLimit
string

Destination gas limit to be used to execute the payload on destination receiver

feeBps
string

Fee in bps

feeTakerAddress
string

Address to collect fee

enableManual
string

Enable manual routes. By default it is false

Example:

"true"

disableSwapping
string

disable swapping for manual routes. By default it is false

disableAuto
string

disable auto routes. By default it is false

excludeBridges
string

Bridges to exclude in manual routes. Only applicable to manual routes

includeDexes
string

Dexes to include while routing via manual routes. Only applicable to manual

excludeDexes
string

Dexes to exclude in manual routes. Only applicable to manual routes

includeBridges
string

Bridges to include while routing via manual routes. Only applicable to manual

exclusiveTransmitter
string

exclusive requests can be sent by putting in an identifier address of the transmitter

useInbox
string

use inbox to send request to the inbox. By default it is false. Only applicable to auto routes

enableMultipleAutoRoutes
string
default:false

Enable multiple auto routes with different optimizations

useDepositAddress
string

Returns Quotes that require transferring funds to a deposit address which executes the bridging/cross-chain swap

Response

200 - application/json

Bungee quote response for a same-chain or cross-chain swap

success
boolean
default:true
required

flag indicating whether the req was successful

statusCode
number
default:200
required

Http status code

message
string | null

error message if request failed

result
object