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

Function getNextAccount

clients/js/src/generated/instructions/allocate.ts:138–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

parseAllocateInstructionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected