POST
/
rpc
/
API
/
GetSwapPrice
curl --request POST \
  --url https://api.sequence.app/rpc/API/GetSwapPrice \
  --header 'Content-Type: application/json' \
  --header 'X-Access-Key: <api-key>' \
  --data '{
  "buyCurrencyAddress": "<string>",
  "sellCurrencyAddress": "<string>",
  "buyAmount": "<string>",
  "chainId": 123,
  "slippagePercentage": 123
}'
{
  "swapPrice": {
    "currencyAddress": "<string>",
    "currencyBalance": "<string>",
    "price": "<string>",
    "maxPrice": "<string>",
    "transactionValue": "<string>"
  }
}

Authorizations

X-Access-Key
string
header
required

Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI

Body

application/json
buyCurrencyAddress
string
sellCurrencyAddress
string
buyAmount
string
chainId
number
slippagePercentage
number

Response

200
application/json
OK
swapPrice
object