Swap
Authorizations
X-API-KEYstringRequired
Header parameters
X-API-KEYstringRequired
API key for authentication
Body
metadataany ofOptional
or
nullOptional
receiving_addressstringRequiredExample:
0x1234...abcdResponses
200
Swap data retrieved successfully
application/json
payorder_idstringRequiredExample:
cuidjkhg3e289y74u5t6vstatusstring · enumRequiredExample:
AWAITING_PAYMENTPossible values: 401
Unauthorized - Authentication required
application/json
422
Unprocessable Entity - Invalid request body format
application/json
500
Internal Server Error
application/json
post
/swap/dataAuthorizations
X-API-KEYstringRequired
Header parameters
X-API-KEYstringRequired
API key for authentication
Body
metadataany ofOptional
or
nullOptional
Responses
200
Swap quote retrieved successfully
application/json
idstringRequiredExample:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vaddressstring · nullableOptionalExample:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vchain_idinteger · int64RequiredExample:
30000000000001decimalsinteger · int64RequiredExample:
6namestring · nullableOptionalExample:
USD Cointickerstring · nullableOptionalExample:
USDCimage_uristring · nullableOptionalExample:
https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.pngprice_usdnumber · nullableOptionalExample:
1feesany ofOptional
or
nullOptional
gasany ofOptional
or
nullOptional
balanceany ofOptional
or
nullOptional
401
Unauthorized - Authentication required
application/json
422
Unprocessable Entity - Invalid request body format
application/json
500
Internal Server Error
application/json
post
/swap/quoteLast updated