gagliardetto/anchor-go

How to specify remainingAccounts?

Closed this issue · 2 comments

We use an instruction that uses ctx.remaining_accounts internally. How do we specify those remaining accounts? They're passed as a separate field in anchor.js.

Instructions have an Append method.

Example: instr.Append(solana.Meta(pubkey).WRITE().SIGNER())

Thanks! That helped.