Skip to main content

Questions tagged [account-data]

The tag has no usage guidance.

1 vote
1 answer
45 views

Is it a good idea to add a "passphrase" as part of a PDA seed to store data encrypted on-chain?

Thinking about approaches to simplify e2e encryption, this is one of the ideas that came to mind. The seed then could further be used to encrypt the PDAs data. Sharing the passphrase between the ...
tenxsoydev's user avatar
3 votes
1 answer
104 views

How to clone all the account of a given slot?

How could I download all the accounts at a given slot. Like Snapshot of all the Solana accounts at a recent given slot
d4rkshad0w's user avatar
1 vote
1 answer
149 views

How to call cross program function when I have information of program-id and instruction only not the account-info?

I am calling Program B from Program A and all I know is program-id of Program-B and instruction message (not the account info's that will be going to read/update in Program-B execution). In this ...
crypto sahdev's user avatar
2 votes
0 answers
43 views

Stake account info is not updated after epoch

I delegate 30◎ the validator in 353 epoch. Stake account is 2o5G3H5dCb2akeT1eU4Q9WUz7Ky8hco2QmoAQg2ki42Z. In 354 epoch I got rewards and my stake right now is 30.013167766◎. But when I'm trying go ...
Denys Hryshko's user avatar
0 votes
1 answer
142 views

checking if a program is upgradeable

I am trying to work out how to get some meta data for Solana programs. I can see on sol explorer etc that it knows whether a program is upgradeable, and if it is, who the upgrade authority is, but I ...
daoplays's user avatar
  • 587
0 votes
1 answer
29 views

Query computed data from account

I have an account with definition like this. How do i get result from implemented method "can_buy"? #[account] #[derive(Default)] pub struct Data { pub time_start: i64, pub time_end: ...
Hiep Chelsea's user avatar
4 votes
1 answer
137 views

How does borsh serialize updated data back into account?

In the code from the project here, the processing logic is as follows: pub struct Processor {} impl Processor { pub fn process_instruction( _program_id: &Pubkey, accounts: &...
Finlay Weber's user avatar
3 votes
2 answers
374 views

Store text as string vs. bytes

Is there any advantage to using Vec<u8> over String to store text in storage account fields? And if so, why? From a storage perspective, they are nearly handled identically as far as I can tell ...
Sebastian Dine's user avatar
2 votes
1 answer
1k views

how to decode data of specific account

how can i deocode the buffer data of account. let pb = new PublicKey("GnAwACYKCx5LEv8QJUKvGigcix8AjnsrjLEn2Cu6UJrH") let a= await connection.getAccountInfo(pb) Output
Hamza Bhatti's user avatar
4 votes
2 answers
223 views

is that all data on Solana store on memory?

I am just very confused at this point. If all data on Solana are stored in Memory what if the whole network shutdown or restarts whether all data is removed? I thought it must stored data in Hardware ...
Dũng Đàm's user avatar
1 vote
1 answer
30 views

Do I have to pay when deploy a project with one code account and one store data account

I'm new to the Solana network. I wonder do I need to pay rent for each account I deploy on Solana network. for example, if I have a project with one account store execute code and one project to store ...
Dũng Đàm's user avatar
5 votes
1 answer
1k views

How to fetch data from Solana smart contract

Is there a tutorial or detailed explanation on how to fetch all the transactions from a deployed contract on Solana? My concrete question is: I deployed a contract (https://explorer.solana.com/address/...
wisk's user avatar
  • 71
3 votes
1 answer
1k views

Decoding data buffer of an account - @solana/buffer-layout - Rust u64 to Typescript Number conversion

I figured out how to decode the data buffer manually for a solana account data. I used the USDC account address to get the account data and then I used the @solana/buffer-layout for u64 buffer ...
andromeda's user avatar

15 30 50 per page
1 2 3
4