Creates a SolanaNeonAccount
instance.
The Solana public key associated with the account.
The public key of the Neon EVM program.
The token mint associated with the account.
The chain ID for Neon EVM.
Optional
keypair: KeypairOptional keypair for signing transactions.
The Neon EVM chain ID.
The public key of the Neon EVM program.
The Ethereum-style Neon wallet address derived from the Solana address.
The public key of the Solana account.
The public key of the token mint associated with the account.
Retrieves the balance program address for the Neon wallet.
The derived public key of the balance account.
Retrieves the associated keypair, if initialized.
The keypair instance.
Retrieves the signer object from the keypair.
A Signer
object if the keypair exists, otherwise null
.
Ensures the balance account exists, and if not, attempts to create it.
If the account does not exist and a valid signer is available, a transaction is created and signed to create the balance account.
The Solana connection object.
The balance account information if successful, otherwise null
.
Static
fromCreates a SolanaNeonAccount
instance from a keypair.
This method generates a new account using the given keypair and required parameters.
The Solana keypair.
The public key of the Neon EVM program.
The token mint associated with the account.
The chain ID for Neon EVM.
A new instance of SolanaNeonAccount
.
Represents a Solana account associated with a Neon EVM wallet.
This class provides utilities for managing a Solana account that interacts with the Neon EVM. It includes methods for retrieving balance addresses, handling key pairs, signing transactions, and creating balance accounts if they do not exist.