---
title: "Get transaction for IPOR shortcut"
method: POST
path: "/api/v1/shortcuts/static/ipor"
tags: ["DeFi Shortcuts"]
---

# Get transaction for IPOR shortcut

`POST /api/v1/shortcuts/static/ipor`

## Query parameters

- `chainId` number
- `fromAddress` string, required

## Request body

- IporShortcutInput
  - `isRouter` boolean, nullable — Flag that indicates whether to use the shared router
  - `amountIn` string, required — Amount of tokenIn in wei
  - `tokenIn` string, required — Address of the tokenIn. For ETH, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
  - `tokenBToBuy` string, required — Address of the tokenBToBuy
  - `percentageForTokenB` string, required — Percentage of tokenB to buy in basis points (1/10000), e.g. 50 = 0.50%.
  - `slippage` string — Slippage in basis points (1/10000) e.g. 50 = 0.50%, Default is 300
  - `simulate` boolean, nullable — Flag that indicates whether to simulate the transaction, verify some assertions, return simulationURL and events

## Response `200`

- IporShortcutTransaction
  - `createdAt` number, required — Block number the transaction was created on
  - `tx` Transaction, required
    - `data` string, required
    - `to` string, required
    - `from` string, required
    - `value` string, required
  - `logs` string[], required — Logs from the simulated transaction
  - `simulationURL` string, required — Tenderly simulation URL

---

[API](https://skmtc.dev/enso/apis/enso-api.md) · [All operations](https://skmtc.dev/enso/apis/enso-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/enso/enso-api/revisions/249f471fdafd/schema)
