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 |
1
vote
Create an Address that can only receive tx from certain wallet?
One approach may be to hard-code the public key string of the account you want to constrain to. … Have the account be a signer of transactions and when the instruction is invoked check the signers pubkey string with the one you stored. …
2
votes
Solana account rent/fee determination
connection = RpcClient::new_with_commitment(rpc_url, CommitmentConfig::confirmed());
let rent = connection
.get_minimum_balance_for_rent_exemption(space)
.unwrap();
And then your account …
3
votes
How can I preserve the original data and add the new data to my account when using the reall...
Yes, you would basically do an account migrate on read. …
1
vote
Is there a limit to how many accounts one is able to pass into an Anchor Context?
So it will primarily be gated by the instruction data and account meta size.
Your milage may vary! …
5
votes
Accepted
Program cannot deserialize borsch serialized instruction from typescript client
Buffer.from(serialize(DepositSchema, deposit));
Construct your transaction:
let ix = new TransactionInstruction({
keys:[
{pubkey: wallet_adddress, isSigner: false, isWritable: true},// Wallet Account … {pubkey: vault_adddress, isSigner: false, isWritable: true},// Vault Account
{pubkey: rich_boi.publicKey, isSigner: true, isWritable: true},// Rich Boi Account
{pubkey: SystemProgram.programId …