Skip to main content

How do I route into a non-tokenized position?

Discover the position with GET /api/v1/nontokenized, then call GET /api/v1/shortcuts/route/nontokenized with positionOut, typically using the delegate strategy.

J
Written by Javier Diaz

Discover the destination with GET /api/v1/nontokenized, then call GET https://api.enso.build/api/v1/shortcuts/route/nontokenized with positionOut set to the position ID. Use a smart wallet and the delegate strategy when the docs require it.

Definition

A non-tokenized position is held in a protocol contract rather than as a receipt token. The standard Route API is for tokenized destinations; this endpoint is the path into a non-tokenized one.

How it works

  • Query /api/v1/nontokenized with chain, project, or protocol filters to find positionId, address, and underlying tokens.

  • Prefer positionId as positionOut. An address can map to several positions and then the request errors.

  • Send chainId, fromAddress, tokenIn, positionOut, amountIn, and receiver. For the native asset, use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.

  • Submit any required setup transactions, then submit the returned tx unchanged.

How Enso does this

The nontokenized routing guide documents the endpoint, parameters, and discovery API. The FAQ says to use a smart wallet with delegate for the nontokenized endpoint. You can also set destinationChainId when a supported cross-chain path exists. This article does not name specific venues.

FAQ

Can I use POST /shortcuts/route for this?

No. Use GET /api/v1/shortcuts/route/nontokenized for non-tokenized destinations.

Which routing strategies are supported?

The nontokenized guide lists router, delegate, and delegate-legacy, with delegate as the usual choice when a smart wallet must retain the position state.

Related articles

  • What is a tokenized position vs a non-tokenized position?

  • Tokenized route vs nontokenized route

  • How do I use Enso with a smart wallet?

  • How do I handle native token inputs?

  • How do I discover tokens, vaults, and protocols from the API?

Sources

Did this answer your question?