Skip to main content

Create Swap Parameters for a Trade

POST 

https://api.fuse.io/api/v0/trade/swap/swapcallparameters

Create Swap Parameters for a Trade

Request

Query Parameters

    apiKey string

    (Required) Your Public API key

    Example: {{publicKey}}

Body

    currencyIn string
    currencyOut string
    amountIn string
    recipient string
    slippageTolerance string
    deadline string

Responses

Created

Response Headers
  • Date string
  • Content-Type string
  • Content-Length integer
  • Connection string
  • X-Powered-By string
  • ETag string
Schema
  • object
curl -L -X POST 'https://api.fuse.io/api/v0/trade/swap/swapcallparameters' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"currencyIn": "0xd8Bf72f3e163B9CF0C73dFdCC316417A5ac20670",
"currencyOut": "0x620fd5fa44BE6af63715Ef4E65DDFA0387aD13F5",
"amountIn": "1",
"recipient": "0xe5d28349fb6Cb9C16D3163497e49C5E9253f9976",
"slippageTolerance": "50",
"deadline": "1200"
}'
Request Collapse all
Base URL
https://api.fuse.io/api/v0
Parameters
— query
Body
{
"currencyIn": "0xd8Bf72f3e163B9CF0C73dFdCC316417A5ac20670",
"currencyOut": "0x620fd5fa44BE6af63715Ef4E65DDFA0387aD13F5",
"amountIn": "1",
"recipient": "0xe5d28349fb6Cb9C16D3163497e49C5E9253f9976",
"slippageTolerance": "50",
"deadline": "1200"
}
ResponseClear

Click the Send API Request button above and see the response here!