Skip to main content
3 votes
Accepted

Can I change program data ID of the program account?

While your question is not that clear, it is not possible to transfer the data stored in one program ID to another. You can very well create another program ID with exactly the same program code as ...
Tushar Sahoo's user avatar
2 votes
Accepted

How to parse base64 program data from getParsedAccountInfo?

The full descriptive label in the explorer is hardcoded https://github.com/solana-labs/solana/blob/5450f978445cff9ac9959d47a7429e0b78c873e3/explorer/src/utils/tx.ts#L66 So there is no way to ...
Arowana's user avatar
  • 2,373
2 votes

Premature close error when fetching 25 or more accounts at once with @solana/web3.js connection.getAccountInfo

This is because of an unpatched bug with chunked responses in node-fetch. You can read all about it here: https://github.com/node-fetch/node-fetch/issues/1767 You can work around the issue by ...
steveluscher's user avatar
  • 3,153
1 vote

How to decode account data in more readable format?

The data onchain is serialized. Once you obtain the data buffer with getAccountInfo, you need to deserialize it. You need to know the expected struct, build the struct and then you can deserialize it. ...
Billy Mango's user avatar
1 vote

How to Standardize Solana Addresses for Consistency in JavaScript/TypeScript?

Simply using the PublicKey class is the best way to go. You can use simple base58 string representation of your public key in most places, however wrapping it in PublicKey class is the best way to go, ...
Syed Aabis Akhtar's user avatar
1 vote

About solana token Decimals

use getParsedAccountInfo rpc method to fetch token details of a particular mint address const result = await connection.getParsedAccountInfo(new PublicKey(mint), { commitment: 'confirmed', ...
ashish0411's user avatar
1 vote

How to get account info from my local private rpc?

After all, I could get response with --full-rpc-api option.
picorypt's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible