Skip to main content

Interface: AccountInterface

account.AccountInterface

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

Hierarchy

Methods

createAuthWit

createAuthWit(messageHashOrIntent): Promise<AuthWitness>

Computes an authentication witness from either a message hash or an intent (caller and an action). If a message hash is provided, it will create a witness for that directly. Otherwise, it will compute the message hash using the caller and the action of the intent.

Parameters

NameTypeDescription
messageHashOrIntentFr | Buffer | { action: FunctionCall | ContractFunctionInteraction ; caller: AztecAddress ; chainId?: Fr ; version?: Fr }The message hash or the intent (caller and action) to approve

Returns

Promise<AuthWitness>

The authentication witness

Inherited from

AuthWitnessProvider.createAuthWit


createTxExecutionRequest

createTxExecutionRequest(execution): Promise<TxExecutionRequest>

Generates an execution request out of set of function calls.

Parameters

NameTypeDescription
executionExecutionRequestInitThe execution intents to be run.

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