Skip to main content

Class: DefaultAccountInterface

defaults.DefaultAccountInterface

Default implementation for an account interface. Requires that the account uses the default entrypoint signature, which accept an AppPayload and a FeePayload as defined in noir-libs/aztec-noir/src/entrypoint module

Implements

  • AccountInterface

Constructors

constructor

new DefaultAccountInterface(authWitnessProvider, address, nodeInfo): DefaultAccountInterface

Parameters

NameType
authWitnessProviderAuthWitnessProvider
addressCompleteAddress
nodeInfoPick<NodeInfo, "l1ChainId" | "protocolVersion">

Returns

DefaultAccountInterface

Properties

address

Private address: CompleteAddress


authWitnessProvider

Private authWitnessProvider: AuthWitnessProvider


chainId

Private chainId: Fr


entrypoint

Private entrypoint: EntrypointInterface


version

Private version: Fr

Methods

createAuthWit

createAuthWit(messageHash): Promise<AuthWitness>

Parameters

NameType
messageHashFr

Returns

Promise<AuthWitness>

Implementation of

AccountInterface.createAuthWit


createTxExecutionRequest

createTxExecutionRequest(execution): Promise<TxExecutionRequest>

Parameters

NameType
executionExecutionRequestInit

Returns

Promise<TxExecutionRequest>

Implementation of

AccountInterface.createTxExecutionRequest


getAddress

getAddress(): AztecAddress

Returns

AztecAddress

Implementation of

AccountInterface.getAddress


getChainId

getChainId(): Fr

Returns

Fr

Implementation of

AccountInterface.getChainId


getCompleteAddress

getCompleteAddress(): CompleteAddress

Returns

CompleteAddress

Implementation of

AccountInterface.getCompleteAddress


getVersion

getVersion(): Fr

Returns

Fr

Implementation of

AccountInterface.getVersion