Pass arguments into an instruction handler and use them in program logic.
See also: Processing Instructions overview and the repository catalog.
- Instruction data deserialization
- Handler parameters
From this directory (basics/processing-instructions/anchor/):
anchor buildPrerequisites: Agave CLI (version in Anchor.toml [toolchain]), Anchor.
Tests run in-process with LiteSVM. No local validator.
anchor testThis runs cargo test as configured in Anchor.toml. Tests call instruction handlers and check onchain state.
Read the program programs/ source and Anchor.toml for deployed program IDs. For deployment, use anchor build && anchor deploy against your target cluster.