POST
/
api
/
v1
/
shortcuts
/
static
/
ipor
curl --request POST \
  --url https://api.enso.finance/api/v1/shortcuts/static/ipor \
  --header 'Content-Type: application/json' \
  --data '{
  "isRouter": true,
  "amountIn": "1000000000000000",
  "tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  "tokenBToBuy": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "percentageForTokenB": "5000",
  "slippage": "300",
  "simulate": false
}'
{
  "createdAt": 123,
  "tx": {
    "data": "<string>",
    "to": "<string>",
    "from": "<string>",
    "value": "<string>"
  },
  "logs": [
    "<string>"
  ],
  "simulationURL": "<string>"
}

Query Parameters

chainId
number
default:1

Chain ID of the network to execute the transaction on

fromAddress
string
required

Ethereum address of the wallet to send the transaction from

Example:

"0xd8da6bf26964af9d7eed9e03e53415d37aa96045"

Body

application/json

Response

200 - application/json

The response is of type object.