Skip to main content
POST
/
swap
/
quote
Swap quote
curl --request POST \
  --url https://api.onbeam.io/swap/quote \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "from": [
    {
      "address": "<string>",
      "chainId": 123,
      "token": "<string>",
      "amount": "<string>"
    }
  ],
  "toChainId": 123,
  "toToken": "<string>",
  "toAddress": "<string>",
  "slippageBps": 123
}
'
{
  "quoteId": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
from
object[]
required
toChainId
integer
required
toToken
string
required
toAddress
string
required
slippageBps
integer

Response

Quote created

quoteId
string
required