日本語
cURL
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>" } }
Currency abstraction
Public project access key for authenticating requests obtained on Sequence Builder. Example Test Key: AQAAAAAAAEGvyZiWA9FMslYeG_yayXaHnSI
OK
The response is of type object.
object
このページは役に立ちましたか?