Questions tagged [offset]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

How to find the exact location of a string on an account using memcpm offset

I have the following Rust code that structured a Solana account and test cases from another file using typescript: const DISCRIMINATOR_LENGTH: usize = 8; const PUBLIC_KEY_LENGTH: usize = 32; const ...
WowBow's user avatar
  • 135
2 votes
2 answers

How to calculate offset for the Stake Program in getProgramAccounts

I'd like to come up with the right memcmp->offset filter to be used with getProgramAccounts. I am trying to query stake accounts associated with a voter. I spent a bunch of time looking up the ...
Arash's user avatar
  • 23