SDK Reference
Every method on the Nexus SDK client.
Create a client with
createNexusClient from @avail-project/nexus-core, then pick the method for your task.
| Task | Method |
|---|---|
| Receive an exact amount on the destination | swapWithExactOut |
| Spend exact source amounts | swapWithExactIn |
| Move the same asset between chains | Either swap method — see Bridge tokens |
| Fund and run a destination contract call | swapAndExecute |
| Call a contract with funds already on the destination | execute |
| Estimate a contract call | simulateExecute |
| Show wallet balances | getBalances |
| Find chains and tokens | Token catalog |
| Show past intents | listIntents |
Balances & Tokens
Wallet balances, the token catalog, and route compatibility.
Swap Methods
Exact-in, exact-out, swap and execute, quote review, and events.
Execute Methods
Standalone contract calls and gas estimates.
List Intents
A wallet's intent history.
Hooks and Errors
Review hooks and the NexusError types.
Utility Reference
Client config, lifecycle, and helper functions.
Links
How is this guide?