Skip to main content

New answers tagged

0 votes

How to search / filter historical SOL transfers / transactions via Web3.js?

After fetching transactions, it may be easier to look at the balances fields, ie. preTokenBalances / postTokenBalances and preBalances / postBalances. https://solana.com/docs/rpc/http/gettransaction#...
Jon C's user avatar
  • 16.1k
1 vote
Accepted

Why do transactions duplicate the accounts used?

Not quite! This is the format of a non-serialized transaction. When a transaction gets serialized, it has each account key once in an array of of addresses and all AccountMetas inside instructions don'...
Ahri's user avatar
  • 4,717
0 votes

Convert VersionedTransaction to Transaction

Here is how you can convert a versioned transaction to a legacy transaction // your versioned transaction let tx: VersionedTransaction = ....; let txInstructions = TransactionMessage....
Jimii's user avatar
  • 3,770
-1 votes

Buffer is not defined

Node has modules like Buffer included as you know. What you have to do is use a tool like esbuild or browserify to bundle the NPM module for the browser. While the Buffer module is not likely to ...
Dapper's user avatar
  • 1
1 vote

Delay in Solana transaction

Unfortunately, it's highly likely that you have fallen victim to a scam site. These "cloud mining" sites often promise high returns on investments but end up stealing funds from unsuspecting ...
rsnayak's user avatar
  • 141
0 votes

Need help with determining what is truly a buy transaction

You need to parse individual DEXs, for example, Raydium and Orca. They all work differently. Therefore, you need to write logic for parsing instructions in the transactions. Or You can try Bitquery's ...
Gaurav Agrawal's user avatar
0 votes

Deserialize transaction input data with publickey

The error says it pretty clearly: Error: Invalid schema: "publicKey" expected option, enum, array, set, map, struct or u8, u16, u32, u64, u128, i8, i16, i32, i64, i128, f32, f64, bool, ...
Jon C's user avatar
  • 16.1k
1 vote

How does one "transfer" SOL to another account, rather than using a "transaction"?

As tymur999 said: A transfer is a special type of transaction that only changes the SOL balance of two accounts or the balance of two token accounts (one sender and recipient). From Solana's point of ...
Ahri's user avatar
  • 4,717
3 votes
Accepted

Failed: invalid account data for instruction

You are trying to transfer to / from non-existing token accounts. Be sure you have created the associated token accounts beforehand (and yes, the wallet that you are trying to transfer to needs to ...
xenoshiba's user avatar
  • 126

Top 50 recent answers are included