Skip to main content
POST
/
quote
Create a quote, estimates costs & provides the steps needed to bridge.
curl --request POST \
  --url https://api.bridge.joltz.app/v1/quote \
  --header 'Content-Type: application/json' \
  --data '
{
  "inputChainID": 1,
  "inputToken": "0x0",
  "amount": 1,
  "address": "0x0",
  "sparkAddress": "spark1",
  "appFee": {
    "address": "spark1",
    "bps": 50
  }
}
'
{
  "id": "",
  "amount": "0",
  "amountInUSD": "0",
  "amountOutUSD": "0",
  "fees": {
    "joltzFee": "0",
    "relayFee": "0",
    "flashnetFee": "0",
    "appFee": "0"
  },
  "steps": [
    {
      "name": "deposit",
      "tx": {
        "from": "<string>",
        "to": "<string>",
        "data": "<string>",
        "value": "<string>",
        "maxFeePerGas": "<string>",
        "maxPriorityFeePerGas": "<string>",
        "chainID": 123
      }
    }
  ],
  "solanaInstructions": [
    {
      "keys": [
        {
          "pubkey": "5mdrbDXzXmyNzXwcESGys5uG1YmzAGPxa1foQvHMsCdw",
          "isSigner": true,
          "isWritable": true
        }
      ],
      "programId": "11111111111111111111111111111111",
      "data": "02000000a0a7280300000000"
    }
  ]
}

Body

application/json
inputChainID
integer
required
Example:

1

inputToken
string
required
Example:

"0x0"

amount
string
required
Example:

1

address
string
required
Example:

"0x0"

sparkAddress
string
required
Example:

"spark1"

appFee
object

Response

Successful operation

id
string
required
Example:

""

amount
string
required
Example:

"0"

amountInUSD
string
required
Example:

"0"

amountOutUSD
string
required
Example:

"0"

fees
object
required
steps
object[]
required
solanaInstructions
object[]
required