Questions tagged [data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

How to write instruction in anchor smart contract to retrieve all data from list of program derived accounts?

I want to write smart contract which creates many program derived accounts. Accounts addresses are maintained as array. So I want to access data from one particular program derived account? How to ...
1 vote
3 answers
58 views

Solana Deserialization

Anymore has some resources or something on how to implement borsh deserialization for Solana instruction data? I'm having the issue that I don't know the length so I get an error when trying to call ...
  • 71
0 votes
0 answers
20 views

Architecture of Dapp application which uses Solana Blockchain

Wanted to know architecture of how dapp works that uses NodeJs server and frontend. How the whole flow goes?
2 votes
1 answer
39 views

Traces in Solana

I'm looking to create a data pipeline that gets traces (both value transfers and contract executions like on the EVM) but, I can't find the equivalent to it on Solana's VM. What is the equivalent to ...
  • 21
0 votes
1 answer
14 views

There is a way to limit the number of RPC requests per second of the web3.js library?

I am currently doing a script to retrieve data, I have a personal RPC that accepts 600 calls/second, but my script is making more than 600 calls/second using the getParsedTransactions() method via the ...
  • 1
1 vote
0 answers
83 views

How to get merkle proofs for data stored on chain?

I am creating an application on solana and I would like merkle proofs for my data like other blockchains. https://docs.solana.com/proposals/simple-payment-and-state-verification - this is the most I ...
4 votes
2 answers
139 views

How to know the number of active validators in Solana

I would like to know how many Solana validator nodes are running actually. Is there a way to get this data ?
2 votes
1 answer
38 views

Relating logs to their instructions

For an individual transaction, how would you be able to relate a log to its corresponding set of instructions? I'm having difficulty finding a way to identify which logs belong to an instruction, ...
  • 21
1 vote
1 answer
47 views

Is it possible to serialise/deserialise a String in an on chain data account?

I was hoping to have an on-chain data account that stored a string that I could update dynamically from off-chain. From what I understand though a string is a growable, heap-allocated data structure, ...
  • 437
0 votes
1 answer
41 views

How to get the changes that happened in an account in a signature?

I have a data account with 187 bytes allocated After each signature, the data changes. Yet I can't seem to find how to get the changes in the data that happened in that account. e.g. this transaction ...
  • 3,477
1 vote
0 answers
82 views

Encrypt data on client, and then decrypt on-chain?

Is there support for encrypting data on client-side (ideally with public key of the program that owns the on-chain program), storing such data on chain, and then decrypting it on-chain when the ...
  • 41
3 votes
1 answer
81 views

Where are the hashing utils in nodejs?

I'm looking in both @solana/web3.js and @project-serum/anchor and don't see any hashing utils. What should one use to pack and hash data in nodejs? I suppose I could use ethereum/web3.js, but pulling ...
  • 93
4 votes
2 answers
84 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 ...
3 votes
2 answers
87 views

Finding instruction identifiers

When you send a raw instruction to the network, you have to specify in the instruction data an instruction identifier, so that the program knows what function to call. For example, in python: from ...
4 votes
1 answer
129 views

Calculating Solana Fees

How are fees calculated in Solana ?
  • 3,477
1 vote
1 answer
162 views

Send Instruction with multiple parameters to non-anchor program help (instruciton_data)

I am working with a solana program which was written a couple years ago and it is non-anchor. I am specifically having trouble with calling the program functions from the test-side, the data field ...
4 votes
2 answers
243 views

GET all collections of NFT, API, Magic eden

Good morning. I'm looking to make a small coinmarketcap, but from solana nfts, like solsniper or matricnft. I have tried with the magic eden api but it does not give many options, get /collections can ...
3 votes
1 answer
65 views

Creating a data account per user of your program?

I have the following use case. Users can enter a lottery by bidding a certain amount. The program keeps track of the users and their bid amounts in its own data account (just an array of pub keys ...
  • 437
0 votes
1 answer
144 views

How do you convert the byte array returned as "Data" for a given instruction into a human-readable form?

I am currently looking to query historical transaction data for specific programs/wallets using the Solana CLI. The command I'm using, as an example, looks like this: solana transaction-history --show-...
  • 3
0 votes
2 answers
117 views

How to actually store 10k Pubkeys in a Solana Account

Im trying to store, lets say 10,000 Public Keys inside a vector in a Solana Account. I have created the account with 500KB on devnet (8q8rTUeW9Wn3seaYiCf7HU6bpimzQTt7zEDe3RgVteBc). In theory for each ...