Parameters
- params: GetUniversalAddressParams<
{
account: undefined;
batch?: { multicall?: boolean
| { batchSize?: number; wait?: number } };
cacheTime: number;
call: (
parameters: CallParameters<undefined | Chain>,
) => Promise<CallReturnType>;
ccipRead?:
| false
| {
request?: (
parameters: CcipRequestParameters,
) => Promise<`0x${string}`>;
};
chain: undefined
| Chain;
createAccessList: (
parameters: CreateAccessListParameters<undefined | Chain>,
) => Promise<{ accessList: AccessList; gasUsed: bigint }>;
createBlockFilter: () => Promise<
{
id: `0x${string}`;
request: EIP1193RequestFn<
readonly [
{
Method: "eth_getFilterChanges";
Parameters: [filterId: `0x${string}`];
ReturnType: `0x${(...)}`[] | RpcLog[];
},
{
Method: "eth_getFilterLogs";
Parameters: [filterId: `0x${string}`];
ReturnType: RpcLog[];
},
{
Method: "eth_uninstallFilter";
Parameters: [filterId: `0x${string}`];
ReturnType: boolean;
},
],
>;
type: "block";
},
>;
createContractEventFilter: <
const abi extends Abi
| readonly unknown[],
eventName extends undefined | string,
args extends undefined | Record<string, unknown> | readonly unknown[],
strict extends undefined | boolean = undefined,
fromBlock extends undefined | bigint | BlockTag = undefined,
toBlock extends undefined | bigint | BlockTag = undefined,
>(
args: CreateContractEventFilterParameters<
abi,
eventName,
args,
strict,
fromBlock,
toBlock,
>,
) => Promise<
CreateContractEventFilterReturnType<
abi,
eventName,
args,
strict,
fromBlock,
toBlock,
>,
>;
createEventFilter: <
const abiEvent extends undefined
| AbiEvent = undefined,
const abiEvents extends
undefined | readonly unknown[] | readonly AbiEvent[] = abiEvent extends AbiEvent
? [abiEvent<abiEvent>]
: undefined,
strict extends undefined
| boolean = undefined,
fromBlock extends undefined | bigint | BlockTag = undefined,
toBlock extends undefined | bigint | BlockTag = undefined,
_EventName extends undefined | string = MaybeAbiEventName<abiEvent>,
_Args extends
undefined | Record<string, unknown> | readonly unknown[] = undefined,
>(
args?: CreateEventFilterParameters<
abiEvent,
abiEvents,
strict,
fromBlock,
toBlock,
_EventName,
_Args,
>,
) => Promise<
{
[K in string
| number
| symbol]: Filter<
"event",
abiEvents,
_EventName,
_Args,
strict,
fromBlock,
toBlock,
>[K]
},
>;
createPendingTransactionFilter: () => Promise<
{
id: `0x${string}`;
request: EIP1193RequestFn<
readonly [
{
Method: "eth_getFilterChanges";
Parameters: [filterId: `0x${string}`];
ReturnType: `0x${(...)}`[] | RpcLog[];
},
{
Method: "eth_getFilterLogs";
Parameters: [filterId: `0x${string}`];
ReturnType: RpcLog[];
},
{
Method: "eth_uninstallFilter";
Parameters: [filterId: `0x${string}`];
ReturnType: boolean;
},
],
>;
type: "transaction";
},
>;
estimateContractGas: <
chain extends undefined
| Chain,
const abi extends Abi | readonly unknown[],
functionName extends string,
args extends unknown,
>(
args: EstimateContractGasParameters<abi, functionName, args, chain>,
) => Promise<bigint>;
estimateFeesPerGas: <
chainOverride extends undefined
| Chain = undefined,
type extends FeeValuesType = "eip1559",
>(
args?: EstimateFeesPerGasParameters<
undefined
| Chain,
chainOverride,
type,
>,
) => Promise<EstimateFeesPerGasReturnType<type>>;
estimateGas: (
args: EstimateGasParameters<undefined | Chain>,
) => Promise<bigint>;
estimateMaxPriorityFeePerGas: <
chainOverride extends undefined
| Chain = undefined,
>(
args?: { chain: null | chainOverride },
) => Promise<bigint>;
extend: <
const client extends
{
account?: undefined;
batch?: undefined;
cacheTime?: undefined;
ccipRead?: undefined;
chain?: undefined;
key?: undefined;
name?: undefined;
pollingInterval?: undefined;
request?: undefined;
transport?: undefined;
type?: undefined;
uid?: undefined;
[key: string]: unknown;
} & ExactPartial<
ExtendableProtectedActions<Transport, undefined | Chain, undefined>,
>,
>(
fn: (
client: Client<
Transport,
undefined
| Chain,
undefined,
PublicRpcSchema,
PublicActions<Transport, undefined | Chain>,
>,
) => client,
) => Client<
Transport,
undefined
| Chain,
undefined,
PublicRpcSchema,
{ [K in string | number | symbol]: client[K] } & PublicActions<
Transport,
undefined
| Chain,
>,
>;
getBalance: (args: GetBalanceParameters) => Promise<bigint>;
getBlobBaseFee: () => Promise<bigint>;
getBlock: <
includeTransactions extends boolean = false,
blockTag extends BlockTag = "latest",
>(
args?: GetBlockParameters<includeTransactions, blockTag>,
) => Promise<
{
baseFeePerGas: null
| bigint;
blobGasUsed: bigint;
difficulty: bigint;
excessBlobGas: bigint;
extraData: `0x${string}`;
gasLimit: bigint;
gasUsed: bigint;
hash: blockTag extends "pending" ? null : `0x${string}`;
logsBloom: blockTag extends "pending" ? null : `0x${string}`;
miner: `0x${string}`;
mixHash: `0x${string}`;
nonce: blockTag extends "pending" ? null : `0x${string}`;
number: blockTag extends "pending" ? null : bigint;
parentBeaconBlockRoot?: `0x${string}`;
parentHash: `0x${string}`;
receiptsRoot: `0x${string}`;
sealFields: `0x${string}`[];
sha3Uncles: `0x${string}`;
size: bigint;
stateRoot: `0x${string}`;
timestamp: bigint;
totalDifficulty: null | bigint;
transactions: includeTransactions extends true
? (
| {
accessList?: undefined;
authorizationList?: undefined;
blobVersionedHashes?: undefined;
blockHash: ((...) extends (...) ? (...) : (...)) extends true
? null
: `0x${(...)}`;
blockNumber: ((...) extends (...) ? (...) : (...)) extends true
? null
: bigint;
chainId?: number;
from: `0x${string}`;
gas: bigint;
gasPrice: bigint;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${(...)}`;
transactionIndex: ((...) extends (...) ? (...) : (...)) extends true
? null
: number;
type: "legacy";
typeHex: null | `0x${(...)}`;
v: bigint;
value: bigint;
yParity?: undefined;
}
| {
accessList: AccessList;
authorizationList?: undefined;
blobVersionedHashes?: undefined;
blockHash: ((...) extends (...) ? (...) : (...)) extends true
? null
: `0x${(...)}`;
blockNumber: ((...) extends (...) ? (...) : (...)) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice: bigint;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${(...)}`;
transactionIndex: ((...) extends (...) ? (...) : (...)) extends true
? null
: number;
type: "eip2930";
typeHex: null | `0x${(...)}`;
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: undefined;
blobVersionedHashes?: undefined;
blockHash: ((...) extends (...) ? (...) : (...)) extends true
? null
: `0x${(...)}`;
blockNumber: ((...) extends (...) ? (...) : (...)) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice?: undefined;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${(...)}`;
transactionIndex: ((...) extends (...) ? (...) : (...)) extends true
? null
: number;
type: "eip1559";
typeHex: null | `0x${(...)}`;
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: undefined;
blobVersionedHashes: readonly `0x${(...)}`[];
blockHash: ((...) extends (...) ? (...) : (...)) extends true
? null
: `0x${(...)}`;
blockNumber: ((...) extends (...) ? (...) : (...)) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice?: undefined;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${(...)}`;
transactionIndex: ((...) extends (...) ? (...) : (...)) extends true
? null
: number;
type: "eip4844";
typeHex: null | `0x${(...)}`;
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: undefined;
blockHash: ((...) extends (...) ? (...) : (...)) extends true
? null
: `0x${(...)}`;
blockNumber: ((...) extends (...) ? (...) : (...)) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice?: undefined;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${(...)}`;
transactionIndex: ((...) extends (...) ? (...) : (...)) extends true
? null
: number;
type: "eip7702";
typeHex: null | `0x${(...)}`;
v: bigint;
value: bigint;
yParity: number;
}
)[]
: `0x${string}`[];
transactionsRoot: `0x${string}`;
uncles: `0x${string}`[];
withdrawals?: Withdrawal[];
withdrawalsRoot?: `0x${string}`;
},
>;
getBlockNumber: (args?: GetBlockNumberParameters) => Promise<bigint>;
getBlockTransactionCount: (
args?: GetBlockTransactionCountParameters,
) => Promise<number>;
getBytecode: (args: GetCodeParameters) => Promise<GetCodeReturnType>;
getChainId: () => Promise<number>;
getCode: (args: GetCodeParameters) => Promise<GetCodeReturnType>;
getContractEvents: <
const abi extends Abi
| readonly unknown[],
eventName extends undefined | string = undefined,
strict extends undefined | boolean = undefined,
fromBlock extends undefined | bigint | BlockTag = undefined,
toBlock extends undefined | bigint | BlockTag = undefined,
>(
args: GetContractEventsParameters<
abi,
eventName,
strict,
fromBlock,
toBlock,
>,
) => Promise<
GetContractEventsReturnType<
abi,
eventName,
strict,
fromBlock,
toBlock,
>,
>;
getEip712Domain: (
args: GetEip712DomainParameters,
) => Promise<GetEip712DomainReturnType>;
getEnsAddress: (
args: {
blockNumber?: bigint;
blockTag?: BlockTag;
coinType?: number;
gatewayUrls?: string[];
name: string;
strict?: boolean;
universalResolverAddress?: `0x${string}`;
},
) => Promise<GetEnsAddressReturnType>;
getEnsAvatar: (
args: {
assetGatewayUrls?: AssetGatewayUrls;
blockNumber?: bigint;
blockTag?: BlockTag;
gatewayUrls?: string[];
name: string;
strict?: boolean;
universalResolverAddress?: `0x${string}`;
},
) => Promise<GetEnsAvatarReturnType>;
getEnsName: (
args: {
address: `0x${string}`;
blockNumber?: bigint;
blockTag?: BlockTag;
gatewayUrls?: string[];
strict?: boolean;
universalResolverAddress?: `0x${string}`;
},
) => Promise<GetEnsNameReturnType>;
getEnsResolver: (
args: {
blockNumber?: bigint;
blockTag?: BlockTag;
name: string;
universalResolverAddress?: `0x${string}`;
},
) => Promise<`0x${string}`>;
getEnsText: (
args: {
blockNumber?: bigint;
blockTag?: BlockTag;
gatewayUrls?: string[];
key: string;
name: string;
strict?: boolean;
universalResolverAddress?: `0x${string}`;
},
) => Promise<GetEnsTextReturnType>;
getFeeHistory: (
args: GetFeeHistoryParameters,
) => Promise<GetFeeHistoryReturnType>;
getFilterChanges: <
filterType extends FilterType,
const abi extends undefined | Abi | readonly unknown[],
eventName extends undefined | string,
strict extends undefined | boolean = undefined,
fromBlock extends undefined | bigint | BlockTag = undefined,
toBlock extends undefined | bigint | BlockTag = undefined,
>(
args: GetFilterChangesParameters<
filterType,
abi,
eventName,
strict,
fromBlock,
toBlock,
>,
) => Promise<
GetFilterChangesReturnType<
filterType,
abi,
eventName,
strict,
fromBlock,
toBlock,
>,
>;
getFilterLogs: <
const abi extends undefined
| Abi
| readonly unknown[],
eventName extends undefined | string,
strict extends undefined | boolean = undefined,
fromBlock extends undefined | bigint | BlockTag = undefined,
toBlock extends undefined | bigint | BlockTag = undefined,
>(
args: GetFilterLogsParameters<
abi,
eventName,
strict,
fromBlock,
toBlock,
>,
) => Promise<
GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>,
>;
getGasPrice: () => Promise<bigint>;
getLogs: <
const abiEvent extends undefined
| AbiEvent = undefined,
const abiEvents extends
undefined | readonly unknown[] | readonly AbiEvent[] = abiEvent extends AbiEvent
? [abiEvent<abiEvent>]
: undefined,
strict extends undefined
| boolean = undefined,
fromBlock extends undefined | bigint | BlockTag = undefined,
toBlock extends undefined | bigint | BlockTag = undefined,
>(
args?: GetLogsParameters<
abiEvent,
abiEvents,
strict,
fromBlock,
toBlock,
>,
) => Promise<
GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>,
>;
getProof: (args: GetProofParameters) => Promise<GetProofReturnType>;
getStorageAt: (
args: GetStorageAtParameters,
) => Promise<GetStorageAtReturnType>;
getTransaction: <blockTag extends BlockTag = "latest">(
args: GetTransactionParameters<blockTag>,
) => Promise<
| {
accessList?: undefined;
authorizationList?: undefined;
blobVersionedHashes?: undefined;
blockHash: (blockTag extends "pending" ? true : false) extends true
? null
: `0x${string}`;
blockNumber: (blockTag extends "pending" ? true : false) extends true
? null
: bigint;
chainId?: number;
from: `0x${string}`;
gas: bigint;
gasPrice: bigint;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${string}`;
transactionIndex: (blockTag extends "pending" ? true : false) extends true
? null
: number;
type: "legacy";
typeHex: null | `0x${string}`;
v: bigint;
value: bigint;
yParity?: undefined;
}
| {
accessList: AccessList;
authorizationList?: undefined;
blobVersionedHashes?: undefined;
blockHash: (blockTag extends "pending" ? true : false) extends true
? null
: `0x${string}`;
blockNumber: (blockTag extends "pending" ? true : false) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice: bigint;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${string}`;
transactionIndex: (blockTag extends "pending" ? true : false) extends true
? null
: number;
type: "eip2930";
typeHex: null | `0x${string}`;
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: undefined;
blobVersionedHashes?: undefined;
blockHash: (blockTag extends "pending" ? true : false) extends true
? null
: `0x${string}`;
blockNumber: (blockTag extends "pending" ? true : false) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice?: undefined;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${string}`;
transactionIndex: (blockTag extends "pending" ? true : false) extends true
? null
: number;
type: "eip1559";
typeHex: null | `0x${string}`;
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList?: undefined;
blobVersionedHashes: readonly `0x${string}`[];
blockHash: (blockTag extends "pending" ? true : false) extends true
? null
: `0x${string}`;
blockNumber: (blockTag extends "pending" ? true : false) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice?: undefined;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas: bigint;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${string}`;
transactionIndex: (blockTag extends "pending" ? true : false) extends true
? null
: number;
type: "eip4844";
typeHex: null | `0x${string}`;
v: bigint;
value: bigint;
yParity: number;
}
| {
accessList: AccessList;
authorizationList: SignedAuthorizationList;
blobVersionedHashes?: undefined;
blockHash: (blockTag extends "pending" ? true : false) extends true
? null
: `0x${string}`;
blockNumber: (blockTag extends "pending" ? true : false) extends true
? null
: bigint;
chainId: number;
from: `0x${string}`;
gas: bigint;
gasPrice?: undefined;
hash: `0x${string}`;
input: `0x${string}`;
maxFeePerBlobGas?: undefined;
maxFeePerGas: bigint;
maxPriorityFeePerGas: bigint;
nonce: number;
r: `0x${string}`;
s: `0x${string}`;
to: null | `0x${string}`;
transactionIndex: (blockTag extends "pending" ? true : false) extends true
? null
: number;
type: "eip7702";
typeHex: null | `0x${string}`;
v: bigint;
value: bigint;
yParity: number;
},
>;
getTransactionConfirmations: (
args: GetTransactionConfirmationsParameters<undefined | Chain>,
) => Promise<bigint>;
getTransactionCount: (
args: GetTransactionCountParameters,
) => Promise<number>;
getTransactionReceipt: (
args: GetTransactionReceiptParameters,
) => Promise<TransactionReceipt>;
key: string;
multicall: <
const contracts extends readonly unknown[],
allowFailure extends boolean = true,
>(
args: MulticallParameters<contracts, allowFailure>,
) => Promise<MulticallReturnType<contracts, allowFailure>>;
name: string;
pollingInterval: number;
prepareTransactionRequest: <
const request extends
(
| Omit<
{
accessList?: undefined;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
data?: `0x${string}`;
from?: `0x${string}`;
gas?: bigint;
gasPrice?: bigint;
kzg?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
nonce?: number;
sidecars?: undefined;
to?: null
| `0x${string}`;
type?: "legacy";
value?: bigint;
},
"from",
>
| Omit<
{
accessList?: AccessList;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
data?: `0x${string}`;
from?: `0x${string}`;
gas?: bigint;
gasPrice?: bigint;
kzg?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: undefined;
maxPriorityFeePerGas?: undefined;
nonce?: number;
sidecars?: undefined;
to?: null
| `0x${string}`;
type?: "eip2930";
value?: bigint;
},
"from",
>
| Omit<
{
accessList?: AccessList;
authorizationList?: undefined;
blobs?: undefined;
blobVersionedHashes?: undefined;
data?: `0x${string}`;
from?: `0x${string}`;
gas?: bigint;
gasPrice?: undefined;
kzg?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint;
maxPriorityFeePerGas?: bigint;
nonce?: number;
sidecars?: undefined;
to?: null
| `0x${string}`;
type?: "eip1559";
value?: bigint;
},
"from",
>
| Omit<
{
accessList?: AccessList;
authorizationList?: undefined;
blobs: readonly `0x${string}`[]
| readonly ByteArray[];
blobVersionedHashes?: readonly `0x${string}`[];
data?: `0x${string}`;
from?: `0x${string}`;
gas?: bigint;
gasPrice?: undefined;
kzg?: Kzg;
maxFeePerBlobGas: bigint;
maxFeePerGas?: bigint;
maxPriorityFeePerGas?: bigint;
nonce?: number;
sidecars?: readonly BlobSidecar<`0x${(...)}`>[];
to: null | `0x${string}`;
type?: "eip4844";
value?: bigint;
},
"from",
>
| Omit<
{
accessList?: AccessList;
authorizationList?: AuthorizationList<number, boolean>;
blobs?: undefined;
blobVersionedHashes?: undefined;
data?: `0x${string}`;
from?: `0x${string}`;
gas?: bigint;
gasPrice?: undefined;
kzg?: undefined;
maxFeePerBlobGas?: undefined;
maxFeePerGas?: bigint;
maxPriorityFeePerGas?: bigint;
nonce?: number;
sidecars?: undefined;
to?: null | `0x${string}`;
type?: "eip7702";
value?: bigint;
},
"from",
>
) & { kzg?: Kzg } & {
nonceManager?: NonceManager;
parameters?: readonly PrepareTransactionRequestParameterType[];
},
chainOverride extends undefined
| Chain = undefined,
accountOverride extends undefined | `0x${string}` | Account = undefined,
>(
args: PrepareTransactionRequestParameters<
undefined
| Chain,
undefined | Account,
chainOverride,
accountOverride,
request,
>,
) => Promise<
{
[K in string
| number
| symbol]: (
UnionRequiredBy<
Extract<(...) & (...) & (...), (...) extends (...) ? (...) : (...)> & {
chainId?: (...) | (...);
},
ParameterTypeToParameters<
(...)[(...)] extends readonly (...)[]
? (...)[(...)]
: (...) | (...) | (...) | (...) | (...) | (...),
>,
> & (unknown extends request["kzg"] ? {} : Pick<request, "kzg">)
)[K]
},
>;
readContract: <
const abi extends Abi
| readonly unknown[],
functionName extends string,
const args extends unknown,
>(
args: ReadContractParameters<abi, functionName, args>,
) => Promise<ReadContractReturnType<abi, functionName, args>>;
request: EIP1193RequestFn<PublicRpcSchema>;
sendRawTransaction: (
args: SendRawTransactionParameters,
) => Promise<`0x${string}`>;
simulate: <const calls extends readonly unknown[]>(
args: SimulateBlocksParameters<calls>,
) => Promise<SimulateBlocksReturnType<calls>>;
simulateBlocks: <const calls extends readonly unknown[]>(
args: SimulateBlocksParameters<calls>,
) => Promise<SimulateBlocksReturnType<calls>>;
simulateCalls: <const calls extends readonly unknown[]>(
args: SimulateCallsParameters<calls>,
) => Promise<SimulateCallsReturnType<calls>>;
simulateContract: <
const abi extends Abi
| readonly unknown[],
functionName extends string,
const args extends unknown,
chainOverride extends undefined | Chain,
accountOverride extends undefined | `0x${string}` | Account = undefined,
>(
args: SimulateContractParameters<
abi,
functionName,
args,
undefined
| Chain,
chainOverride,
accountOverride,
>,
) => Promise<
SimulateContractReturnType<
abi,
functionName,
args,
undefined
| Chain,
undefined | Account,
chainOverride,
accountOverride,
>,
>;
transport: TransportConfig<string, EIP1193RequestFn> & Record<string, any>;
type: string;
uid: string;
uninstallFilter: (args: UninstallFilterParameters) => Promise<boolean>;
verifyMessage: (
args: {
address: `0x${string}`;
blockNumber?: bigint;
blockTag?: BlockTag;
factory?: `0x${string}`;
factoryData?: `0x${string}`;
message: SignableMessage;
signature: `0x${string}` | ByteArray | Signature;
universalSignatureVerifierAddress?: `0x${string}`;
},
) => Promise<boolean>;
verifySiweMessage: (
args: {
address?: `0x${string}`;
blockNumber?: bigint;
blockTag?: BlockTag;
domain?: string;
message: string;
nonce?: string;
scheme?: string;
signature: `0x${string}`;
time?: Date;
},
) => Promise<boolean>;
verifyTypedData: (args: VerifyTypedDataParameters) => Promise<boolean>;
waitForTransactionReceipt: (
args: WaitForTransactionReceiptParameters<undefined | Chain>,
) => Promise<TransactionReceipt>;
watchBlockNumber: (
args: WatchBlockNumberParameters,
) => WatchBlockNumberReturnType;
watchBlocks: <
includeTransactions extends boolean = false,
blockTag extends BlockTag = "latest",
>(
args: WatchBlocksParameters<
Transport,
undefined
| Chain,
includeTransactions,
blockTag,
>,
) => WatchBlocksReturnType;
watchContractEvent: <
const abi extends Abi
| readonly unknown[],
eventName extends string,
strict extends undefined | boolean = undefined,
>(
args: WatchContractEventParameters<abi, eventName, strict, Transport>,
) => WatchContractEventReturnType;
watchEvent: <
const abiEvent extends undefined
| AbiEvent = undefined,
const abiEvents extends
undefined | readonly unknown[] | readonly AbiEvent[] = abiEvent extends AbiEvent
? [abiEvent<abiEvent>]
: undefined,
strict extends undefined
| boolean = undefined,
>(
args: WatchEventParameters<abiEvent, abiEvents, strict, Transport>,
) => WatchEventReturnType;
watchPendingTransactions: (
args: WatchPendingTransactionsParameters<Transport>,
) => WatchPendingTransactionsReturnType;
},
>factoryAddress: Address
index: bigint
initData: Address
Returns Promise<`0x${string}`>
Promise resolving to the Address of the counterfactual account
Gets the counterfactual address for a MEE Nexus account
Example