---
# System prepended metadata

title: IPOR ZAP

---

### IPOR ZAP

Try:

```bash
curl -X 'POST' \
  'https://shortcuts-backend-dynamic-dev.herokuapp.com/api/v1/shortcuts/static/ipor?chainId=5&fromAddress=0xd8da6bf26964af9d7eed9e03e53415d37aa96045' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "amountIn": "1000000000000000",
  "tokenIn": "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
  "tokenBToBuy": "0x0e6c016417A0108b76E35939EE7F8F922a4Ef638",
  "percentageForTokenB": "5000",
  "slippage": "300"
}'
```

Response:

```json
{
  "createdAt": 9721950,
  "tx": {
    "data": "<tx data to sign and submit>",
    "to": "0x7fEA6786D291A87fC4C98aFCCc5A5d3cFC36bc7b",
    "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
    "value": "1000000000000000"
  }
}
```

Examples:

[Examples Repo](https://github.com/EnsoFinance/shortcuts-api-examples/blob/3abe8a24b21d5ad5e4aa082a106ec685622a1983/examples/1.eth-route.js#L29C20-L29C20)
- Sign with Ethers: 


```javascript
  await signer.sendTransaction(response.data.tx);
```


- Entering with ERC20: Approve

https://github.com/EnsoFinance/shortcuts-api-examples/blob/main/examples/3.approve-erc20-route.js

Get Enso proxy address: 
```javascript
 const walletResponse = await axios.get(
  `https://api.enso.finance/api/v1/wallet?chainId=${chainId}&fromAddress=${fromAddress}`
);
```

[Approve Token](https://github.com/EnsoFinance/shortcuts-api-examples/blob/3abe8a24b21d5ad5e4aa082a106ec685622a1983/utils.js#L48):

```javascript
await approveToken(tokenIn, walletResponse.data.address, amountIn);
```

As above, send tx:
```javascript
 await signer.sendTransaction(response.data.tx);
```
 