• Computes the program address for a NEON token balance. Used for SPL tokens transfer from Solana to NeonEVM.

    This function generates a program address based on the provided Ethereum address, operator address, the NEON EVM program, and chain ID. It is used to identify the NEON token balance associated with the provided address on the given chain.

    Parameters

    • etherKey: string

      The Ethereum address, provided as a hexadecimal string. This should be the address for which the NEON balance is queried.

    • operatorKey: PublicKey

      The payer address as a PublicKey = Solana wallet.

    • neonEvmProgram: PublicKey

      The NEON EVM program address as a PublicKey.

    • chainId: number

      The ID of the blockchain network where the NEON token is being used.

    Returns [PublicKey, number]

    A tuple containing the derived program PublicKey and a bump seed number used in the derivation process.