Closed archseer closed 2 years ago
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.
ctx.remaining_accounts
anchor.js
Instructions have an Append method.
Append
Example: instr.Append(solana.Meta(pubkey).WRITE().SIGNER())
instr.Append(solana.Meta(pubkey).WRITE().SIGNER())
Thanks! That helped.
We use an instruction that uses
ctx.remaining_accounts
internally. How do we specify those remaining accounts? They're passed as a separate field inanchor.js
.