thru abi when your task is about ABI YAML files or ABI accounts, not program binaries.
Use This When
- you want to create, upgrade, finalize, close, or inspect an on-chain ABI account
- you want to generate C, Rust, or TypeScript code from ABI YAML
- you want to analyze ABI types, print layout IR, or preview generated helpers
- you want to decode binary payloads against an ABI type
- you need to flatten imports, prepare an ABI for publishing, or bundle dependencies for WASM-style consumers
- you are deploying or upgrading binaries: Program
- you are working with raw upload buffers: Uploader
- you only need chain reads or transaction inspection: RPC or Transaction
Start Here
Account
Create, upgrade, finalize, close, and inspect on-chain ABI accounts.
Codegen
Generate C, Rust, or TypeScript code from ABI type definitions.
Analyze
Inspect resolved ABI types, print shared layout IR, and preview helper output.
Reflect
Decode or validate binary data against an ABI type and print JSON results.
Flatten
Resolve imports into a single ABI YAML file for review or downstream tooling.
Prep for Publish
Inline local imports and validate the file before you publish an ABI on-chain.
Bundle
Resolve dependencies into a JSON manifest for WASM-backed or browser tooling.
Command Map
| Command | Use it for | Reads | Writes |
|---|---|---|---|
thru abi account ... | Manage on-chain ABI accounts. | CLI config, ABI YAML, or ABI account address. | Chain state and optional local YAML export. |
thru abi codegen ... | Generate typed client code from ABI YAML. | ABI YAML files and imported dependencies. | A generated source tree under an output directory. |
thru abi analyze ... | Inspect resolved types and preview helper output. | ABI YAML files and imported dependencies. | stdout only. |
thru abi reflect ... | Decode or validate binary payloads. | ABI YAML files plus a binary data file. | stdout JSON only. |
thru abi flatten ... | Collapse imports into one YAML file. | ABI YAML files and imported dependencies. | A flattened YAML file. |
thru abi prep-for-publish ... | Produce a publishable ABI YAML file. | ABI YAML files and local imports. | A publish-ready YAML file. |
thru abi bundle ... | Build a dependency manifest for tooling. | ABI YAML files plus resolved imports. | A JSON manifest file. |
Minimal Patterns
Notes
- The
accountsubcommands are the only ABI commands here that mutate chain state. - The tooling commands are local file workflows, so they are safe to use before you publish anything on-chain.
- The examples here use the
thru abi ...form. The same tooling surface is also exposed by the standaloneabibinary that lands with the same implementation.