Skip to main content

Questions tagged [data]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
15 views

Efficiently fetching a DApp's data

Suppose I have a DApp that lets users create spl tokens. The frontend communicates with the spl token program to create the tokens. The main page shows all tokens created through the DApp (not all spl ...
user17146's user avatar
1 vote
1 answer
15 views

How to pass Vec arg and strings args to instruction?

Using anchor pub fn instruction(ctx: Context<InstructionContext>, arg1: String, arg2: Vec<String>) -> Result<()> { How should I "encode" the args to pass them from the ...
FluffyMuffin47's user avatar
0 votes
1 answer
13 views

How do I allow two different signers to modify data in a PDA?

I'm trying to understand PDAs and ultimately want to be able to have a game where two different players (each with their own wallet) can modify the game state individually (i.e. one signer). For this ...
0xwtf's user avatar
  • 3
2 votes
2 answers
257 views

Detecting coin price changes on Raydium within 1-500 milliseconds

I would like to be able to detect within 1-500 milliseconds of a price change on raydium for a select group of coins which I specify. I read the documentation for raydium api at https://docs.raydium....
Anish Mukherjee's user avatar
0 votes
1 answer
30 views

how to get AccountInfo from serialized data?

Info { data: <Buffer 00 00 00 00 94 f7 95 8c c0 31 ae b3 72 e0 42 65 62 06 ea c6 76 c4 ef ae bb a2 16 bd 87 07 5a 05 10 44 4b c4 2f 29 b5 f7 4c 59 f0 06 09 01 00 00 00 00 ... 32 more bytes>, ...
Roomka's user avatar
  • 47
1 vote
1 answer
58 views

How do I display MarginFi Leding/Borrowing pools in my ui?

I'm digging into this mrgn-ts library and I can't seem to figure out how to fetch all the available lending/borrowing pools and display some data about them, like asset price, APY, available funds to ...
Dmitry Sky's user avatar
0 votes
0 answers
158 views

Decode data returned by programSubscribe

I can't figure out how to decode the 'data' received when subscribed (via websocket) to the Jupiter Limit Order Program (jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu). I'm using the program's IDL. This ...
TheLastSamurai's user avatar
1 vote
1 answer
31 views

rent handling in storage

How does this "collecting rent" work exactly(or used to work)? Does it iterate over all the accounts that are not rent exempt per every epoch? in this link, i saw this line: requires the ...
Sepehr Mirnasrollahi's user avatar
3 votes
1 answer
107 views

Older solana blocks have no timestamp?

Block on solscan: https://solscan.io/block/31810590 (no timestamp) Solana beach: https://solanabeach.io/block/31810590 (transactions with timestamp 01.01.1970) Solana explorer https://explorer.solana....
Blady's user avatar
  • 31
1 vote
1 answer
913 views

Public Data API for Token Security

Does there exist a version of an API, like this https://docs.gopluslabs.io/reference/tokensecurityusingget_1 which is not paywalled like birdeye.so API.
data4rtist's user avatar
2 votes
0 answers
45 views

BigQuery Solana dataset is incorrect/incomplete

We have noticed the data in the Solana dataset on BQ is incomplete. Consider this wallet: https://solscan.io/account/9GG2JGrrLjNYN3nUBdFtCeG3R4QViShMDgKGAgrWkJJf As you can see, there was a transfer ...
Dan's user avatar
  • 21
1 vote
1 answer
38 views

Get all adresses with less than 3000 transactions in a blocks interval

Given a block interval, I want to get every Solana address with less than 3,000 transactions. For the moment, I check every block in the interval and write down the addresses. But I need 3 extra API ...
Théo Farnole's user avatar
1 vote
1 answer
152 views

Solana Devnet Transactions disappear

I have discovered that after some time (maybe a few months), some of my devnet data has disappeared. I assume that this is on purpose? If so, is this documented somewhere publicly?
Burger Bob's user avatar
  • 1,426
1 vote
3 answers
455 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 ...
DZWG's user avatar
  • 81
2 votes
1 answer
126 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?
Harry Choudhary's user avatar
3 votes
1 answer
133 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 ...
gritty's user avatar
  • 61
0 votes
1 answer
216 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 ...
Wizer's user avatar
  • 1
1 vote
0 answers
150 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 ...
Shravan S's user avatar
4 votes
2 answers
578 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 ?
Victor Blas's user avatar
3 votes
2 answers
310 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, ...
TarikFS's user avatar
  • 31
1 vote
1 answer
78 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, ...
daoplays's user avatar
  • 587
0 votes
1 answer
90 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 ...
vicyyn's user avatar
  • 4,033
1 vote
0 answers
153 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 ...
krilin's user avatar
  • 71
3 votes
1 answer
95 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 ...
britt's user avatar
  • 103
4 votes
2 answers
216 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
3 votes
2 answers
465 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 ...
Alessandro De Pasquale's user avatar
4 votes
1 answer
1k views

Calculating Solana Fees

How are fees calculated in Solana ?
vicyyn's user avatar
  • 4,033
1 vote
1 answer
403 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 ...
Lola1222's user avatar
4 votes
2 answers
654 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 ...
Aitor_nft's user avatar
3 votes
1 answer
143 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 ...
daoplays's user avatar
  • 587
0 votes
1 answer
766 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-...
m2sa's user avatar
  • 3
1 vote
2 answers
299 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 ...
user3688985's user avatar