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 139
2 votes

Is there an analogue of permit for Solana?

The SPL token program has an approve instruction that allows a specified "delegate" address to transfer or burn up the the approved amount. Here is a reference from the solana cookbook. You can create …
john's user avatar
  • 7,794
3 votes
Accepted

Using VersionedTransaction in solana

Here are the docs on versioned transactions and address lookup tables. Here is a guide on how to use address lookup tables and versioned transctions./ …
john's user avatar
  • 7,794
1 vote
Accepted

Who actually signs a Solana transaction?

Here the instruction is being built, where the keys specify the accounts that the instruction requires. In this case there is only 1 account (payer.publicKey) and it is required to be a signer. The ac …
john's user avatar
  • 7,794
0 votes

Program account fails to change state of owned data account

Not sure about the cause of the error you're getting, but here are two examples from the Solana Developers repo you can reference for using PDAs and transferring SOL within a native Solana program. ht …
john's user avatar
  • 7,794
2 votes

Get NFT transaction history

You can try using Helius's "Parse Transactions(s)" API that returns parsed transactions. You can include up to 100 transaction signatures in a single request. … And there's a free tier you can use. https://docs.helius.xyz/solana-apis/enhanced-transactions-api/parse-transaction-s const parse_transaction_url = `https://api.helius.xyz/v0/transactions/? …
john's user avatar
  • 7,794
4 votes

Relating logs to their instructions

Instructions in a transaction are processed in order. So the order you add the instruction to the transaction is the order the of the program logs. You can also use msg!("Some Message") to add additio …
john's user avatar
  • 7,794
0 votes

Amount not showing in wallet for spl-token transfer

The "destination" where you currently have toPublicKey should also be a token account address. const transferTokensToSellerIx = createTransferInstruction(fromTokenAccount, toPublicKey, publicKey, 2) …
john's user avatar
  • 7,794
0 votes

How can I get the addresses of the owners of a perticular Nft using metaplex

When a Solana Pay QR code is scanned by a wallet, the wallet sends a post request to the transaction request URL with its public key. When building the transaction to return the wallet, you can use th …
john's user avatar
  • 7,794
3 votes

Offline Transaction: Transaction signature verification failure?

Since your user first signs the transaction and then you sign with a private key in the backend, you may need to use partialSign. You may be getting the "Signature verification failed" error because u …
john's user avatar
  • 7,794
1 vote

What determines the fee payer on a token swap?

If you are sending the transaction through Phantom's ui, it likely automatically sets your address as the transaction fee payer since you are the one sending the transaction. By default, the first sig …
john's user avatar
  • 7,794
8 votes
Accepted

Are mint address and token address identical?

"mint address" and "token address" are often used interchangeably and refer to the same thing (the blue item). A unique identifier of an SPL-Token is its mint address. USDC is minted in mainnet at a …
john's user avatar
  • 7,794
1 vote
Accepted

Transaction simulation failed: Error processing Instruction 0: insufficient account keys for...

Try using code from the starter branch: https://github.com/Unboxed-Software/solana-movie-program/tree/starter That client code builds the instruction like this: https://github.com/Unboxed-Software/sol …
john's user avatar
  • 7,794
4 votes
Accepted

How to sign transaction with a generated keypair instead of provider in anchor?

You need to airdrop SOL to the newUser keypair before using it to pay for transactions
john's user avatar
  • 7,794
1 vote

Program Test Error: Error Processing Instruction 0: Program Failed to Complete

It looks like your money_pot_vault account is a custom GamePot account type from your program. #[account(mut)] pub money_pot_vault: Account<'info, GamePot>, For the system_instruction::transf …
john's user avatar
  • 7,794
0 votes

Error processing Instruction 0: custom program error: 0x0

It may be that the account already exists on your local validator. Try resetting your local validator: solana-test-validator -r
john's user avatar
  • 7,794

15 30 50 per page