MCPcopy Create free account
hub / github.com/solana-program/system / getNextAccount

Function getNextAccount

clients/js/src/generated/instructions/assign.ts:135–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133 }
134 let accountIndex = 0;
135 const getNextAccount = () => {
136 const accountMeta = (instruction.accounts as TAccountMetas)[accountIndex]!;
137 accountIndex += 1;
138 return accountMeta;
139 };
140 return {
141 programAddress: instruction.programAddress,
142 accounts: { account: getNextAccount() },

Callers 1

parseAssignInstructionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected