anchor-utils

Crates.ioanchor-utils
lib.rsanchor-utils
version0.1.0
created_at2025-08-28 19:42:32.320915+00
updated_at2025-08-28 19:42:32.320915+00
descriptionUtility functions and helpers for Anchor framework development
homepagehttps://github.com/macalinao/testsvm
repositoryhttps://github.com/macalinao/testsvm
max_upload_size
id1814544
size86,791
Ian Macalinao (macalinao)

documentation

https://docs.rs/anchor-utils

README

anchor-utils

Crates.io Documentation

Utility functions for working with Anchor programs in Solana.

Features

  • anchor_instruction - Helper function to create Solana instructions from Anchor's generated declare_program! client structs

Usage

use 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
);

License

Copyright (c) 2025 Ian Macalinao. Licensed under the Apache License, Version 2.0.

Commit count: 48

cargo fmt