Skip to main content

Questions tagged [transaction-instructions]

The tag has no usage guidance.

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

Java script code to swap solana coin on Orca

I met issues with Solana trading bot development. I plan to exchange Solana coins using the Orca platform and are using the Whirlpool SDK. This is my current code. But this only works once out of 10 ...
yang jang's user avatar
0 votes
1 answer
10 views

Decoding Versioned transaction

Versioned transaction are constructed and signed in frontend, and sent to BE, on BE i am trying to decode the instructions present in the compiled transaction, Any way to decode each instruction ...
ashish0411's user avatar
0 votes
0 answers
13 views

How to send transaction with same hash miltiple times?

I am trying to make a tool to bulk transfer SOL between wallets. Example: I have 1 main wallet and 5 wallet where I should send sol I send transaction and waiting for it to be confirmed for 5 seconds....
dzhisl's user avatar
  • 1
0 votes
0 answers
39 views

How can I set Transaction Fee on .net project with Solnet nuget package

I use the Solnet nuget package on my .net application and I cannot assign a custom fee value for any token transfer or sol transfer in this package. After this process, it automatically gives the fee ...
Turgut Kanceltik's user avatar
0 votes
0 answers
10 views

Filtering all transaction of a particular mint address

Filtering all transaction of a particular mint address, getSignaturesForAddress functions returns transactions, but still some of the transaction are missing in the returned list. Like actual number ...
ashish0411's user avatar
1 vote
1 answer
54 views

The account index does not exist in accountKeys?

I just started to get to know Solana and wanted to analyze a swap transaction, but I found that the number of the account exceeded the number of account keys in message. Where can i found the Pubkey ...
snailhuang's user avatar
0 votes
0 answers
182 views

Trying to Swap SOL for any token using node js

I am writing a node js code to swap SOL token to any token. I am using @solana/spl-token-swap node module for the same. First, I am creating an associated address for the token I am swapping to. I am ...
Prashant Singh's user avatar
1 vote
0 answers
55 views

Error: Invalid arguments: wallet not provided

got error with anchor: Error occurred: Error: Invalid arguments: wallet not provided. It is a problem with my low-level deposit instruction, here is the code: const depositInstruction = await ...
Alexey B.'s user avatar
0 votes
1 answer
41 views

InvalidAccountData Passing a price id to rust pyth-sdk program from typescript client - Pyth

I'm trying to use pyth SDK make a program to fetch a price, then using a typescript client to pass the id of the price feed I want to the program. My rust lib.rs is essentially this: pub fn ...
NDXP's user avatar
  • 1
0 votes
0 answers
49 views

Deserialize Solana.Transaction Golang

I have a Golang Solana.Transaction object and want to obtain the raw/pre-compiled instruction details. How can I deserialize the Transaction.Message.Instruction?
Ron's user avatar
  • 1
0 votes
1 answer
45 views

Will inner instructions always contain them all?

I'm basically trying to work out if there's any limit to inner instructions that would limit how much I can rely on them for understanding a transaction. I understand from the docs that a list of them ...
Callum M's user avatar
  • 2,920
1 vote
1 answer
101 views

How to add new instructions to exisiting VersionedTransaction?

For context, the goal of the code shown below is to take the transaction given by the JUP api for a limit order and adding both the increased compute unit price instruction and a more recent blockhash....
sashavsthewrld's user avatar
1 vote
1 answer
161 views

where to get information about isSigner and isWritable from the transaction data?

in the package @solana/web3.js there is such type AccountMeta /** * Account metadata used to define instructions */ type AccountMeta = { /** An account's public key */ pubkey: PublicKey; ...
slntrx's user avatar
  • 107
1 vote
1 answer
37 views

Verifying transaction before PDA account creation

I want to create a PDA only if a user successfully transfers the funds. If I create a client side transaction with a PDA creation as the final transaction, can the PDA creation continue to be made if ...
ZeroNine's user avatar
  • 473
1 vote
2 answers
175 views

How can I sign a Solana transaction on the frontend with data coming from the backend?

async function getTransaction(){ $.ajax({ url: 'http://localhost:8080/gettransaction', type: 'GET', dataType: 'json', success: async function(data) { ...
Mario Badea's user avatar
1 vote
1 answer
71 views

Seahorse Error: Transaction Simulation Error

Its a CRUD app on seahorse. Its getting built and deployed but having errors in interacting with it. anchor version 0.28.0 Seahorse version 0.2.7 solana-cli version 1.16.0 Here is the program from ...
Savior's user avatar
  • 11
0 votes
0 answers
69 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
86 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
158 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
57 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
307 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
306 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
3k 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
350 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
211 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 ...
DiaRar's user avatar
  • 123
2 votes
1 answer
122 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
1 vote
0 answers
44 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
75 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
6k 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
108 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
278 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
  • 428
1 vote
0 answers
123 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