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 answers only not deleted user 1343
1 vote

Is it possible to find out the to and from fields in a solana transaction?

in transaction.message you can find accountKeys those are the accounts for the postBalance and preBalance in order. This means the first preBalance and postBalance are for the first account in account …
vicyyn's user avatar
  • 4,295
1 vote
Accepted

What is the average block time or confirmation time of a transaction?

You can view the 1-minute or 1-hour average block time on the Solana Explorer. What you're looking for is Slot time (1min average) and Slot time (1hr average)
vicyyn's user avatar
  • 4,295
0 votes

Discrepancy when computing an address' balance from transaction history vs calling the getBa...

You need to add the difference to a balance that you initialize at 0 let balance = 0 loop transactions { balance += postBalances[i] - preBalances[i] } And make sure the i you choosing is the wallet … So you need to do 2 requests if you have over 1000 transactions. Specify the last transaction signature in before: <string> - start searching backward from this transaction signature. …
vicyyn's user avatar
  • 4,295
1 vote

What is the main function of setComputeUnitLimit? Can the instruction 1232 limit be expanded?

A transaction may set the maximum number of compute units it is allowed to consume and the compute unit price by including a SetComputeUnitLimit and a SetComputeUnitPrice Compute budget instructions r …
vicyyn's user avatar
  • 4,295
2 votes

How to access transactions history - sol sent from and received to a particular address in a...

You can do it manually by using Solana Explorer and pasting the address. Or you can use connection.onAccountChange, the callback will be executed every time the account with that address changes (e.g. …
vicyyn's user avatar
  • 4,295
0 votes
Accepted

How to get the changes that happened in an account in a signature?

After searching and asking multiple people, the reliable way to get account data changes is by replaying/simulating the transaction and seeing the changes that occur for the account. e.g. The behavior …
vicyyn's user avatar
  • 4,295
1 vote

How can I get the transaction history of a wallet with more than 1000 transactions/signatures?

Use this getSignaturesForAddress template to get signatures (transactions) up to a certain limit (default 100000). …
vicyyn's user avatar
  • 4,295
1 vote
Accepted

How to convert a keypair to a wallet type?

use NodeWallet import NodeWallet from '@project-serum/anchor/dist/cjs/nodewallet' .. const keypair = anchor.web3.keypair.generate() const user = new NodeWallet(keypair) // anchor const provider = …
vicyyn's user avatar
  • 4,295
3 votes

Extract specific information from a transaction

In transaction.message you can find accountKeys those are the accounts for the postBalance and preBalance in order. This means the first preBalance and postBalance are for the first account in account …
vicyyn's user avatar
  • 4,295
1 vote

Gasless Transactions for Solana

No, every transaction in Solana has to pay a certain transaction fee. Calculating Solana Fees But you can close accounts to retrieve your Sol back. So you might add an instruction that closes the user …
vicyyn's user avatar
  • 4,295
1 vote
Accepted

How to handle transfer with wallets of different owner than SystemProgram

I found out that a wallet which signed a smart contract (created PDA or Non-PDA data account) has transferred Its ownership to the smart contract and can't sign the transfer Each account in Solana i …
vicyyn's user avatar
  • 4,295
3 votes

What is the best practice to sign and send multiple transaction at once in solana with one p...

In Solana, a Transaction can contain multiple instructions. Here is an example of signing 2 instructions, 1 for adding compute budget, and another calling an Anchor program in same transaction. import …
vicyyn's user avatar
  • 4,295