Skip to main content

Questions tagged [data]

The tag has no usage guidance.

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

Retrieve the maximum market cap of a token from transactions

I need to retrieve the maximum market cap (in USD) of a token, starting from its transactions. particularly I'm looking at the swaps, which have this structure: type: 'SWAP'; info: { swapper: ...
Giulio Serra's user avatar
0 votes
0 answers
34 views

im looking to create a MEV bot on solana, but i need help

ive recently noticed this wallet: https://solscan.io/account/93gMmYdHDwK9JS8Xnj8ST4tG1HdpeDeS18tjkTLNn2xG#transactions making hundereds of sol every single day. I found out that i need to be validator ...
winterkoo's user avatar
0 votes
0 answers
11 views

Exploring Tokenization and Data Security Solutions with Solana

We are very interested in exploring how Solana can be used for two specific applications for our customers: Tokenizing Intangible Assets: We would like to understand how to use Solana to tokenize ...
Alpha Quantum's user avatar
1 vote
1 answer
20 views

store more tx_data

I find that my node has a very low amount of data, what parameters can I use to ensure that my node keeps a month's worth of data . And the version of solana-valicator is v1.18.15.
jackie's user avatar
  • 11
2 votes
0 answers
14 views

What types of successful transactions would incur zero Computer Unit?

I'm exploring the raw dataset and realize that quite a lot of transactions consume zero computer units. Just curious to know what types of successful transactions would incur zero Computer Unit? Are ...
heyyo478's user avatar
0 votes
1 answer
56 views

Any subgraph-like tools on Solana?

I am building a Dapp, and want to get the transactions of user deposits/withdrawal etc, and do some data engineering like how Subgraph is used for EVM. Is there any tools for the Solana ecosystem?
yan's user avatar
  • 1
2 votes
1 answer
33 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
67 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
25 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
490 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
2 answers
120 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
  • 57
1 vote
1 answer
115 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
319 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
41 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
165 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
1k 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
3 votes
0 answers
60 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
  • 31
1 vote
1 answer
48 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
202 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,476
1 vote
3 answers
652 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
  • 91
2 votes
1 answer
132 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
190 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 ...
witwiki's user avatar
  • 61
0 votes
1 answer
316 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
193 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
705 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
376 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
81 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
100 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,205
1 vote
0 answers
178 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
99 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
  • 113
4 votes
2 answers
229 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
635 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
2k views

Calculating Solana Fees

How are fees calculated in Solana ?
vicyyn's user avatar
  • 4,205
1 vote
1 answer
444 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
715 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
175 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
1k 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
2 votes
2 answers
362 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