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
Name | Type |
---|---|
authWitnessProvider | AuthWitnessProvider |
address | CompleteAddress |
nodeInfo | Pick <NodeInfo , "chainId" | "protocolVersion" > |
Returns
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
Name | Type |
---|---|
messageHash | Fr |
Returns
Promise
<AuthWitness
>
Implementation of
AccountInterface.createAuthWit
createTxExecutionRequest
▸ createTxExecutionRequest(execution
): Promise
<TxExecutionRequest
>
Parameters
Name | Type |
---|---|
execution | ExecutionRequestInit |
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