bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 6쪽
/aztec-js/how_to_use_authwit.md)
## [📄️Paying Fees](/developers/testnet/docs/aztec-js/how_to_pay_fees.md)
[Pay transaction fees on Aztec, understand mana costs, estimate gas, and retrieve fees from receipts.](/developers/testnet/docs/aztec-js/how_to_pay_fees.md)
## [📄️Testing Smart Contracts](/developers/testnet/docs/aztec-js/how_to_test.md)
[Learn how to write and run tests for your Aztec smart contracts using Aztec.js and a local network.](/developers/testnet/docs/aztec-js/how_to_test.md)
## [📄️Pay Fees Privately](/developers/testnet/docs/aztec-js/how_to_use_private_fee_juice.md)
[Learn how private fee payment works on Aztec and walk through an example using a community-built fully private Fee Payment Contract.](/developers/testnet/docs/aztec-js/how_to_use_private_fee_juice.md)
## [📄️Reference](/developers/testnet/docs/aztec-js/aztec_js_reference.md)
[Comprehensive auto-generated reference for the Aztec.js TypeScript library with all classes, interfaces, types, and functions.](/developers/testnet/docs/aztec-js/aztec_js_reference.md)
## [📄️TypeScript API Reference](/developers/testnet/docs/aztec-js/typescript_api_reference.md)
[API reference documentation for Aztec TypeScript packages including aztec.js, accounts, PXE, and core libraries.](/developers/testnet/docs/aztec-js/typescript_api_reference.md)
---
# Reference
*This documentation is auto-generated from the Aztec.js TypeScript source code.*
info
This is an auto-generated reference. For tutorials and guides, see the [Aztec.js Guide](/developers/testnet/docs/aztec-js.md).
*Package: @aztec-labs/aztec.js*
*Generated: 2026-10-07T19:12:47.386Z*
This document provides a comprehensive reference for all public APIs in the Aztec.js library.
Each section is organized by module, with classes, interfaces, types, and functions documented with their full signatures, parameters, and return types.
## Table of Contents[](#table-of-contents "Direct link to Table of Contents")
* [Account](#account)
* [AuthorizationProvider](#authorizationprovider)
* [Account](#account-1)
* [BaseAccount](#baseaccount)
* [AccountContract](#accountcontract)
* [getAccountContractAddress](#getaccountcontractaddress)
* [Authorization](#authorization)
* [CallAuthorizationRequest](#callauthorizationrequest)
* [Contract](#contract)
* [BaseContractInteraction](#basecontractinteraction)
* [BatchCall](#batchcall)
* [abiChecker](#abichecker)
* [Contract](#contract-1)
* [ContractMethod](#contractmethod)
* [ContractStorageLayout](#contractstoragelayout)
* [ContractBase](#contractbase)
* [ContractFunctionInteraction](#contractfunctioninteraction)
* [DeployInstantiationOptions](#deployinstantiationoptions)
* [BoundInstantiationOptions](#boundinstantiationoptions)
* [UniversalInstantiationOptions](#universalinstantiationoptions)
* [PendingInstantiationOptions](#pendinginstantiationoptions)
* [DeployMethodContract](#deploymethodcontract)
* [DeployMethodPayload](#deploymethodpayload)
* [RequestDeployOptions](#requestdeployoptions)
* [DeployOptionsWithoutWait](#deployoptionswithoutwait)
* [DeployOptions](#deployoptions)
* [SimulateDeployOptions](#simulatedeployoptions)
* [DeployResultMined](#deployresultmined)
* [DeployReturn](#deployreturn)
* [DeployMethod](#deploymethod)
* [BoundDeployMethod](#bounddeploymethod)
* [UniversalDeployMethod](#universaldeploymethod)
* [PendingDeployMethod](#pendingdeploymethod)
* [fastForwardContractUpdate](#fastforwardcontractupdate)
* [FeePaymentMethodOption](#feepaymentmethodoption)
* [GasSettingsOption](#gassettingsoption)
* [InteractionFeeOptions](#interactionfeeoptions)
* [RequestInteractionOptions](#requestinteractionoptions)
* [NO\_WAIT](#no_wait)
* [NoWait](#nowait)
* [NO\_FROM](#no_from)
* [NoFrom](#nofrom)
* [InteractionWaitOptions](#interactionwaitoptions)
* [SendInteractionOptionsWithoutWait](#sendinteractionoptionswithoutwait)
* [SendInteractionOptions](#sendinteractionoptions)
* [SimulateInteractionOptions](#simulateinteractionoptions)
* [ProfileInteractionOptions](#profileinteractionoptions)
* [OffchainMessage](#offchainmessage)
* [OffchainOutput](#offchainoutput)
* [extractOffchainOutput](#extractoffchainoutput)
* [SimulationResult](#simulationresult)
* [TxSendResultImmediate](#txsendresultimmediate)
* [TxSendResultMined](#txsendresultmined)
* [SendReturn](#sendreturn)
* [toSendOptions](#tosendoptions)
* [toSimulateOptions](#tosimulateoptions)
* [toProfileOptions](#toprofileoptions)
* [WaitForProvenOpts](#waitforprovenopts)
* [DefaultWaitForProvenOpts](#defaultwaitforprovenopts)
* [waitForProven](#waitforproven)
* [WaitOpts](#waitopts)
* [DefaultWaitOpts](#defaultwaitopts)
* [Deployment](#deployment)
* [ContractDeployer](#contractdeployer)
* [publishContractClass](#publishcontractclass)
* [publishInstance](#publishinstance)
* [Ethereum](#ethereum)
* [L2Claim](#l2claim)
* [L2AmountClaim](#l2amountclaim)
* [L2AmountClaimWithRecipient](#l2amountclaimwithrecipient)
* [generateClaimSecret](#generateclaimsecret)
* [L1TokenManager](#l1tokenmanager)
* [L1FeeJuicePortalManager](#l1feejuiceportalmanager)
* [L1ToL2TokenPortalManager](#l1tol2tokenportalmanager)
* [L1TokenPortalManager](#l1tokenportalmanager)
* [Fee](#fee-4)
* [FeeJuicePaymentMethodWithClaim](#feejuicepaymentmethodwithclaim)
* [FeePaymentMethod](#feepaymentmethod)
* [PrivateFeePaymentMethod](#privatefeepaymentmethod)
* [PublicFeePaymentMethod](#publicfeepaymentmethod)
* [SponsoredFeePaymentMethod](#sponsoredfeepaymentmethod)
* [Utils](#utils)
* [FieldLike](#fieldlike)
* [EthAddressLike](#ethaddresslike)
* [AztecAddressLike](#aztecaddresslike)
* [FunctionSelectorLike](#functionselectorlike)
* [EventSelectorLike](#eventselectorlike)
* [U128Like](#u128like)
* [WrappedFieldLike](#wrappedfieldlike)
* [OptionLike](#optionlike)
* [IntentInnerHash](#intentinnerhash)
* [CallIntent](#callintent)
* [ContractFunctionInteractionCallIntent](#contractfunctioninteractioncallintent)
* [isContractFunctionInteractionCallIntent](#iscontractfunctioninteractioncallintent)
* [computeAuthWitMessageHash](#computeauthwitmessagehash)
* [getMessageHashFromIntent](#getmessagehashfromintent)
* [computeInnerAuthWitHashFromAction](#computeinnerauthwithashfromaction)
* [lookupValidity](#lookupvalidity)
* [SetPublicAuthwitContractInteraction](#setpublicauthwitcontractinteraction)
* [waitForL1ToL2MessageReady](#waitforl1tol2messageready)
* [isL1ToL2MessageReady](#isl1tol2messageready)
* [getFeeJuiceBalance](#getfeejuicebalance)
* [readFieldCompressedString](#readfieldcompressedstring)
* [waitForNode](#waitfornode)
* [waitForTx](#waitfortx)
* [createAztecNodeClient](#createaztecnodeclient)
* [AztecNode](#aztecnode)
* [AztecNodeClientOptions](#aztecnodeclientoptions)
* [generatePublicKey](#generatepublickey)
* [Wallet](#wallet)
* [AccountEntrypointMetaPaymentMethod](#accountentrypointmetapaymentmethod)
* [AccountManagerCreateOptions](#accountmanagercreateoptions)
* [AccountManager](#accountmanager)
* [CAPABILITY\_VERSION](#capability_version)
* [ContractFunctionPattern](#contractfunctionpattern)
* [AccountsCapability](#accountscapability)
* [GrantedAccountsCapability](#grantedaccountscapability)
* [ContractsCapability](#contractscapability)
* [GrantedContractsCapability](#grantedcontractscapability)
* [ContractClassesCapability](#contractclassescapability)
* [GrantedContractClassesCapability](#grantedcontractclassescapability)
* [SimulationCapability](#simulationcapability)
* [GrantedSimulationCapability](#grantedsimulationcapability)
* [TransactionCapability](#transactioncapability)
* [GrantedTransactionCapability](#grantedtransactioncapability)
* [DataCapability](#datacapability)
* [GrantedDataCapability](#granteddatacapability)
* [Capability](#capability)
* [GrantedCapability](#grantedcapability)
* [AppCapabilities](#appcapabilities)
* [WalletCapabilities](#walletcapabilities)
* [DeployAccountFeePaymentMethodOption](#deployaccountfeepaymentmethodoption)
* [RequestDeployAccountOptions](#requestdeployaccountoptions)
* [DeployAccountOptions](#deployaccountoptions)
* [SimulateDeployAccountOptions](#simulatedeployaccountoptions)
* [DeployAccountMethod](#deployaccountmethod)
* [TxSimulationResultWithAppOffset](#txsimulationresultwithappoffset)
* [Aliased](#aliased)
* [SimulateOptions](#simulateoptions)
* [ProfileOptions](#profileoptions)
* [SendOptions](#sendoptions)
* [BatchableMethods](#batchablemethods)
* [BatchedMethod](#batchedmethod)
* [BatchedMethodResult](#batchedmethodresult)
* [BatchedMethodResultWrapper](#batchedmethodresultwrapper)
* [BatchResults](#batchresults)
* [EventFilterBase](#eventfilterbase)
* [PrivateEventFilter](#privateeventfilter)
* [PublicEventFilter](#publiceventfilter)
* [Event](#event)
* [PrivateEvent](#privateevent)
* [PublicEvent](#publicevent)
* [ContractMetadata](#contractmetadata)
* [ContractClassMetadata](#contractclassmetadata)
* [ExecuteUtilityOptions](#executeutilityoptions)
* [Wallet](#wallet-2)
* [ExecutionPayloadSchema](#executionpayloadschema)
* [GasSettingsOptionSchema](#gassettingsoptionschema)
* [WaitOptsSchema](#waitoptsschema)
* [SendOptionsSchema](#sendoptionsschema)
* [SimulateOptionsSchema](#simulateoptionsschema)
* [ProfileOptionsSchema](#profileoptionsschema)
* [MessageHashOrIntentSchema](#messagehashorintentschema)
* [EventMetadataDefinitionSchema](#eventmetadatadefinitionschema)
* [PrivateEventFilterSchema](#privateeventfilterschema)
* [PublicEventFilterSchema](#publiceventfilterschema)
* [PrivateEventSchema](#privateeventschema)
* [PublicEventSchema](#publiceventschema)
* [ContractMetadataSchema](#contractmetadataschema)
* [ContractClassMetadataSchema](#contractclassmetadataschema)
* [ContractFunctionPatternSchema](#contractfunctionpatternschema)
* [AccountsCapabilitySchema](#accountscapabilityschema)
* [GrantedAccountsCapabilitySchema](#grantedaccountscapabilityschema)
* [ContractsCapabilitySchema](#contractscapabilityschema)
* [GrantedContractsCapabilitySchema](#grantedcontractscapabilityschema)
* [ContractClassesCapabilitySchema](#contractclassescapabilityschema)
* [GrantedContractClassesCapabilitySchema](#grantedcontractclassescapabilityschema)
* [SimulationCapabilitySchema](#simulationcapabilityschema)
* [GrantedSimulationCapabilitySchema](#grantedsimulationcapabilityschema)
* [TransactionCapabilitySchema](#transactioncapabilityschema)
* [GrantedTransactionCapabilitySchema](#grantedtransactioncapabilityschema)
* [DataCapabilitySchema](#datacapabilityschema)
* [GrantedDataCapabilitySchema](#granteddatacapabilityschema)
* [CapabilitySchema](#capabilityschema)
* [GrantedCapabilitySchema](#grantedcapabilityschema)
* [AppCapabilitiesSchema](#appcapabilitiesschema)
* [WalletCapabilitiesSchema](#walletcapabilitiesschema)
* [BatchedMethodSchema](#batchedmethodschema)
* [BatchedResultSchema](#batchedresultschema)
* [WalletSchema](#walletschema)
***
## Account[](#account "Direct link to Account")
***
### `account/account.ts`[](#accountaccountts "Direct link to accountaccountts")
#### AuthorizationProvider[](#authorizationprovider "Direct link to AuthorizationProvider")
**Type:** Interface
Provides authorization for actions via the AuthWitness mechanism.
#### Methods[](#methods "Direct link to Methods")
##### createAuthWit[](#createauthwit "Direct link to createAuthWit")
Creates an authentication witness from an inner hash with consumer, or a call intent
**Signature:**
```
createAuthWit(
intent: IntentInnerHash | CallIntent,
chainInfo: ChainInfo
): Promise<AuthWitness>
```
**Parameters:**
* `intent`: `IntentInnerHash | CallIntent`
* The action (or inner hash) to authorize
* `chainInfo`: `ChainInfo`
* Chain information needed for message hash computation
**Returns:**
`Promise<AuthWitness>`
#### Account[](#account-1 "Direct link to Account")
**Type:** Type Alias
Minimal interface for transaction execution and authorization.
**Signature:**
```
export type Account = EntrypointInterface &
AuthorizationProvider & {
getCompleteAddress(): CompleteAddress;
getAddress(): AztecAddress;
};
```
**Type Members:**
##### getCompleteAddress[](#getcompleteaddress "Direct link to getCompleteAddress")
Returns the complete address for this account.
**Signature:**
```
getCompleteAddress(): CompleteAddress
```
**Returns:**
`CompleteAddress`
##### getAddress[](#getaddress "Direct link to getAddress")
Returns the address for this account.
**Signature:**
```
getAddress(): AztecAddress
```
**Returns:**
`AztecAddress`
#### BaseAccount[](#baseaccount "Direct link to BaseAccount")
**Type:** Class
An account implementation that uses authwits as an authentication mechanism and can assemble transaction execution requests for an entrypoint.
**Implements:** `Account`
#### Constructor[](#constructor "Direct link to Constructor")
**Signature:**
```
constructor(
private entrypoint: EntrypointInterface,
private authWitnessProvider: AuthWitnessProvider,
private completeAddress: CompleteAddress
)
```
**Parameters:**
* `entrypoint`: `EntrypointInterface`
* `authWitnessProvider`: `AuthWitnessProvider`
* `completeAddress`: `CompleteAddress`
#### Methods[](#methods-1 "Direct link to Methods")
##### createTxExecutionRequest[](#createtxexecutionrequest "Direct link to createTxExecutionRequest")
**Signature:**
```
createTxExecutionRequest(
exec: ExecutionPayload,
gasSettings: GasSettings,
chainInfo: ChainInfo,
options: DefaultAccountEntrypointOptions
): Promise<TxExecutionRequest>
```
**Parameters:**
* `exec`: `ExecutionPayload`
* `gasSettings`: `GasSettings`
* `chainInfo`: `ChainInfo`
* `options`: `DefaultAccountEntrypointOptions`
**Returns:**
`Promise<TxExecutionRequest>`
##### wrapExecutionPayload[](#wrapexecutionpayload "Direct link to wrapExecutionPayload")
**Signature:**
```
wrapExecutionPayload(
exec: ExecutionPayload,
chainInfo: ChainInfo,
options?: any
): Promise<ExecutionPayload>
```
**Parameters:**
* `exec`: `ExecutionPayload`
* `chainInfo`: `ChainInfo`
* `options` (optional): `any`
**Returns:**
`Promise<ExecutionPayload>`
##### createAuthWit[](#createauthwit-1 "Direct link to createAuthWit")
**Signature:**
```
async createAuthWit(
messageHashOrIntent: CallIntent | IntentInnerHash,
chainInfo: ChainInfo
): Promise<AuthWitness>
```
**Parameters:**
* `messageHashOrIntent`: `CallIntent | IntentInnerHash`
* `chainInfo`: `ChainInfo`
**Returns:**
`Promise<AuthWitness>`
##### getCompleteAddress[](#getcompleteaddress-1 "Direct link to getCompleteAddress")
**Signature:**
```
getCompleteAddress(): CompleteAddress
```
**Returns:**
`CompleteAddress`
##### getAddress[](#getaddress-1 "Direct link to getAddress")
**Signature:**
```
getAddress(): AztecAddress
```
**Returns:**
`AztecAddress`
***
### `account/account_contract.ts`[](#accountaccount_contractts "Direct link to accountaccount_contractts")
#### AccountContract[](#accountcontract "Direct link to AccountContract")
**Type:** Interface
An account contract instance. Knows its artifact, deployment arguments, how to create transaction execution requests out of function calls, and how to authorize actions.
#### Methods[](#methods-2 "Direct link to Methods")
##### getContractArtifact[](#getcontractartifact "Direct link to getContractArtifact")
Returns the artifact of this account contract.
**Signature:**
```
getContractArtifact(): Promise<ContractArtifact>
```
**Returns:**
`Promise<ContractArtifact>`
##### getInitializationFunctionAndArgs[](#getinitializationfunctionandargs "Direct link to getInitializationFunctionAndArgs")
Returns the initializer function name and arguments for this instance, or undefined if this contract does not require initialization.
**Signature:**
```
getInitializationFunctionAndArgs(): Promise<{
constructorName: string;
constructorArgs: any[];
} | undefined>
```
**Returns:**
```
Promise<
| {
/** The name of the function used to initialize the contract */
constructorName: string;
/** The args to the function used to initialize the contract */
constructorArgs: any[];
}
| undefined
>
```
##### getImmutablesHash[](#getimmutableshash "Direct link to getImmutablesHash")
The hash of this account's immutable instantiation params, committed into its address. Returns undefined for accounts that have no immutables (these are instead deployed via an onchain initializer, which contributes to the address through its initialization hash).
**Signature:**
```
getImmutablesHash(): Promise<Fr | undefined>
```
**Returns:**
`Promise<Fr | undefined>`
##### getAccount[](#getaccount "Direct link to getAccount")
Returns the account implementation for this account contract given an instance at the provided address. The account is responsible for assembling tx requests given requested function calls, and for creating signed auth witnesses given action identifiers (message hashes).
**Signature:**
```
getAccount(address: CompleteAddress): Account
```
**Parameters:**
* `address`: `CompleteAddress`
* Address of this account contract.
**Returns:**
`Account` - An account instance for creating tx requests and authorizing actions.
##### getAuthWitnessProvider[](#getauthwitnessprovider "Direct link to getAuthWitnessProvider")
Returns the auth witness provider for the given address.
**Signature:**
```
getAuthWitnessProvider(address: CompleteAddress): AuthWitnessProvider
```
**Parameters:**
* `address`: `CompleteAddress`
* Address for which to create auth witnesses.
**Returns:**
`AuthWitnessProvider`
#### getAccountContractAddress[](#getaccountcontractaddress "Direct link to getAccountContractAddress")
**Type:** Function
Compute the address of an account contract from secret, salt and optional immutables hash
**Signature:**
```
export async getAccountContractAddress(
accountContract: AccountContract,
secret: Fr,
salt: Fr,
immutablesHash?: Fr
): Promise<AztecAddress>
```
**Parameters:**
* `accountContract`: `AccountContract`
* `secret`: `Fr`
* `salt`: `Fr`
* `immutablesHash` (optional): `Fr`
**Returns:**
`Promise<AztecAddress>`
## Authorization[](#authorization "Direct link to Authorization")
***
### `authorization/call_authorization_request.ts`[](#authorizationcall_authorization_requestts "Direct link to authorizationcall_authorization_requestts")
#### CallAuthorizationRequest[](#callauthorizationrequest "Direct link to CallAuthorizationRequest")
**Type:** Class
An authwit request for a function call. Includes the preimage of the data to be signed, as opposed of just the inner hash.
#### Constructor[](#constructor-1 "Direct link to Constructor")
**Signature:**
```
private constructor(
public selector: AuthorizationSelector,
public innerHash: Fr,
public onBehalfOf: AztecAddress,
public msgSender: AztecAddress,
public functionSelector: FunctionSelector,
public argsHash: Fr,
public args: Fr[]
)
```
**Parameters:**
* `selector`: `AuthorizationSelector`
* The selector of the authwit type, used to identify it when emitted from `emit_offchain_effect`oracle. Computed as poseidon2("CallAuthwit((Field),(u32),Field)".to\_bytes())
* `innerHash`: `Fr`
* The inner hash of the authwit, computed as poseidon2(\[msg\_sender, selector, args\_hash])
* `onBehalfOf`: `AztecAddress`
* The address on whose behalf the auth witness should be created. This is the account that must sign the authorization.
* `msgSender`: `AztecAddress`
* The address performing the call
* `functionSelector`: `FunctionSelector`
* The selector of the function that is to be authorized
* `argsHash`: `Fr`
* The hash of the arguments to the function call,
* `args`: `Fr[]`
* The arguments to the function call.
#### Methods[](#methods-3 "Direct link to Methods")
##### getSelector[](#getselector "Direct link to getSelector")
**Signature:**
```
static getSelector(): Promise<AuthorizationSelector>
`프로젝트로 돌아가기