• Creates an instruction to retrieve the balance account for a Neon EVM wallet.

    Parameters

    Returns TransactionInstruction

    A Solana TransactionInstruction for retrieving the Neon wallet balance.

    const instruction = createAccountBalanceInstruction({
    solanaWallet: userWallet,
    neonEvmProgram: neonProgram,
    neonWallet: "0x1234567890abcdef1234567890abcdef12345678",
    chainId: 245022926
    });
    transaction.add(instruction);