Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
72 views

how to get an token account's Mint address on chain?

In my anchor program, I declare a uncheck account that will check by code inside instruction function /// CHECK: do check inside function. #[account(mut)] pub user_ata: UncheckedAccount&...
breeze wang's user avatar
3 votes
0 answers
77 views

How to do account white listing using merkle tree on solana native rust program? Is it really possible to do whitelist account using merkle on solana?

I did this code But have doubt that it will not work as desired:- use borsh::{BorshDeserialize, BorshSerialize}; use merkletreers::tree::MerkleTree; use merkletreers::utils::hash_it; use ...
Aditya's user avatar
  • 307
0 votes
1 answer
90 views

How reliable is the accounts: &[AccountInfo] array is?

I am trying to learn solana development[native solana] and when reading some example programs I saw they all use the "accounts: &[AccountInfo]" in order to figure out the accounts ...
Yali Haviv's user avatar
0 votes
1 answer
193 views

Why we need to pass all that accounts into functions in native solana?

I am go through the solana course and I am not understand that basics of writing solana native programs. Why do we need to pass to the functions some AccountInfo slice? Where this adressess should ...
Gilsson's user avatar