Search Results
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 |
0
votes
Error Code: InstructionFallbackNotFound
Here is an example that you can reference for making SOL transfers via a CPI within an Anchor program:
https://github.com/solana-developers/program-examples/blob/main/basics/transfer-sol/anchor/programs … /transfer-sol/src/lib.rs#L12
Here are the tests: https://github.com/solana-developers/program-examples/blob/main/basics/transfer-sol/anchor/tests/test.ts
Here is the same example on Solpg: https://beta.solpg.io …
1
vote
Error: IncorrectProgramId at transferCheckedWithFee
You need to send a transaction to create the destination token account.
It looks like you're using test_1.publicKey as the address of the recipient token account, but no token account was created usin …
1
vote
How do I send a token with the transfer-hook extension using the spl-token command line inte...
Additionally, I had to also include the addresses for both the ExtraAccountMeta account and the Program ID of the custom transfer-hook program
const [extraAccountMetaListPDA] = PublicKey.findProgramAddressSync … Its a transfer-hook program built using Anchor where the custom transfer-hook instruction requires a WSOL transfer. …
3
votes
Transfer Hook - How to get destination ATA owner public key
The 3rd account (index 2) labeled destination_token is the recipient token account from the initial token transfer. …
1
vote
Program Test Error: Error Processing Instruction 0: Program Failed to Complete
The transfer CPI is likely failing because the program owner of the money_pot_vault account is your program (and not the system program). … This means you won't be able to use the System Program's transfer instruction to deduct lamports from the money_pot_vault account owned by your program. …