Category "solana-program-library"

How to freeze an SPL token?

so confused with the spl token docs here - https://spl.solana.com/token. Can someone tell me if it's possible, using the js lib - to create a spl token (specify

Calling solana (anchor) program . No Errors, But lamports not transferring between accounts as requested

My code runs fine when using bump + seeds. All tests are passing. But Please see below code of a Crowd funding campaign, created using Anchor. The problem is th

the trait `anchor_lang::AccountDeserialize` is not implemented for `anchor_spl::token::Mint`

I am trying to CPI the Token Program to send spl-tokens to a wallet. For this the derive accounts in the context struct has three accounts without any attribute

How to add a Pubkey to an account containing a vector of Pubkeys in an anchor program

use anchor_lang::prelude::*; use rand::Rng; use solana_program::{declare_id, pubkey::Pubkey}; declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); #[pr