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
-
EntrypointInterface
-
↳
AccountInterface
Methods
createAuthWit
▸ createAuthWit(messageHash
): Promise
<AuthWitness
>
Computes an authentication witness from either a message hash
Parameters
Name | Type | Description |
---|---|---|
messageHash | Fr | Buffer | The message hash 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
Name | Type | Description |
---|---|---|
execution | ExecutionRequestInit | The 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