Skip to main content

Interface: AccountInterface

Handler for interfacing with an account. Knows how to create transaction execution requests and authorize actions for its corresponding account.

Hierarchy

  • EntrypointInterface

  • AuthWitnessProvider

    AccountInterface

Methods

createAuthWit

createAuthWit(messageHash): Promise<AuthWitness>

Computes an authentication witness from either a message hash

Parameters

NameTypeDescription
messageHashFr | BufferThe message hash to approve

Returns

Promise<AuthWitness>

The authentication witness

Inherited from

AuthWitnessProvider.createAuthWit


createTxExecutionRequest

createTxExecutionRequest(exec, fee, options): Promise<TxExecutionRequest>

Generates an execution request out of set of function calls.

Parameters

NameTypeDescription
execExecutionPayloadThe execution intents to be run.
feeFeeOptionsThe fee options for the transaction.
optionsTxExecutionOptionsNonce and whether the transaction is cancellable.

Returns

Promise<TxExecutionRequest>

The authenticated transaction execution request.

Inherited from

EntrypointInterface.createTxExecutionRequest


getAddress

getAddress(): AztecAddress

Returns the address for this account.

Returns

AztecAddress


getChainId

getChainId(): Fr

Returns the chain id for this account

Returns

Fr


getCompleteAddress

getCompleteAddress(): CompleteAddress

Returns the complete address for this account.

Returns

CompleteAddress


getVersion

getVersion(): Fr

Returns the rollup version for this account

Returns

Fr