A tokenized position is represented by a token you can hold and transfer, such as a vault share. A non-tokenized position is held directly in a protocol contract, usually in a smart wallet, and does not issue a receipt token of that kind.
Definition
Enso’s catalog treats these as different destination types. Tokenized positions can use the standard Route API with a token address as tokenOut. Non-tokenized positions use a dedicated route endpoint and a position identifier.
How it works
A tokenized destination is a token (for example a yield-bearing share) with metadata such as protocol, underlying assets, and, where offered, APY and TVL.
A non-tokenized destination is discovered with
GET /api/v1/nontokenizedand entered withGET /api/v1/shortcuts/route/nontokenized, usingpositionOut(preferably apositionId).Non-tokenized positions are typically stored in a smart contract associated with a smart wallet, and the docs call for the
delegatestrategy in that case.Using a position
addressaspositionOutcan be ambiguous when one address maps to several positions, which can return an error.
How Enso does this
Use POST https://api.enso.build/api/v1/shortcuts/route when the destination is tokenized. Use GET https://api.enso.build/api/v1/shortcuts/route/nontokenized when it is not. See the nontokenized routing guide and the FAQ.
FAQ
Can Route and the nontokenized endpoint be used interchangeably?
No. The standard Route API is for tokenized positions. The nontokenized endpoint is for positions stored directly in a contract.
Do I always need a smart wallet for a non-tokenized position?
The FAQ says non-tokenized positions are usually stored in a smart contract, usually a smart wallet, and that the nontokenized endpoint is a case for the delegate strategy.
Related articles
How do I route into a non-tokenized position?
Tokenized route vs nontokenized route
How do I use Enso with a smart wallet?
What is protocol data in a DeFi API?
What is a routing strategy?
