Expand description
§Squads v4 Client
A modern Rust client library for interacting with the Squads v4 multisig protocol on Solana. This library provides a clean, type-safe interface for creating and managing multisig wallets, proposals, and transactions on the Squads protocol.
§Features
- Modern Dependencies: Uses Solana SDK 2.3.x for compatibility with the latest Solana ecosystem
- Type-Safe: Strongly typed interfaces for all Squads protocol operations
- Async Support: Optional async client helpers for streamlined workflows
- PDA Utilities: Helper functions for deriving program-derived addresses
- Standalone: No dependencies on the Anchor program crate, making it lightweight and flexible
§Usage
use squads_v4_client_v3::pda;
use solana_sdk::pubkey::Pubkey;
// Derive a multisig PDA
let create_key = Pubkey::new_unique();
let (multisig_pda, bump) = pda::get_multisig_pda(&create_key, None);Re-exports§
pub use error::SquadsError;pub use error::SquadsResult;pub use message::CompiledInstruction;pub use message::MessageAddressTableLookup;pub use message::TransactionMessage;pub use types::Member;pub use types::Permission;pub use types::Permissions;
Modules§
- accounts
- On-chain account structures for the Squads v4 protocol
- error
- Error types for the Squads v4 client library
- instructions
- Instruction builders for the Squads v4 protocol
- message
- Transaction message types and utilities for Squads v4
- pda
- Program Derived Address (PDA) utilities for Squads v4 protocol
- seeds
- Seed constants for PDA derivation
- types
- Core types for the Squads v4 protocol
Constants§
- SQUADS_
PROGRAM_ ID - The canonical Squads v4 program ID on mainnet-beta
Functions§
- program_
id - Returns the canonical Squads v4 program ID