v1

latestOpenAPI 3.0.02026-07-26278284.4 KB
DeFi Shortcuts

Get transaction for IPOR shortcut

post/api/v1/shortcuts/static/ipor

Query parameters

chainIdnumber

Chain ID of the network to execute the transaction on

fromAddressstring required
Example:0xd8da6bf26964af9d7eed9e03e53415d37aa96045

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), e.g. 50 = 0.50%.

slippagestring

Slippage in basis points (1/10000) e.g. 50 = 0.50%, 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

logsstring[] required

Logs from the simulated transaction

simulationURLstring required

Tenderly simulation URL