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 |
3
votes
Accepted
Anchor: Change Localnet to Devnet
In your frontend try setting up AnchorProvider like this:
const { connection } = useConnection()
const wallet = useAnchorWallet()
const provider = new anchor.AnchorProvider(connection, wallet, …
3
votes
Is it possible to retrieve an IDL using getAccountInfo() without brute forcing anchor decode...
If there's an IDL published on-chain you can use fetchIdl
For example:
const IDL = await anchor.Program.fetchIdl(new PublicKey("...program ID here..."), provider); …
5
votes
Accepted
How do we call solana methods if program.rpc deprecated?
Try adding .rpc to the end of await program.methods to send the transaction
Example format below, (signers([]) can be excluded if there are not additional signers required):
// sends transaction
await …