-
loadAtaunifies tokens from multiple sources to a single ATA:- Compressed tokens (cold Light Tokens) -> Decompresses -> light ATA
- SPL balance (if wrap=true) -> Wraps -> light ATA
- Token 2022 balance (if wrap=true) -> Wraps -> light ATA
-
Returns
nullif there’s nothing to load (idempotent) - Creates the ATA if it doesn’t exist
Find the source code here.
Agent skill
Agent skill
1
Unify Tokens to Light-ATA Balance
Installation
Installation
- npm
- yarn
- pnpm
- SDK 2.0 (token-interface)
Install packages in your working directory:Install the CLI globally:
- Localnet
- Devnet
In the code examples, use
createRpc() without arguments for localnet.- Action
- Instruction
- SDK 2.0 (token-interface)