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 questions only not deleted user 325
2 votes
1 answer
33 views

Reallocing one account bigger and one smaller in one ix in anchor gives `sum of account bala...

I have the following MRE, where I create two PDAs and realloc them "in opposite directions" i.e. I make one account 1 byte larger and the other 1 byte smaller. Calling this, yields sum of account bala …
McBain's user avatar
  • 5,384
1 vote
1 answer
132 views

How do I build a transaction using `declare_program!` with anchor_client?

If I try to create a transaction using declare_program! for accounts and args and anchor_client for building the transaction: use anchor_lang::prelude::*; declare_program!(my_program); use my_program: …
McBain's user avatar
  • 5,384
0 votes
1 answer
11 views

How to specify PDA owned by different program in anchor?

Specifying a PDA can easily be done by the following: #[account( seeds = [MY_FST_SEED, MY_SND_SEED], bump )] pub my_account: Account<'info, MyCoolAccount>, This makes the PDA be derived using …
McBain's user avatar
  • 5,384