bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 14쪽
tions for sending/proving interactions with the wallet. Overrides the fee settings of an interaction with a simplified version that only hints at the wallet whether the interaction contains a fee payment method or not
**Signature:**
```
export type SendOptions<W extends InteractionWaitOptions = undefined> = Omit<
SendInteractionOptionsWithoutWait,
'fee'
> & {
fee?: GasSettingsOption;
wait?: W;
};
```
**Type Members:**
##### fee[](#fee-8 "Direct link to fee")
The fee options
**Type:** `GasSettingsOption`
##### wait[](#wait-3 "Direct link to wait")
Whether to wait for the transaction to be mined
**Type:** `W`
#### BatchableMethods[](#batchablemethods "Direct link to BatchableMethods")
**Type:** Type Alias
Helper type that represents all methods that can be batched (all methods except batch itself).
**Signature:**
```
export type BatchableMethods = Omit<Wallet, 'batch'>;
```
#### BatchedMethod[](#batchedmethod "Direct link to BatchedMethod")
**Type:** Type Alias
Union of all possible batched method calls. This ensures type safety: the `args` must match the specific `name`.
**Signature:**
```
export type BatchedMethod = {
[K in keyof BatchableMethods]: BatchedMethodInternal<K>;
}[keyof BatchableMethods];
```
#### BatchedMethodResult[](#batchedmethodresult "Direct link to BatchedMethodResult")
**Type:** Type Alias
Helper type to extract the return type of a batched method
**Signature:**
```
export type BatchedMethodResult<T> =
T extends BatchedMethodInternal<infer K> ? Awaited<ReturnType<BatchableMethods[K]>> : never;
```
#### BatchedMethodResultWrapper[](#batchedmethodresultwrapper "Direct link to BatchedMethodResultWrapper")
**Type:** Type Alias
Wrapper type for batch results that includes the method name for discriminated union deserialization. Each result is wrapped as { name: 'methodName', result: ActualResult } to allow proper deserialization when AztecAddress and TxHash would otherwise be ambiguous (both are hex strings).
**Signature:**
```
export type BatchedMethodResultWrapper<T extends BatchedMethod> = {
name: T['name'];
result: BatchedMethodResult<T>;
};
```
**Type Members:**
##### name[](#name "Direct link to name")
The method name
**Type:** `T['name']`
##### result[](#result-1 "Direct link to result")
The method result
**Type:** `BatchedMethodResult<T>`
#### BatchResults[](#batchresults "Direct link to BatchResults")
**Type:** Type Alias
Maps a tuple of BatchedMethod to a tuple of their wrapped return types
**Signature:**
```
export type BatchResults<T extends readonly BatchedMethod[]> = {
[K in keyof T]: BatchedMethodResultWrapper<T[K]>;
};
```
**Type Members:**
##### \[K in keyof T][](#k-in-keyof-t "Direct link to \[K in keyof T]")
**Signature:** `[K in keyof T]: BatchedMethodResultWrapper<T[K]>`
**Key Type:** `keyof T`
**Value Type:** `BatchedMethodResultWrapper<T[K]>`
#### EventFilterBase[](#eventfilterbase "Direct link to EventFilterBase")
**Type:** Type Alias
Base filter options for event queries.
**Signature:**
```
export type EventFilterBase = {
txHash?: TxHash;
fromBlock?: BlockNumber;
toBlock?: BlockNumber;
};
```
**Type Members:**
##### txHash[](#txhash-1 "Direct link to txHash")
Transaction in which the events were emitted.
**Type:** `TxHash`
##### fromBlock[](#fromblock "Direct link to fromBlock")
The block number from which to start fetching events (inclusive). Optional. If provided, it must be greater or equal than 1. Defaults to the initial L2 block number (INITIAL\_L2\_BLOCK\_NUM).
**Type:** `BlockNumber`
##### toBlock[](#toblock "Direct link to toBlock")
The block number until which to fetch logs (not inclusive). Optional. If provided, it must be greater than fromBlock.
**Type:** `BlockNumber`
#### PrivateEventFilter[](#privateeventfilter "Direct link to PrivateEventFilter")
**Type:** Type Alias
Filter options when querying private events.
**Signature:**
```
export type PrivateEventFilter = EventFilterBase & {
contractAddress: AztecAddress;
scopes: AztecAddress[];
};
```
**Type Members:**
##### contractAddress[](#contractaddress-1 "Direct link to contractAddress")
The address of the contract that emitted the events.
**Type:** `AztecAddress`
##### scopes[](#scopes "Direct link to scopes")
Addresses of accounts that are in scope for this filter.
**Type:** `AztecAddress[]`
#### PublicEventFilter[](#publiceventfilter "Direct link to PublicEventFilter")
**Type:** Type Alias
Filter options when querying public events. The contract address is required because the public log index is keyed on `(contract, tag)`; tag-only queries are not supported.
**Signature:**
```
export type PublicEventFilter = EventFilterBase & {
contractAddress: AztecAddress;
afterEvent?: EventCursor;
};
```
**Type Members:**
##### contractAddress[](#contractaddress-2 "Direct link to contractAddress")
The address of the contract that emitted the events. Required.
**Type:** `AztecAddress`
##### afterEvent[](#afterevent "Direct link to afterEvent")
Cursor to resume strictly after, for pagination. Pass GetPublicEventsResult.nextCursor from a previous page here to fetch the next one. Omit to start from the beginning of the range.
**Type:** `EventCursor`
#### Event[](#event "Direct link to Event")
**Type:** Type Alias
An ABI decoded event with associated metadata.
**Signature:**
```
export type Event<T, M extends object = object> = {
event: T;
metadata: InTx & M;
};
```
**Type Members:**
##### event[](#event-1 "Direct link to event")
The ABI decoded event
**Type:** `T`
##### metadata[](#metadata-1 "Direct link to metadata")
Metadata describing event context information such as tx and block
**Type:** `InTx & M`
#### PrivateEvent[](#privateevent "Direct link to PrivateEvent")
**Type:** Type Alias
An ABI decoded private event with associated metadata.
**Signature:**
```
export type PrivateEvent<T> = Event<T>;
```
#### PublicEvent[](#publicevent "Direct link to PublicEvent")
**Type:** Type Alias
An ABI decoded public event with associated metadata (includes contract address).
**Signature:**
```
export type PublicEvent<T> = Event<
T,
{
contractAddress: AztecAddress;
}
>;
```
#### ContractMetadata[](#contractmetadata "Direct link to ContractMetadata")
**Type:** Type Alias
Contract metadata including deployment and registration status.
**Signature:**
```
export type ContractMetadata = {
instance?: ContractInstancePreimageWithAddress;
initializationStatus: ContractInitializationStatus;
isContractPublished: boolean;
isContractUpdated: boolean;
updatedContractClassId?: Fr | undefined;
};
```
**Type Members:**
##### instance[](#instance-1 "Direct link to instance")
The contract instance preimage and address.
**Type:** `ContractInstancePreimageWithAddress`
##### initializationStatus[](#initializationstatus "Direct link to initializationStatus")
Whether the contract has been initialized.
**Type:** `ContractInitializationStatus`
##### isContractPublished[](#iscontractpublished "Direct link to isContractPublished")
Whether the contract instance is publicly deployed onchain
**Type:** `boolean`
##### isContractUpdated[](#iscontractupdated "Direct link to isContractUpdated")
Whether the contract has been updated to a different class
**Type:** `boolean`
##### updatedContractClassId[](#updatedcontractclassid "Direct link to updatedContractClassId")
The updated contract class ID if the contract has been updated
**Type:** `Fr | undefined`
#### ContractClassMetadata[](#contractclassmetadata "Direct link to ContractClassMetadata")
**Type:** Type Alias
Contract class metadata.
**Signature:**
```
export type ContractClassMetadata = {
isArtifactRegistered: boolean;
isContractClassPubliclyRegistered: boolean;
};
```
**Type Members:**
##### isArtifactRegistered[](#isartifactregistered "Direct link to isArtifactRegistered")
Whether the artifact is registered in the wallet
**Type:** `boolean`
##### isContractClassPubliclyRegistered[](#iscontractclasspubliclyregistered "Direct link to isContractClassPubliclyRegistered")
Whether the contract class is publicly registered onchain
**Type:** `boolean`
#### ExecuteUtilityOptions[](#executeutilityoptions "Direct link to ExecuteUtilityOptions")
**Type:** Type Alias
Options for executing a utility function call.
**Signature:**
```
export type ExecuteUtilityOptions = {
scopes: AztecAddress[];
authWitnesses?: AuthWitness[];
};
```
**Type Members:**
##### scopes[](#scopes-1 "Direct link to scopes")
The scopes for the utility execution (determines which notes and keys are visible).
**Type:** `AztecAddress[]`
##### authWitnesses[](#authwitnesses-2 "Direct link to authWitnesses")
Optional auth witnesses to use during execution.
**Type:** `AuthWitness[]`
#### Wallet[](#wallet-2 "Direct link to Wallet")
**Type:** Type Alias
The wallet interface.
**Signature:**
```
export type Wallet = {
getPrivateEvents<T>(
eventMetadata: EventMetadataDefinition,
eventFilter: PrivateEventFilter,
): Promise<PrivateEvent<T>[]>;
getChainInfo(): Promise<ChainInfo>;
getContractMetadata(address: AztecAddress): Promise<ContractMetadata>;
getContractClassMetadata(id: Fr): Promise<ContractClassMetadata>;
registerSender(address: AztecAddress, alias?: string): Promise<AztecAddress>;
getAddressBook(): Promise<Aliased<AztecAddress>[]>;
getAccounts(): Promise<Aliased<AztecAddress>[]>;
registerContract(
instance: ContractInstancePreimage,
artifact?: ContractArtifact,
secretKeyOrKeys?: Fr | MasterSecretKeys,
): Promise<void>;
registerContractClass(artifact: ContractArtifact): Promise<void>;
simulateTx(exec: ExecutionPayload, opts: SimulateOptions): Promise<TxSimulationResultWithAppOffset>;
executeUtility(call: FunctionCall, opts: ExecuteUtilityOptions): Promise<UtilityExecutionResult>;
profileTx(exec: ExecutionPayload, opts: ProfileOptions): Promise<TxProfileResult>;
sendTx<W extends InteractionWaitOptions = undefined>(
exec: ExecutionPayload,
opts: SendOptions<W>,
): Promise<SendReturn<W>>;
createAuthWit(from: AztecAddress, messageHashOrIntent: IntentInnerHash | CallIntent): Promise<AuthWitness>;
requestCapabilities(manifest: AppCapabilities): Promise<WalletCapabilities>;
batch<const T extends readonly BatchedMethod[]>(methods: T): Promise<BatchResults<T>>;
};
```
**Type Members:**
##### getPrivateEvents[](#getprivateevents "Direct link to getPrivateEvents")
**Signature:**
```
getPrivateEvents<T>(
eventMetadata: EventMetadataDefinition,
eventFilter: PrivateEventFilter
): Promise<PrivateEvent<T>[]>
```
**Parameters:**
* `eventMetadata`: `EventMetadataDefinition`
* `eventFilter`: `PrivateEventFilter`
**Returns:**
`Promise<PrivateEvent<T>[]>`
##### getChainInfo[](#getchaininfo "Direct link to getChainInfo")
**Signature:**
```
getChainInfo(): Promise<ChainInfo>
```
**Returns:**
`Promise<ChainInfo>`
##### getContractMetadata[](#getcontractmetadata "Direct link to getContractMetadata")
**Signature:**
```
getContractMetadata(address: AztecAddress): Promise<ContractMetadata>
```
**Parameters:**
* `address`: `AztecAddress`
**Returns:**
`Promise<ContractMetadata>`
##### getContractClassMetadata[](#getcontractclassmetadata "Direct link to getContractClassMetadata")
**Signature:**
```
getContractClassMetadata(id: Fr): Promise<ContractClassMetadata>
```
**Parameters:**
* `id`: `Fr`
**Returns:**
`Promise<ContractClassMetadata>`
##### registerSender[](#registersender "Direct link to registerSender")
**Signature:**
```
registerSender(
address: AztecAddress,
alias?: string
): Promise<AztecAddress>
```
**Parameters:**
* `address`: `AztecAddress`
* `alias` (optional): `string`
**Returns:**
`Promise<AztecAddress>`
##### getAddressBook[](#getaddressbook "Direct link to getAddressBook")
**Signature:**
```
getAddressBook(): Promise<Aliased<AztecAddress>[]>
```
**Returns:**
`Promise<Aliased<AztecAddress>[]>`
##### getAccounts[](#getaccounts "Direct link to getAccounts")
**Signature:**
```
getAccounts(): Promise<Aliased<AztecAddress>[]>
```
**Returns:**
`Promise<Aliased<AztecAddress>[]>`
##### registerContract[](#registercontract "Direct link to registerContract")
**Signature:**
```
registerContract(
instance: ContractInstancePreimage,
artifact?: ContractArtifact,
secretKeyOrKeys?: Fr | MasterSecretKeys
): Promise<void>
```
**Parameters:**
* `instance`: `ContractInstancePreimage`
* `artifact` (optional): `ContractArtifact`
* `secretKeyOrKeys` (optional): `Fr | MasterSecretKeys`
**Returns:**
`Promise<void>`
##### registerContractClass[](#registercontractclass "Direct link to registerContractClass")
Registers a contract class artifact in the local PXE without binding it to any instance. Useful for simulation flows that need the artifact available locally before any onchain upgrade has taken effect. No chain check.
**Signature:**
```
registerContractClass(artifact: ContractArtifact): Promise<void>
```
**Parameters:**
* `artifact`: `ContractArtifact`
**Returns:**
`Promise<void>`
##### simulateTx[](#simulatetx "Direct link to simulateTx")
**Signature:**
```
simulateTx(
exec: ExecutionPayload,
opts: SimulateOptions
): Promise<TxSimulationResultWithAppOffset>
```
**Parameters:**
* `exec`: `ExecutionPayload`
* `opts`: `SimulateOptions`
**Returns:**
`Promise<TxSimulationResultWithAppOffset>`
##### executeUtility[](#executeutility "Direct link to executeUtility")
**Signature:**
```
executeUtility(
call: FunctionCall,
opts: ExecuteUtilityOptions
): Promise<UtilityExecutionResult>
```
**Parameters:**
* `call`: `FunctionCall`
* `opts`: `ExecuteUtilityOptions`
**Returns:**
`Promise<UtilityExecutionResult>`
##### profileTx[](#profiletx "Direct link to profileTx")
**Signature:**
```
profileTx(
exec: ExecutionPayload,
opts: ProfileOptions
): Promise<TxProfileResult>
```
**Parameters:**
* `exec`: `ExecutionPayload`
* `opts`: `ProfileOptions`
**Returns:**
`Promise<TxProfileResult>`
##### sendTx[](#sendtx "Direct link to sendTx")
**Signature:**
```
sendTx<W extends InteractionWaitOptions = undefined>(
exec: ExecutionPayload,
opts: SendOptions<W>
): Promise<SendReturn<W>>
```
**Parameters:**
* `exec`: `ExecutionPayload`
* `opts`: `SendOptions<W>`
**Returns:**
`Promise<SendReturn<W>>`
##### createAuthWit[](#createauthwit-2 "Direct link to createAuthWit")
**Signature:**
```
createAuthWit(
from: AztecAddress,
messageHashOrIntent: IntentInnerHash | CallIntent
): Promise<AuthWitness>
```
**Parameters:**
* `from`: `AztecAddress`
* `messageHashOrIntent`: `IntentInnerHash | CallIntent`
**Returns:**
`Promise<AuthWitness>`
##### requestCapabilities[](#requestcapabilities "Direct link to requestCapabilities")
**Signature:**
```
requestCapabilities(manifest: AppCapabilities): Promise<WalletCapabilities>
```
**Parameters:**
* `manifest`: `AppCapabilities`
**Returns:**
`Promise<WalletCapabilities>`
##### batch[](#batch "Direct link to batch")
**Signature:**
```
batch<const T extends readonly BatchedMethod[]>(methods: T): Promise<BatchResults<T>>
```
**Parameters:**
* `methods`: `T`
**Returns:**
`Promise<BatchResults<T>>`
#### ExecutionPayloadSchema[](#executionpayloadschema "Direct link to ExecutionPayloadSchema")
**Type:** Constant
**Value Type:** `any`
#### GasSettingsOptionSchema[](#gassettingsoptionschema "Direct link to GasSettingsOptionSchema")
**Type:** Constant
**Value Type:** `any`
#### WaitOptsSchema[](#waitoptsschema "Direct link to WaitOptsSchema")
**Type:** Constant
**Value Type:** `any`
#### SendOptionsSchema[](#sendoptionsschema "Direct link to SendOptionsSchema")
**Type:** Constant
**Value Type:** `any`
#### SimulateOptionsSchema[](#simulateoptionsschema "Direct link to SimulateOptionsSchema")
**Type:** Constant
**Value Type:** `any`
#### ProfileOptionsSchema[](#profileoptionsschema "Direct link to ProfileOptionsSchema")
**Type:** Constant
**Value Type:** `any`
#### MessageHashOrIntentSchema[](#messagehashorintentschema "Direct link to MessageHashOrIntentSchema")
**Type:** Constant
**Value Type:** `any`
#### EventMetadataDefinitionSchema[](#eventmetadatadefinitionschema "Direct link to EventMetadataDefinitionSchema")
**Type:** Constant
**Value Type:** `any`
#### PrivateEventFilterSchema[](#privateeventfilterschema "Direct link to PrivateEventFilterSchema")
**Type:** Constant
**Value Type:** `any`
#### PublicEventFilterSchema[](#publiceventfilterschema "Direct link to PublicEventFilterSchema")
**Type:** Constant
**Value Type:** `any`
#### PrivateEventSchema[](#privateeventschema "Direct link to PrivateEventSchema")
**Type:** Constant
**Value Type:** `z.ZodType<any>`
#### PublicEventSchema[](#publiceventschema "Direct link to PublicEventSchema")
**Type:** Constant
**Value Type:** `z.ZodType<PublicEvent<AbiDecoded>>`
#### ContractMetadataSchema[](#contractmetadataschema "Direct link to ContractMetadataSchema")
**Type:** Constant
**Value Type:** `any`
#### ContractClassMetadataSchema[](#contractclassmetadataschema "Direct link to ContractClassMetadataSchema")
**Type:** Constant
**Value Type:** `any`
#### ContractFunctionPatternSchema[](#contractfunctionpatternschema "Direct link to ContractFunctionPatternSchema")
**Type:** Constant
**Value Type:** `any`
#### AccountsCapabilitySchema[](#accountscapabilityschema "Direct link to AccountsCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### GrantedAccountsCapabilitySchema[](#grantedaccountscapabilityschema "Direct link to GrantedAccountsCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### ContractsCapabilitySchema[](#contractscapabilityschema "Direct link to ContractsCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### GrantedContractsCapabilitySchema[](#grantedcontractscapabilityschema "Direct link to GrantedContractsCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### ContractClassesCapabilitySchema[](#contractclassescapabilityschema "Direct link to ContractClassesCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### GrantedContractClassesCapabilitySchema[](#grantedcontractclassescapabilityschema "Direct link to GrantedContractClassesCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### SimulationCapabilitySchema[](#simulationcapabilityschema "Direct link to SimulationCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### GrantedSimulationCapabilitySchema[](#grantedsimulationcapabilityschema "Direct link to GrantedSimulationCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### TransactionCapabilitySchema[](#transactioncapabilityschema "Direct link to TransactionCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### GrantedTransactionCapabilitySchema[](#grantedtransactioncapabilityschema "Direct link to GrantedTransactionCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### DataCapabilitySchema[](#datacapabilityschema "Direct link to DataCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### GrantedDataCapabilitySchema[](#granteddatacapabilityschema "Direct link to GrantedDataCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### CapabilitySchema[](#capabilityschema "Direct link to CapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### GrantedCapabilitySchema[](#grantedcapabilityschema "Direct link to GrantedCapabilitySchema")
**Type:** Constant
**Value Type:** `any`
#### AppCapabilitiesSchema[](#appcapabilitiesschema "Direct link to AppCapabilitiesSchema")
**Type:** Constant
**Value Type:** `any`
#### WalletCapabilitiesSchema[](#walletcapabilitiesschema "Direct link to WalletCapabilitiesSchema")
**Type:** Constant
**Value Type:** `any`
#### BatchedMethodSchema[](#batchedmethodschema "Direct link to BatchedMethodSchem프로젝트로 돌아가기