latestOpenAPI 3.0.02026-08-2232150173.9 KB

b70d36b7002b

shortcuts

Get transaction for IPOR shortcut

post/api/v1/shortcuts/static/ipor

Query parameters

chainIdnumber required

Chain ID of the network to execute the transaction on

fromAddressstring required

Ethereum address of the wallet to send the transaction from

Request body

isRouterboolean nullable

Flag that indicates whether to use the shared router

amountInstring required

Amount of tokenIn in wei

tokenInstring required

Address of the tokenIn. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

tokenBToBuystring required

Address of the tokenBToBuy

percentageForTokenBstring required

Percentage of tokenB to buy in basis points (1/10000)

slippagestring

Slippage in basis points (1/10000). Default is 300

simulateboolean nullable

Flag that indicates whether to simulate the transaction, verify some assertions, return simulationURL and events

Example request

{
  "amountIn": "1000000000000000",
  "tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  "tokenBToBuy": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
  "percentageForTokenB": "5000",
  "slippage": "300"
}

Response

createdAtnumber required

Block number the transaction was created on

simulationURLstring required

Tenderly simulation URL