Registry / other / mpl-token-vault

mpl-token-vault

JSON →
library0.2.0rscratesunverified

Metaplex Token Vault for managing token vaults on Solana.

# Cargo.toml [dependencies] mpl-token-vault = "0.2.0"
INSTALL
IMPORT
SIG · MPL-TOKEN-VAULT
M
mpl-token-vault
otherrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

create_vault
use mpl_token_vault::instruction::create_vault;

Creates a token vault instruction for Solana.

use mpl_token_vault::instruction::create_vault; use solana_program::pubkey::Pubkey; fn main() { let vault = Pubkey::new_unique(); let authority = Pubkey::new_unique(); let ix = create_vault( &vault, &authority, &Pubkey::new_unique(), &Pubkey::new_unique(), 1, ); println!("Instruction: {:?}", ix); }
Debug
Known issues
gotchaRequires Solana runtime and program deployment.
fix
Ensure you are building for Solana BPF target and have deployed the program.
affects: >=0.1.0
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mpl-token-vault — cargo add mpl-token-vault · libregistry