Search Results
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 |
3
votes
Accepted
How to add a transaction instruction to the beginning of a transaction?
Transaction.add() just concatenates the instruction to the Transaction.instructions array so you could just mutate that array yourself, if you like:
transaction.instructions.unshift(
new Transaction …
5
votes
Accepted
Why are account inputs ordered different in similar transactions
web3.js sorts the accounts based on what Solana expects, i.e. signers before non-signers, writables before read-onlys.
In your case, both accounts #4 and #5 are read-only non-signer accounts so it the …
4
votes
What is the difference between signing and partial signing a transaction?
To discuss this, this we first need to talk about offline transactions.
There are 3 steps to submitting a transaction: 1) create the transaction, 2) sign it, and 3) broadcast it to the chain. …
1
vote
How to convert accountKeys returned from the getTransaction method to public keys?
Use .toBase58() method on those keys.
1
vote
Get transactionID string with Transaction object
The Transaction is really the request. It does not carry the response, i.e. the transaction signature.
Transaction signature is only returned from one of the send transaction methods, e.g. Connection. …
1
vote
How to get the source and destination of any solana transaction?
If you are talking about the transfer of funds, you will have to look at the Transfer inner instructions. There are 6 of them in your example.
Please note for accounts owned by a Program itself, it ca …
4
votes
Accepted
Correlate the instructions of the innerInstructions
ParsedInnerInstruction.index should correspond to the index of the outer instruction that houses the inner instruction.
So if parsedTransaction.meta.innerInstructions[0].index is say 1, then it means …
2
votes
Accepted
How to get Solana instruction data from transaction object
There are two different questions here.
Then in my backend service I want to get the transaction and verify the data it carries - specifically that a transfer has been made for 0,1 SOL.
When you per …
1
vote
Find amount of tokens swapped in a transaction?
You can see the inner transactions in your getTransaction response, transaction.meta.innerInstructions array. …
3
votes
SOLVED - Executing a transfer transaction - does Rust need additional data (AccountInfo) com...
I am not sure you can compare those two scenarios:
In Rust one, you are in the middle of an on-going transaction, making a CPI call to another program
In JS one, you are composing a new transaction a …