POST
/
rpc
/
API
/
GetSwapPrices
curl --request POST \
  --url https://api.sequence.app/rpc/API/GetSwapPrices \
  --header 'Content-Type: application/json' \
  --header 'X-Access-Key: <api-key>' \
  --data '{
  "userAddress": "0x1fEA9Fcbd1989C0f2D0Fbad08144c528c7F5ea54",
  "buyCurrencyAddress": "0x50ba9d89fbfa2862d0447281219a3058e7724224",
  "buyAmount": "1000000000000000000",
  "chainId": 11155111
}'
{
  "swapPrices": [
    {
      "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
userAddress
string
buyCurrencyAddress
string
buyAmount
string
chainId
number
slippagePercentage
number

Response

200
application/json
OK
swapPrices
object[]

[]SwapPrice