Questions tagged [remaining-accounts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers

How to transfer SOL to remaining_accounts from the signer account

I am trying to transfer 0.1 SOL from the signer account to all the accounts passed in the remaining_accounts to the function call. Here's a breakdown of the code. anchor pub fn purchase_package(...
Dhruv Godambe's user avatar
0 votes
0 answers

Anchor 28 to 29 ctx.remaining_accounts lifetime

In Anchor 28 we had a function that read remaining_accounts in as token accounts: pub fn some_fun<'info>( &mut self, // the Context remaining_accounts: &[AccountInfo<'...
Whiteseal's user avatar
  • 2,893
0 votes
0 answers

Lifetime error using remaining accounts and magicblock session token macro

I am facing an error when using lifetimes with magicblock's session_auth_or macro in my instruction Here is a sample of the instructions #[session_auth_or( ctx.accounts.protocol_state....
Jimii's user avatar
  • 1,468