All Questions
Tagged with native-programs account
4 questions
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&...
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 ...
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 ...
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 ...