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 75
2 votes
Accepted

How do I add priority fees to a transaction using the release candidate web3.js version?

All of the program clients are now autogenerated (using Codama) and are available in the @solana-program namespace. You'll want to use @solana-program/compute-budget and @solana-program/system. import …
steveluscher's user avatar
  • 3,153
1 vote

Equivalent of eth_getLogs() in Solana?

There is no way to filter transactions based upon which function is called on a given program. …
steveluscher's user avatar
  • 3,153
2 votes
Accepted

Just using the Browser bundle, how can I send a transaction (ReferenceError: Buffer is not d...

Buffer is available in Node.js runtimes, but not in browsers. Without knowing the exact shape of your build system I can only give general advice, which is that you'll need to install a Buffer polyfil …
steveluscher's user avatar
  • 3,153
7 votes
Accepted

Transaction v2 vs v1

Before we get started, I must note that the distinction you're asking about is that between ‘legacy’ transactions (ie. those that have no version) and v0 transactions (ie. the first version number in the … line of versioned transactions). v0 Solana transactions introduced a feature called address lookup tables, designed to save space in transactions that could be better put to use holding signatures and …
steveluscher's user avatar
  • 3,153
1 vote

Is there a transaction instruction verification system in place to avoid verifying user-fed ...

If all you care about is the movement of tokens from account to account, you can use the getTransaction API. The relevant parts of the response are these: result.meta.{pre|post}Balances – Array of u6 …
steveluscher's user avatar
  • 3,153
4 votes
Accepted

How compact-u16 construct works and is created?

Each byte in a compact-u16 consists of 7 significant bits, and 1 continuation bit. Allow me to explain by denoting significant bits in bold, continuation bits in italics, and unused bits in plain text …
steveluscher's user avatar
  • 3,153
3 votes
Accepted

Can a solana send transaction add arbitrary data like a message?

The Memo program exists for this purpose. You can: use the memo program to produce a log in the transaction leave evidence that the memo was approved by up to 12 signers Regarding the message length …
steveluscher's user avatar
  • 3,153
1 vote

How to encode array data (Uint8Array) for instruction?

An array of fixed length can be expressed as follows: BufferLayout.seq(BufferLayout.u8('seed'), 32, 'seeds') A sequence (labelled 'seeds') of u8 elements (labeled 'seed'), of length 32.
steveluscher's user avatar
  • 3,153
3 votes

How to track Solana NFT Collection's transaction history

The generally recommended solution for this is to index the data from the chain in some sort of operational datastore off chain, using a Geyser plugin. Holaplex is one such implementation of an indexe …
steveluscher's user avatar
  • 3,153
4 votes
Accepted

How to use an already existing wallet on the network?

privateKeyBytes = bs58.decode(privateKeyBase58Encoded); // Materialize a `Keypair` using that private key. const keypair = Keypair.fromSecretKey(privateKeyBytes); Step 3 – Use that keypair to sign transactions
steveluscher's user avatar
  • 3,153
5 votes
Accepted

Confirming a processed transaction

This is almost certainly because you're using Vue, and: Your Connection object has undergone a reactive/readonly transformation Connection._nextClientSubscriptionId is now a readonly ref Without see …
steveluscher's user avatar
  • 3,153
1 vote

Confirmations vs commitment .how to to understand RpcResponse from a confirmation

Reasons that confirmTransaction might throw a block height exceeded error when, in fact, the transaction was confirmed: the signature is so old that it’s fallen out of the status cache. The confirm m …
steveluscher's user avatar
  • 3,153
1 vote
Accepted

TransactionExpiredBlockheightExceededError - how should we handle this on the front-end

This is a known bug that you can follow along with here: https://github.com/solana-labs/solana/issues/25955
steveluscher's user avatar
  • 3,153
7 votes
Accepted

Converting a transaction object into base58 string

// Start with your serialized transaction const base58Transaction = 'XGbYe8A2uT4oUB5s64hDQE8A7mqW3NTex9U5ugCTvGpnoYh8xgdyJStbuhhLYACHbsMyqVXRvQQ8hXyHsH2paP3vGLJp1RnfMnyv4BrFDx2h9hveJgGfi7u5Gy8TE8iD66b …
steveluscher's user avatar
  • 3,153