The GET shortcuts/route/nontokenized endpoint constructs an optimal conversion route. This API allows entering a non-tokenized DeFi position from any ERC20 or native token.

You must use delegate strategy when working with non-tokenized positions.

1

Authentication

  1. Create an API key using Enso Dashboard.
  2. Securely store your API key and make it available in your environment:
authentication.sh
ENSO_API_KEY="$ENSO_API_KEY"
echo $ENSO_API_KEY >> .env
git ignore .env
source .env
2

Understand non-tokenized positions

Unlike tokenized positions where you receive a token representing your position (like aTokens in Aave), non-tokenized positions are stored directly in a smart contract (usually a Smart Wallet). This endpoint is specifically designed for interacting with these types of positions.

Common examples include:

  • Borrowing on lending protocols
  • Creating CDPs (Collateralized Debt Positions)
  • Complex multi-step DeFi interactions

Note: This endpoint requires the use of a Smart Wallet or a delegatecall-compatible contract.

3

Sending the transaction

Send the transaction via a Smart Wallet, by using the tx.to for recipient, and tx.data to get the calldata. The transaction will be sent to the EnsoShortcutsDelegate, which will handle the execution of the route.

4

Next steps

Updated