Skip to main content
POST
/
swap
/
prepare
Prepare swap
curl --request POST \
  --url https://api.onbeam.io/swap/prepare \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "quoteId": "<string>",
  "otp": "<string>"
}
'
{
  "prepared": true
}

Authorizations

x-api-key
string
header
required

Body

application/json
quoteId
string
required
otp
string
required

Response

Swap prepared

prepared
boolean
required