Creates an instruction to retrieve the account balance for a legacy Neon account.
The parameters required for the instruction.
A promise resolving to a TransactionInstruction for retrieving the account balance, or null if the account does not exist.
TransactionInstruction
null
const instruction = await createAccountBalanceForLegacyAccountInstruction({ connection, account, solanaWallet, neonEvmProgram, chainId: 245022926});if (instruction) { transaction.add(instruction);} Copy
const instruction = await createAccountBalanceForLegacyAccountInstruction({ connection, account, solanaWallet, neonEvmProgram, chainId: 245022926});if (instruction) { transaction.add(instruction);}
Creates an instruction to retrieve the account balance for a legacy Neon account.