Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 285
1 vote
1 answer
133 views

What seeds should I use in `invoke_signed()` for PDA derived via `create_with_seed()`

I have a PDA generated with: const SEED: &str = "My Seed"; let pda = Pubkey::create_with_seed(program_id, SEED, &owner_id).unwrap(); Where program_id and owner_id are some fixed Pubkey's. I want to c …
totikom's user avatar
  • 396
3 votes
1 answer
126 views

How to get the remaining computational budget inside the transaction?

There is a function sol_log_compute_units() in the Solana API that logs the remaining number of compute units. Is it possible to get this value inside the transaction. (i.e. something like sol_get_co …
totikom's user avatar
  • 396
3 votes
1 answer
27 views

Does Solana have additional aligment guarantees on `data` field of AccountInfo?

data field of Solana account is a byte slice, according to type system it is byte-aligned. Does runtime internally use more strict alignment rules? i.e. can I rely on the assumption, that data field h …
totikom's user avatar
  • 396
1 vote
2 answers
1k views

How to obtain transaction logs via RPC?

My off-chain program is sending transactions to Solana, and I want to inspect the logs of the transaction inside this program. // Send transaction let transaction_signature = client.send_transaction(& …
totikom's user avatar
  • 396