Skip to main content

Account class

Signature:

export declare class Account

Constructors

ConstructorModifiersDescription
(constructor)(eniblock, params)Constructs a new instance of the Account class

Properties

PropertyModifiersTypeDescription
abstractionreadonlyAccountAbstraction
aliasreadonlystringUnique identifier of an account, also known as the account alias. The alias helps users differentiate between multiple accounts within the same wallet.
creationDatereadonlystring
eniblockreadonlyEniblock
signerreadonlyTssSigner
tokenErc20Token

Methods

MethodModifiersDescription
buildTransfer(transferParams)Forge a transaction to transfer native cryptocurrency or token.
call(contractAddress, signature, params)
estimateTransfer(transferParams)Estimates the gas fees for a transfer transaction.
getAddress()Returns the public address of the account.
getAllTokensTransferHistory(options)Returns the tokens transfer history of an account
getNativeBalance()Retrieves the balance of an account
getNativeTransferHistory(options)Returns the Native token (MATIC) transfer history of an account
getNfts()
getPublicKey()Retrieves the public key of the account.
getTokensBalance()Retrieves the token balances of an account
sendTransfer(transferParams, options)Sends a transfer transaction to the blockchain.