Skip to main content

All Questions

0 votes
0 answers
9 views

filtering buy txns with timestamp

are there any APIs or any way to filter buy transactions for a certain token by timestamp? I don't want to paginate through transactions, just filter them by timestamp.
0xkali's user avatar
  • 23
3 votes
1 answer
86 views

Handle big vector containing ton of structs

I'm looking for a way to handle a big struct. I want to understand how to create an account storing more than 10_000 structs inside is possible. Is there a simple way to do it? Or should I have to ...
GoT's user avatar
  • 75
0 votes
0 answers
8 views

During the registration in the Delegation Program, I mistakenly chose the business account type

During registration in the Delegation Program, I mistakenly chose to register a business account, but I am an individual, please help me with changing the account type to an individual
Евгений Конюхов's user avatar
1 vote
1 answer
12 views

Does <AccountInfo> have the accont key?

Looking at getMultipleAccountInfo it returns a AccountInfo<T>: { data: T; executable: boolean; lamports: number; owner: PublicKey; rentEpoch?: number; } Am I correct in ...
kekti's user avatar
  • 55
3 votes
1 answer
147 views

What is the data size of a wallet account?

I want to calculate the minimum balance for Rent-except and have found code like this: const { Connection, clusterApiUrl, LAMPORTS_PER_SOL } = require('@solana/web3.js'); const connection = new ...
breeze wang's user avatar
1 vote
0 answers
13 views

Solana Rent Calculation [duplicate]

Could someone please provide guidance or a code example on how to calculate rent for Solana accounts? Specifically, I'm interested in understanding how to determine the rent due for each account based ...
Naomi Yoko's user avatar
1 vote
0 answers
34 views

Reading all kinds of information from the blockchain

(For a project of mine which is a full Solana blockchain "status" tracker. For public!) Problem: Reading Pair/Pool info How do I even get the info which pairs exist without looping through ...
axlynom's user avatar
  • 31
0 votes
1 answer
71 views

Deploying program with sol_remaining_compute_units() gives "invalid account data"

Including something like msg!("remaining compute: {}", solana_program::compute_units::sol_remaining_compute_units()); will lead to error when deploying RPC URL: https://api.devnet.solana....
Pun's user avatar
  • 1
1 vote
1 answer
312 views

How can any program in Solana read an account of another program? Give an example

The Solana docs states that Any program can read or credit another account. Ref: https://docs.solana.com/developing/intro/programs. Please explain this line. Does that mean I can extract all past ...
Suvadra Barua's user avatar
1 vote
1 answer
733 views

Error: AnchorError: AnchorError caused by account: base_account. Error Code: AccountNotInitialized

I wrote a Solana Program with two functions, one for the initialization of an account and a second to upload data to the account. While testing on localhost it was working fine, but when I uploaded it ...
Rounak Naik's user avatar
3 votes
1 answer
537 views

Can Solana Accounts be accessed by any Solana Program using its address?

If I have a deployed Solana Program which creates some Solana accounts for storing data in it. Can these Solana accounts be accessed by any other Solana program using the account addresses? I am ...
Rounak Naik's user avatar
1 vote
1 answer
149 views

How to call cross program function when I have information of program-id and instruction only not the account-info?

I am calling Program B from Program A and all I know is program-id of Program-B and instruction message (not the account info's that will be going to read/update in Program-B execution). In this ...
crypto sahdev's user avatar
3 votes
2 answers
374 views

Store text as string vs. bytes

Is there any advantage to using Vec<u8> over String to store text in storage account fields? And if so, why? From a storage perspective, they are nearly handled identically as far as I can tell ...
Sebastian Dine's user avatar