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
- Create an API key using Enso Dashboard.
- Securely store your API key and make it available in your environment:
authentication.sh
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
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
- Explore the Shortucts Library for common DeFi workflows.
- Check out the API Reference for full parameter details
Updated
