ssts-org-client 0.1.0

Rust client for the Solana Security Token
Documentation

ssts-org-client

Rust client for the Solana Security Token Standard (SSTS).

This crate provides generated:

  • instruction builders and instruction args
  • account structs
  • program IDs
  • errors and shared types

Crate names

  • Package name on crates.io: ssts-org-client
  • Library crate name in code: security_token_client

Installation

[dependencies]
ssts-org-client = "0.1.0"

Program IDs

Load program IDs from your cluster config/environment. Do not hardcode them in application code.

Usage

Build a Pause instruction

use security_token_client::instructions::PauseBuilder;
use solana_pubkey::Pubkey;

let ix = PauseBuilder::new()
    .mint(Pubkey::new_unique())
    .verification_config(Pubkey::new_unique())
    .pause_authority(Pubkey::new_unique())
    .mint_account(Pubkey::new_unique())
    .instruction();

assert_eq!(ix.program_id, security_token_client::programs::SECURITY_TOKEN_PROGRAM_ID);

Import modules

use security_token_client::{
    accounts,
    errors,
    instructions,
    programs,
    types,
};

Notes

  • This crate is generated from SSTS IDL and should be re-generated before each release.
  • Optional features:
    • fetch: enable on-chain account fetching helpers
    • serde: enable serde derives on generated types