Skip to main content

New answers tagged

0 votes

CpiContext with_remaining_accounts is not working because of lifetimes

And for more clarity, will continue here! So, here is a working code, passing the remaining accounts for a CPI burn cNFT invocation. Please consider that all lifetime annotations are important for the ...
dangow3tech's user avatar
0 votes

Transfer SOL out of PDA owned wallet account

**from_account.try_borrow_mut_lamports()? -= amount_of_lamports; **to_account.try_borrow_mut_lamports()? += amount_of_lamports; where from_account is your PDA
keegan's user avatar
  • 23
1 vote

MPL token metadata via CPI — cannot provide verified creators, signing error

I haven't used the metadata creation with creator so my guess based on the code I checked is that there is a mismatch within the data provided in ctx.accounts.token_metadata_account and in how the ...
chalda's user avatar
  • 1,392
0 votes

Anchor CPI within the same program without passing the program

I'm trying to call another instruction within same program. I want to allocate more space by handling the limitation of 10kb space extension per instruction. pub fn allocate_space(ctx: Context<...
Appala Naidu's user avatar

Top 50 recent answers are included