Overview
Native assets are the native currencies of blockchains (ETH on Ethereum, BNB on BSC, AVAX on Avalanche, SOL on Solana, etc.). When swapping native assets, you must:- Use the special address
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeefor EVM chains - Use
SolanaAddress.NATIVEfor Solana - Use
submitNativeOrder()instead ofsubmitOrder()for EVM source chains - Use
NativeOrdersFactoryto create the on-chain transaction - Send native currency value with the transaction
Complete Example: AVAX to USDC
Get Quote for Native Asset
Request a quote using the native asset address:
Use
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee (42 ‘e’s) to represent native assets on any EVM chain.Submit Native Order
Use
submitNativeOrder() instead of submitOrder():submitNativeOrder() prepares the order for native asset handling but doesn’t broadcast the transaction yet.Create and Broadcast Transaction
Use
NativeOrdersFactory to create the transaction with native value:Full Working Example
Key Differences from Standard Swaps
- Token Address
- Order Submission
- Transaction Creation
Use special address for native assets:
Native Asset Examples
Common Pitfalls
Next Steps
- Learn about integrator fees for monetization
- Explore order tracking for monitoring
- See EVM to EVM swaps for standard token swaps