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

# Get transaction for IPOR shortcut

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

## Query parameters

- `chainId` number, required
- `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)
  - `slippage` string — Slippage in basis points (1/10000). 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` IporLog[], required — Logs from the simulated transaction
    - `topics` string[], required
    - `data` string, required
    - `address` string, required
  - `simulationURL` string, required — Tenderly simulation URL

---

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