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 ...
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 ...
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 ...
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.
...
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, ...
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',
...
1
vote
How to get account info from my local private rpc?
After all, I could get response with --full-rpc-api option.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
getaccountinfo × 9solana-program × 3
web3.js × 3
jsonrpc-api × 2
validator × 1
mainnet × 1
rust × 1
rpc × 1
spl-token × 1
solana-cli × 1
getprogramaccounts × 1
bankclient × 1
solana-wallet-adapter × 1
publickey × 1
solana-program-test × 1
liquiditypool × 1
anchor-program-idl × 1
spl-associated-token-account × 1
httpapi × 1
raydium × 1