| Crates.io | anchor-utils |
| lib.rs | anchor-utils |
| version | 0.1.0 |
| created_at | 2025-08-28 19:42:32.320915+00 |
| updated_at | 2025-08-28 19:42:32.320915+00 |
| description | Utility functions and helpers for Anchor framework development |
| homepage | https://github.com/macalinao/testsvm |
| repository | https://github.com/macalinao/testsvm |
| max_upload_size | |
| id | 1814544 |
| size | 86,791 |
Utility functions for working with Anchor programs in Solana.
anchor_instruction - Helper function to create Solana instructions from Anchor's generated declare_program! client structsuse anchor_utils::anchor_instruction;
use anchor_lang::{InstructionData, ToAccountMetas};
// Create an instruction using Anchor's generated types
let instruction = anchor_instruction(
program_id,
accounts_struct, // implements ToAccountMetas
instruction_data // implements InstructionData
);
Copyright (c) 2025 Ian Macalinao. Licensed under the Apache License, Version 2.0.