As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [transaction-instructions]

The tag has no usage guidance.

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

How to go from solana_transaction_status::UiCompiledInstruction accounts: Vec<u8> to Vec<String>?

My initial input is a EncodedConfirmedTransactionWithStatusMeta (see struct doc). Then I am parsing instructions of type UiCompiledInstruction (see struct doc). The struct has a field accounts of type ...
bamboofighter's user avatar
3 votes
1 answer
33 views

How to view movements between accounts inside a transaction?

Is there a technical way to see the movements between accounts that are generated during a transaction? For example, for this transaction from the devnet, all I can see is the balance of accounts ...
doudweb's user avatar
  • 31
2 votes
1 answer
30 views

System Program: Withdraw Stake from delegated stake account

I'm struggling with understanding of what's happened in tx 1GQA7ZcU63Wqm5gUUkhCnKa8dwzwK91c5bEPKcUvesgmkbauU5nH865PKXkUhD8s8HmTV1URtDG6WqYN3h9z5ET As I can see, System Program: Withdraw Stake was ...
Gohnny's user avatar
  • 23
1 vote
2 answers
42 views

Find collection in a Sharky offer loan transaction

I'm trying to analyze a transaction for the NFT Lending protocol Sharky.fi. This txn for example : Cm4pCJFCKQzmtuZ254itotMokhK8X6zs7YfeWKYE6i8kpaowZ3XzUPWJbhvvcoZ6KxULP79PEBy8A3P4nmPpkgg We have an ...
Oppty's user avatar
  • 21
2 votes
1 answer
160 views

How to solana pay transaction request for nft minting

It'll be really helpful if someone guide me how to implement transaction request for NFT minting
subhajit das's user avatar
2 votes
1 answer
87 views

How to get result of a previous instruction within a transaction

How could we get the result of a previous instruction within a transaction with multiple instructions? Say we are swapping a token on an AMM and so we are uncertain of the amount of tokens we are ...
guillermo's user avatar
4 votes
2 answers
458 views

getConfirmedTransaction return error Transaction version (0) is not supported by the requesting client

I am getting an error for these transactions: 3D5pNo4kAC3LRJi5JyVMiCBAhj1DKeujsfS7q2rvQwXX7kkUVPZX9j2wHVHDjpwhNPYH75fEPWThw8a7SG84pH8E ...
user2946's user avatar
2 votes
2 answers
37 views

Whats the highest number of sol-transfers you can pack into one transaction?

I know Solana has a size limit on transactions. If I wanted to distribute solana from one account to hundreds of accounts, what would be the fastest way to go about it, in as few transactions as ...
Helix Development's user avatar
2 votes
1 answer
52 views

No Transaction.from equivalent in Rust

I want to be able to get my transaction from a base-64 encoded buffer to later send and confirm. I have a working example in Javascript, but I need an equivalent of the Javascript code in Rust. Here ...
FurrySenko's user avatar
2 votes
1 answer
72 views

can i send identical transaction without api ME

Do I need to get instructions via the Magiceden api to send such a transaction solscanlink - link
plugarea's user avatar
0 votes
0 answers
21 views

Find "Amount" input on NFT marketplace program listing

I'm trying to fetch the listing price of an NFT by making a request directly on the blockchain using the transaction signature. In this particular case this is the signature: "...
ListMaster's user avatar
1 vote
0 answers
28 views

How to have a single transaction that enables a custom program to verify two partial offline signers?

I need a single transaction that allows a custom program to verify that two signers are who they say they are: signer1: create, sign, serialize transaction and send to signer2. signer2: deserialize, ...
DevelopingJoku's user avatar
1 vote
2 answers
54 views

How to validate that partially signed transactions aren't malicious?

Taken from https://solanacookbook.com/references/offline-transactions.html#partial-sign-transaction If Alice is the fee payer and has to sign the transaction, how does she know that Bob hasn't ...
DevelopingJoku's user avatar
4 votes
2 answers
3k views

Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0

Getting this error and I know its regarding rent is less or something like that, but how to solve this? by adding more tokens to the program id?? const tx = await program .methods .vote(...
Satyam Kulkarni's user avatar
1 vote
1 answer
64 views

Serialize float, int, Pubkey data using web3 js

I am trying to pass parameters of types: float, int, bool, pubkey to Solana anchor program instructions from web3js library #[account] pub struct Parent { pub field1: String, pub field2: u8, ...
Vivek's user avatar
  • 121
4 votes
1 answer
99 views

Correlate the instructions of the innerInstructions

I get the parsed transaction from Solana (getParsedTransaction) and I would like to specifically parse the instructions and their corresponding innerInstructions. How can I know that my ...
Swifty's user avatar
  • 388
0 votes
0 answers
30 views

sell NFT using magicEden API

i am trying to fetch sell instructions using their API and it seems that after i get their transaction ins and submit the transaction (using wallet adapter) i am getting an error: ERROR Error: ...
Avaulto's user avatar
  • 82
1 vote
0 answers
36 views

How to encode transaction instruction data from an Anchor program?

I'm trying to encode the transaction instruction data from Anchor using the documentation (https://docs.solana.com/developing/clients/javascript-api#interacting-with-custom-programs) but this is not ...
JulienRioux's user avatar