Use the documented native-asset identifier for that chain — on EVM, docs use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee — and send the tx.value returned by the API exactly as provided.
Definition
A native input is the chain’s base asset (for example ETH on Ethereum), not an ERC-20 wrapper. The API still needs a token address in tokenIn, plus any native value on the returned transaction.
How it works
Put the native placeholder in
tokenIn(an array on Route).Express
amountInas a decimal string in the smallest unit, for example"1000000000000000000"for one 18-decimal native unit. Do not use a JavaScript number.When the quote involves native value, the response includes
tx.value. Submit that value unchanged.For a wrapped-token destination, set that token as
tokenOutas usual.
How Enso does this
The Bundle API says to use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee for the native asset and to send returned tx.value exactly. Route examples use the same placeholder. See DeFi and Swap Routing. Confirm any non-EVM native-asset identifier in the live docs for that chain.
FAQ
Do I also approve the native asset?
Native value is sent as tx.value. ERC-20 approvals apply to token inputs, not to the native asset itself.
What if I omit tx.value?
The transaction can fail to fund the path. Always submit the tx object the API returned.
Related articles
What is tokenIn and tokenOut?
How do I submit Enso transaction data from my app?
How do I call the Route API with curl?
How do I handle token approvals in a routing flow?
How do I estimate gas for an Enso route?
