Back to Knowledge Directory
Solana & Web3
Anchor Protocol
Rust-based framework for writing secure Solana smart contracts and building client interfaces for AI agents.
Available API Actions (2)
Structured function definitions and payload specifications for AI agent tool execution.
ON_CHAINinvoke_instruction
Call Anchor program instruction with serialized CPI arguments and account context.
PARAMETERS SCHEMA
| Param Name | Type | Required | Description |
|---|---|---|---|
| programId | string | Yes | Target Anchor program ID |
| instructionName | string | Yes | Name of Rust instruction |
| accounts | array | Yes | List of account metadatas |
GETfetch_account_data
Fetch and deserialize Anchor state account data from Solana ledger.
PARAMETERS SCHEMA
| Param Name | Type | Required | Description |
|---|---|---|---|
| accountAddress | string | Yes | PDA or account address |