Skip to main content
POST
/
api
/
v1
/
bungee
/
submit
Submit request (Auto)
curl --request POST \
  --url https://public-backend.bungee.exchange/api/v1/bungee/submit \
  --header 'Content-Type: application/json' \
  --data '
{
  "request": {
    "basicReq": {
      "originChainId": 42161,
      "destinationChainId": 10,
      "deadline": 2060163137,
      "nonce": "1744389040",
      "sender": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
      "receiver": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
      "delegate": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
      "bungeeGateway": "0xcdea28ee7bd5bf7710b294d9391e1b6a318d809a",
      "switchboardId": 1,
      "inputToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "inputAmount": "10000000",
      "outputToken": "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
      "minOutputAmount": "9893610",
      "refuelAmount": "0"
    },
    "swapOutputToken": "0x0000000000000000000000000000000000000000",
    "minSwapOutput": "0",
    "metadata": "0x0000000000000000000000000000000000000000000000000000000000042069",
    "affiliateFees": "0x",
    "minDestGas": "0",
    "destinationPayload": "0x",
    "exclusiveTransmitter": "0x0000000000000000000000000000000000000000"
  },
  "userSignature": "0xcde35e56adce0e0e1db5527047796b4d4fc7e31bc0482eca28602a0e3ff60a361b45dae96418296b8479bbdf6b1a15c2a137ee74a47fb0c692b9a2cb629266a41b",
  "requestType": "SINGLE_OUTPUT_REQUEST",
  "quoteId": "889600e36fd5121ff1d94d6c49ce306a"
}
'
{
  "success": true,
  "statusCode": 200,
  "result": [
    {
      "hash": "0x1f4b45dbb7adba26d723ff1e19af9bcbbb047e29e34fa8e39c1c4d92abbfe3a2",
      "originData": {
        "input": [
          {
            "token": {
              "chainId": 42161,
              "address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
              "name": "USD Coin",
              "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": "10000000",
            "priceInUsd": 1,
            "valueInUsd": 10
          }
        ],
        "originChainId": 42161,
        "txHash": null,
        "status": "PENDING",
        "userAddress": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266"
      },
      "destinationData": {
        "output": [
          {
            "token": {
              "chainId": 10,
              "address": "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
              "name": "USD Coin",
              "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": "9855420",
            "minAmountOut": "9855420",
            "priceInUsd": 1,
            "valueInUsd": 9.85542
          }
        ],
        "txHash": null,
        "destinationChainId": 10,
        "receiverAddress": "0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266",
        "status": "PENDING"
      },
      "routeDetails": {
        "name": "bungee-protocol",
        "logoURI": "https://www.socketscan.io/new-bungee-icon.svg"
      },
      "bungeeStatusCode": 0
    }
  ]
}

Body

application/json
request
Cross Chain · object
required

Request Object

Example:
{
"basicReq": {
"originChainId": 42161,
"destinationChainId": 10,
"deadline": 2060163137,
"nonce": "1744389040",
"sender": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"receiver": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"delegate": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"bungeeGateway": "0xcdea28ee7bd5bf7710b294d9391e1b6a318d809a",
"switchboardId": 1,
"inputToken": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"inputAmount": "10000000",
"outputToken": "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
"minOutputAmount": "9893610",
"refuelAmount": "0"
},
"swapOutputToken": "0x0000000000000000000000000000000000000000",
"minSwapOutput": "0",
"metadata": "0x0000000000000000000000000000000000000000000000000000000000042069",
"affiliateFees": "0x",
"minDestGas": "0",
"destinationPayload": "0x",
"exclusiveTransmitter": "0x0000000000000000000000000000000000000000"
}
userSignature
string
required

User signature, which will validate the request

Example:

"0xcde35e56adce0e0e1db5527047796b4d4fc7e31bc0482eca28602a0e3ff60a361b45dae96418296b8479bbdf6b1a15c2a137ee74a47fb0c692b9a2cb629266a41b"

requestType
enum<string>
required

Request type, indicating same chain or cross chain swap

Available options:
SINGLE_OUTPUT_REQUEST,
SWAP_REQUEST
Example:

"SINGLE_OUTPUT_REQUEST"

quoteId
string

Quote ID

Example:

"889600e36fd5121ff1d94d6c49ce306a"

Response

201 - application/json

Submit request response

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