skills/nexus-sdk-balances-metadata-utils/SKILL.md
Fetch balances, supported chains/tokens, intent history, and use Nexus SDK formatter utilities. Use when building token/chain selectors, showing balances, or formatting UI values.
npx skillsauth add availproject/nexus-sdk nexus-sdk-balances-metadata-utilsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
sdk.getBalancesForBridge() to list assets usable in bridge flows.symbol, decimals, balance, balanceInFiat, breakdown[]sdk.getBalancesForSwap(onlyNativesAndStables?) to list assets usable in swap flows.sdk.utils.getSupportedChains(env?) for supported chains + tokens.sdk.utils.getSwapSupportedChainsAndTokens() for swap-supported chains/tokens.sdk.getSwapSupportedChains() for chains where swaps are supported.sdk.getMyIntents(page = 1) to retrieve RequestForFunds[].SUPPORTED_CHAINS for chain IDs.CHAIN_METADATA for names, logos, explorers, native currency.TOKEN_CONTRACT_ADDRESSES for token addresses by chain.NEXUS_EVENTS for event name constants.sdk.utils.formatTokenBalance(value, { symbol, decimals }).sdk.utils.formatTokenBalanceParts(...).sdk.utils.formatUnits(value, decimals).sdk.utils.parseUnits(value, decimals).sdk.utils.truncateAddress(address, start?, end?).sdk.utils.isValidAddress(address).sdk.utils.getCoinbaseRates() for optional fiat rates.sdk.convertTokenReadableAmountToBigInt(value, tokenSymbol, chainId) when decimals vary by chain.development
Implement swapWithExactIn, swapWithExactOut, and swapAndExecute flows with Nexus SDK. Use when wiring swap operations, swap intent hooks, or swap event progress updates.
development
Set up and initialize Nexus SDK in any JS/TS frontend project. Use when configuring wallet provider, SDK instance lifecycle, network selection, or adding a minimal wallet connection path.
development
End-to-end integration guidance for Avail Nexus SDK in any JS/TS frontend project (React/Next/Vite/etc). Use when asked to integrate, initialize, or wire Nexus SDK flows (bridge, transfer, execute, swap), hooks, events, balances, supported chains/tokens, or formatter utilities.
development
Configure Nexus SDK intent/allowance/swap intent hooks and event streaming. Use when integrating approval flows, intent previews, or real-time progress events (NEXUS_EVENTS).