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
Solana Arbitrage Program
If you are completely new, you might want to check the previous iteration of the Solana BootCamp where Joe builds an arbitrage program. It's a bit dated but with some elbow grease you can run the prog …
2
votes
Accepted
How to organize program's anchor code properly
Take a look at https://github.com/coral-xyz/xnft/, this is the recommended way.
Putting the state in the state directory and instructions i.e. the functions together with the Accounts struct in the in …
0
votes
Resolve error i want to import " instruction as token_instruction,"
Try renaming it to mpl_token_intruction.
Use mpl_token_metadata::instruction as mpl_token_instruction;
Ref https://docs.rs/mpl-token-metadata/latest/mpl_token_metadata/
1
vote
Raydium swap with rust
Check out the Anchor CPI examples in this repo
https://github.com/raydium-io/raydium-cpi-example
1
vote
"failed: An account required by the instruction is missing" transfer within contract
The error you are encountering means you are trying to you are trying to transfer to an account you haven't specified on your client side.
Double-check to make sure that the user_pda and user_account …
2
votes
Accepted
How to check that an account is the owner of an onchain program?
You can check this using the solana cli using
solana program show C3N7mj1oCrQNkzLW3dcaV7FrSbqJjbRX6BKkXePz2tFG
and you'll get an output like then one displayed below where the Authority is the owner …
3
votes
Accepted
Escrow program help
You violated borrow checker rules.
You borrow the Escrow account as a mutable variable here let escrow: &mut Account<Escrow> = &mut ctx.accounts.escrow; but try to use it as an immutable reference her …
1
vote
How to Convert from Account<'info, TokenAccount> to UncheckedAccount<'info>
Not sure if I fully understand your question, but you want to convert a typed account to an untyped account?
Since both AccountInfo and UncheckedAccount are basically just AccountInfo types, using .to …
1
vote
Reference to mint is not recognized in Struct creation while trying to create an NFT in Anchor
This tutorial uses an outdated version of mpl_token_metadata.
Switch to a Metaplex version >0.4.0 e.g mpl-token-metadata = "4.1.2"
Update your Solana version to 1.18.8. You'll face some stack overflow …
1
vote
Cross-program invocation with unauthorized signer or writable account: Solana Tip Program
you are trying to mix native code with anchor code and I think that is what is causing you the errors.
Using anchor constraints such as init_if_needed will create this account if it's not already init …
1
vote
Learn Native Rust or Anchor?
If you are unfamiliar with Rust, I would highly recommend you start with that before venturing into the ecosystem if you want to build programs(smart contracts). … If you are familiar with Rust already, try out Anchor. …
1
vote
Best coding language to write code for the Solana chain?
It depends on what you are most familiar with. As you've mentioned, you can probably write Solana programs in various languages, some of which are more well-supported than others.
I'd recommend starti …
6
votes
Accepted
Error:Deploying program failed transaction simulation failed: Error processing Instruction 0...
You will need to extend your program size, if you made changes to it. This is possible from the CLI version 1.18 >
To fix this run
solana program extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/.config/s …
1
vote
Accepted
mpl-token-metadata
You can check out all available instructions in the docs, via https://docs.rs/mpl-token-metadata/latest/mpl_token_metadata/instructions/index.html
In particular, you are interested in the UpdateAsUpda …
0
votes
Solana testing tool
This is possible,
I have a few guides and examples you can use,
https://solana.com/docs/clients/rust some of the crates you might need to do this in the official guides
Doing it with anchor, check out … the anchor rust client https://docs.rs/anchor-client/latest/anchor_client/
Check out the Ellipsis Labs V1 program written in native rust and tests also in rust https://github.com/Ellipsis-Labs/phoenix-v1 …