Parameters
- params: {
accountAddress: `0x${string}`;
client: {
account: undefined;
batch?: {
multicall?: boolean | {
batchSize?: number;
wait?: number;
};
};
cacheTime: number;
call: ((parameters) => Promise<CallReturnType>);
ccipRead?: false | {
request?: ((parameters) => Promise<`0x${string}`>);
};
chain: undefined | Chain;
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, eventName, args, strict, fromBlock, toBlock>(args) => Promise<CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>);
createEventFilter: (<const abiEvent, const abiEvents, strict, fromBlock, toBlock, _EventName, _Args>(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, const abi, functionName, args>(args) => Promise<bigint>);
estimateFeesPerGas: (<chainOverride, type>(args?) => Promise<EstimateFeesPerGasReturnType<type>>);
estimateGas: ((args) => Promise<bigint>);
estimateMaxPriorityFeePerGas: (<chainOverride>(args?) => Promise<bigint>);
extend: (<const client>(fn) => Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
[K in string | number | symbol]: client[K]
} & PublicActions<Transport, undefined | Chain>>);
getBalance: ((args) => Promise<bigint>);
getBlobBaseFee: (() => Promise<bigint>);
getBlock: (<includeTransactions, blockTag>(args?) => 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;
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?) => Promise<bigint>);
getBlockTransactionCount: ((args?) => Promise<number>);
getBytecode: ((args) => Promise<GetCodeReturnType>);
getChainId: (() => Promise<number>);
getCode: ((args) => Promise<GetCodeReturnType>);
getContractEvents: (<const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>);
getEip712Domain: ((args) => Promise<GetEip712DomainReturnType>);
getEnsAddress: ((args) => Promise<GetEnsAddressReturnType>);
getEnsAvatar: ((args) => Promise<GetEnsAvatarReturnType>);
getEnsName: ((args) => Promise<GetEnsNameReturnType>);
getEnsResolver: ((args) => Promise<`0x${string}`>);
getEnsText: ((args) => Promise<GetEnsTextReturnType>);
getFeeHistory: ((args) => Promise<GetFeeHistoryReturnType>);
getFilterChanges: (<filterType, const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>);
getFilterLogs: (<const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>);
getGasPrice: (() => Promise<bigint>);
getLogs: (<const abiEvent, const abiEvents, strict, fromBlock, toBlock>(args?) => Promise<GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>);
getProof: ((args) => Promise<GetProofReturnType>);
getStorageAt: ((args) => Promise<GetStorageAtReturnType>);
getTransaction: (<blockTag>(args) => 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) => Promise<bigint>);
getTransactionCount: ((args) => Promise<number>);
getTransactionReceipt: ((args) => Promise<TransactionReceipt>);
key: string;
multicall: (<const contracts, allowFailure>(args) => Promise<MulticallReturnType<contracts, allowFailure>>);
name: string;
pollingInterval: number;
prepareTransactionRequest: (<const request, chainOverride, accountOverride>(args) => Promise<{
[K in string | number | symbol]: (UnionRequiredBy<Extract<(...) & (...) & (...), (...) extends (...)
? (...)
: (...)> & {
chainId?: (...) | (...);
}, ParameterTypeToParameters<(...)[(...)] extends readonly (...)[]
? (...)[(...)]
: (...) | (...) | (...) | (...) | (...) | (...)>> & (unknown extends request["kzg"]
? {}
: Pick<request, "kzg">))[K]
}>);
readContract: (<const abi, functionName, args>(args) => Promise<ReadContractReturnType<abi, functionName, args>>);
request: EIP1193RequestFn<PublicRpcSchema>;
sendRawTransaction: ((args) => Promise<`0x${string}`>);
simulateContract: (<const abi, functionName, args, chainOverride, accountOverride>(args) => Promise<SimulateContractReturnType<abi, functionName, args, undefined | Chain, undefined | Account, chainOverride, accountOverride>>);
transport: TransportConfig<string, EIP1193RequestFn> & Record<string, any>;
type: string;
uid: string;
uninstallFilter: ((args) => Promise<boolean>);
verifyMessage: ((args) => Promise<boolean>);
verifySiweMessage: ((args) => Promise<boolean>);
verifyTypedData: ((args) => Promise<boolean>);
waitForTransactionReceipt: ((args) => Promise<TransactionReceipt>);
watchBlockNumber: ((args) => WatchBlockNumberReturnType);
watchBlocks: (<includeTransactions, blockTag>(args) => WatchBlocksReturnType);
watchContractEvent: (<const abi, eventName, strict>(args) => WatchContractEventReturnType);
watchEvent: (<const abiEvent, const abiEvents, strict>(args) => WatchEventReturnType);
watchPendingTransactions: ((args) => WatchPendingTransactionsReturnType);
};
}accountAddress: `0x${string}`
client: {
account: undefined;
batch?: {
multicall?: boolean | {
batchSize?: number;
wait?: number;
};
};
cacheTime: number;
call: ((parameters) => Promise<CallReturnType>);
ccipRead?: false | {
request?: ((parameters) => Promise<`0x${string}`>);
};
chain: undefined | Chain;
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, eventName, args, strict, fromBlock, toBlock>(args) => Promise<CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>);
createEventFilter: (<const abiEvent, const abiEvents, strict, fromBlock, toBlock, _EventName, _Args>(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, const abi, functionName, args>(args) => Promise<bigint>);
estimateFeesPerGas: (<chainOverride, type>(args?) => Promise<EstimateFeesPerGasReturnType<type>>);
estimateGas: ((args) => Promise<bigint>);
estimateMaxPriorityFeePerGas: (<chainOverride>(args?) => Promise<bigint>);
extend: (<const client>(fn) => Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
[K in string | number | symbol]: client[K]
} & PublicActions<Transport, undefined | Chain>>);
getBalance: ((args) => Promise<bigint>);
getBlobBaseFee: (() => Promise<bigint>);
getBlock: (<includeTransactions, blockTag>(args?) => 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;
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?) => Promise<bigint>);
getBlockTransactionCount: ((args?) => Promise<number>);
getBytecode: ((args) => Promise<GetCodeReturnType>);
getChainId: (() => Promise<number>);
getCode: ((args) => Promise<GetCodeReturnType>);
getContractEvents: (<const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>);
getEip712Domain: ((args) => Promise<GetEip712DomainReturnType>);
getEnsAddress: ((args) => Promise<GetEnsAddressReturnType>);
getEnsAvatar: ((args) => Promise<GetEnsAvatarReturnType>);
getEnsName: ((args) => Promise<GetEnsNameReturnType>);
getEnsResolver: ((args) => Promise<`0x${string}`>);
getEnsText: ((args) => Promise<GetEnsTextReturnType>);
getFeeHistory: ((args) => Promise<GetFeeHistoryReturnType>);
getFilterChanges: (<filterType, const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>);
getFilterLogs: (<const abi, eventName, strict, fromBlock, toBlock>(args) => Promise<GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>);
getGasPrice: (() => Promise<bigint>);
getLogs: (<const abiEvent, const abiEvents, strict, fromBlock, toBlock>(args?) => Promise<GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>);
getProof: ((args) => Promise<GetProofReturnType>);
getStorageAt: ((args) => Promise<GetStorageAtReturnType>);
getTransaction: (<blockTag>(args) => 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) => Promise<bigint>);
getTransactionCount: ((args) => Promise<number>);
getTransactionReceipt: ((args) => Promise<TransactionReceipt>);
key: string;
multicall: (<const contracts, allowFailure>(args) => Promise<MulticallReturnType<contracts, allowFailure>>);
name: string;
pollingInterval: number;
prepareTransactionRequest: (<const request, chainOverride, accountOverride>(args) => Promise<{
[K in string | number | symbol]: (UnionRequiredBy<Extract<(...) & (...) & (...), (...) extends (...)
? (...)
: (...)> & {
chainId?: (...) | (...);
}, ParameterTypeToParameters<(...)[(...)] extends readonly (...)[]
? (...)[(...)]
: (...) | (...) | (...) | (...) | (...) | (...)>> & (unknown extends request["kzg"]
? {}
: Pick<request, "kzg">))[K]
}>);
readContract: (<const abi, functionName, args>(args) => Promise<ReadContractReturnType<abi, functionName, args>>);
request: EIP1193RequestFn<PublicRpcSchema>;
sendRawTransaction: ((args) => Promise<`0x${string}`>);
simulateContract: (<const abi, functionName, args, chainOverride, accountOverride>(args) => Promise<SimulateContractReturnType<abi, functionName, args, undefined | Chain, undefined | Account, chainOverride, accountOverride>>);
transport: TransportConfig<string, EIP1193RequestFn> & Record<string, any>;
type: string;
uid: string;
uninstallFilter: ((args) => Promise<boolean>);
verifyMessage: ((args) => Promise<boolean>);
verifySiweMessage: ((args) => Promise<boolean>);
verifyTypedData: ((args) => Promise<boolean>);
waitForTransactionReceipt: ((args) => Promise<TransactionReceipt>);
watchBlockNumber: ((args) => WatchBlockNumberReturnType);
watchBlocks: (<includeTransactions, blockTag>(args) => WatchBlocksReturnType);
watchContractEvent: (<const abi, eventName, strict>(args) => WatchContractEventReturnType);
watchEvent: (<const abiEvent, const abiEvents, strict>(args) => WatchEventReturnType);
watchPendingTransactions: ((args) => WatchPendingTransactionsReturnType);
}
account: undefined
Optional
batch?: {
multicall?: boolean | {
batchSize?: number;
wait?: number;
};
}
Optional
multicall?: boolean | {
batchSize?: number;
wait?: number;
}
cacheTime: number
call: ((parameters) => Promise<CallReturnType>)
- (parameters): Promise<CallReturnType>
Parameters
- parameters: CallParameters<undefined | Chain>
Returns Promise<CallReturnType>
Optional
ccipRead?: false | {
request?: ((parameters) => Promise<`0x${string}`>);
}
chain: undefined | Chain
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";
}>)
- (): 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";
}> Returns 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";
}>
- <const abi, eventName, args, strict, fromBlock, toBlock>(args): Promise<CreateContractEventFilterReturnType<abi, eventName, args, strict, fromBlock, toBlock>>
Type Parameters
- 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
- <const abiEvent, const abiEvents, strict, fromBlock, toBlock, _EventName, _Args>(args?): Promise<{
[K in string | number | symbol]: Filter<"event", abiEvents, _EventName, _Args, strict, fromBlock, toBlock>[K]
}> Type Parameters
- 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
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";
}>)
- (): 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";
}> Returns 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, const abi, functionName, args>(args) => Promise<bigint>)
- <chain, const abi, functionName, args>(args): Promise<bigint>
Type Parameters
- chain extends undefined | Chain
- const abi extends Abi | readonly unknown[]
- functionName extends string
- args extends unknown
Returns Promise<bigint>
estimateFeesPerGas: (<chainOverride, type>(args?) => Promise<EstimateFeesPerGasReturnType<type>>)
- <chainOverride, type>(args?): Promise<EstimateFeesPerGasReturnType<type>>
Type Parameters
- chainOverride extends undefined | Chain = undefined
- type extends FeeValuesType = "eip1559"
Returns Promise<EstimateFeesPerGasReturnType<type>>
estimateGas: ((args) => Promise<bigint>)
- (args): Promise<bigint>
Parameters
- args: EstimateGasParameters<undefined | Chain>
Returns Promise<bigint>
estimateMaxPriorityFeePerGas: (<chainOverride>(args?) => Promise<bigint>)
- <chainOverride>(args?): Promise<bigint>
Type Parameters
- chainOverride extends undefined | Chain = undefined
Returns Promise<bigint>
extend: (<const client>(fn) => Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
[K in string | number | symbol]: client[K]
} & PublicActions<Transport, undefined | Chain>>)
- <const client>(fn): Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
[K in string | number | symbol]: client[K]
} & PublicActions<Transport, undefined | Chain>> Type Parameters
- 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;
} & ExactPartial<ExtendableProtectedActions<Transport, undefined | Chain, undefined>>
Parameters
- fn: ((client) => client)
- (client): client
Parameters
- client: Client<Transport, undefined | Chain, undefined, PublicRpcSchema, PublicActions<Transport, undefined | Chain>>
Returns Client<Transport, undefined | Chain, undefined, PublicRpcSchema, {
[K in string | number | symbol]: client[K]
} & PublicActions<Transport, undefined | Chain>>
getBalance: ((args) => Promise<bigint>)
- (args): Promise<bigint>
Parameters
- args: GetBalanceParameters
Returns Promise<bigint>
getBlobBaseFee: (() => Promise<bigint>)
- (): Promise<bigint>
Returns Promise<bigint>
getBlock: (<includeTransactions, blockTag>(args?) => 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;
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}`;
}>)
- <includeTransactions, blockTag>(args?): 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;
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}`;
}> Type Parameters
- includeTransactions extends boolean = false
- blockTag extends BlockTag = "latest"
Returns 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;
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?) => Promise<bigint>)
- (args?): Promise<bigint>
Parameters
Optional
args: GetBlockNumberParameters
Returns Promise<bigint>
getBlockTransactionCount: ((args?) => Promise<number>)
- (args?): Promise<number>
Parameters
Optional
args: GetBlockTransactionCountParameters
Returns Promise<number>
getBytecode: ((args) => Promise<GetCodeReturnType>)
- (args): Promise<GetCodeReturnType>
Returns Promise<GetCodeReturnType>
getChainId: (() => Promise<number>)
- (): Promise<number>
Returns Promise<number>
getCode: ((args) => Promise<GetCodeReturnType>)
- (args): Promise<GetCodeReturnType>
Returns Promise<GetCodeReturnType>
- <const abi, eventName, strict, fromBlock, toBlock>(args): Promise<GetContractEventsReturnType<abi, eventName, strict, fromBlock, toBlock>>
Type Parameters
- 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
getEip712Domain: ((args) => Promise<GetEip712DomainReturnType>)
- (args): Promise<GetEip712DomainReturnType>
Parameters
- args: GetEip712DomainParameters
Returns Promise<GetEip712DomainReturnType>
getEnsAddress: ((args) => Promise<GetEnsAddressReturnType>)
- (args): Promise<GetEnsAddressReturnType>
Parameters
- args: {
blockNumber?: bigint;
blockTag?: BlockTag;
coinType?: number;
gatewayUrls?: string[];
name: string;
strict?: boolean;
universalResolverAddress?: `0x${string}`;
}Optional
blockNumber?: bigint
Optional
blockTag?: BlockTag
Optional
coinType?: number
Optional
gatewayUrls?: string[]
name: string
Optional
strict?: boolean
Optional
universalResolverAddress?: `0x${string}`
Returns Promise<GetEnsAddressReturnType>
getEnsAvatar: ((args) => Promise<GetEnsAvatarReturnType>)
- (args): Promise<GetEnsAvatarReturnType>
Parameters
- args: {
assetGatewayUrls?: AssetGatewayUrls;
blockNumber?: bigint;
blockTag?: BlockTag;
gatewayUrls?: string[];
name: string;
strict?: boolean;
universalResolverAddress?: `0x${string}`;
}Optional
assetGatewayUrls?: AssetGatewayUrls
Optional
blockNumber?: bigint
Optional
blockTag?: BlockTag
Optional
gatewayUrls?: string[]
name: string
Optional
strict?: boolean
Optional
universalResolverAddress?: `0x${string}`
Returns Promise<GetEnsAvatarReturnType>
getEnsName: ((args) => Promise<GetEnsNameReturnType>)
- (args): Promise<GetEnsNameReturnType>
Parameters
- args: {
address: `0x${string}`;
blockNumber?: bigint;
blockTag?: BlockTag;
gatewayUrls?: string[];
strict?: boolean;
universalResolverAddress?: `0x${string}`;
}address: `0x${string}`
Optional
blockNumber?: bigint
Optional
blockTag?: BlockTag
Optional
gatewayUrls?: string[]
Optional
strict?: boolean
Optional
universalResolverAddress?: `0x${string}`
Returns Promise<GetEnsNameReturnType>
getEnsResolver: ((args) => Promise<`0x${string}`>)
- (args): Promise<`0x${string}`>
Parameters
- args: {
blockNumber?: bigint;
blockTag?: BlockTag;
name: string;
universalResolverAddress?: `0x${string}`;
}Optional
blockNumber?: bigint
Optional
blockTag?: BlockTag
name: string
Optional
universalResolverAddress?: `0x${string}`
Returns Promise<`0x${string}`>
getEnsText: ((args) => Promise<GetEnsTextReturnType>)
- (args): Promise<GetEnsTextReturnType>
Parameters
- args: {
blockNumber?: bigint;
blockTag?: BlockTag;
gatewayUrls?: string[];
key: string;
name: string;
strict?: boolean;
universalResolverAddress?: `0x${string}`;
}Optional
blockNumber?: bigint
Optional
blockTag?: BlockTag
Optional
gatewayUrls?: string[]
key: string
name: string
Optional
strict?: boolean
Optional
universalResolverAddress?: `0x${string}`
Returns Promise<GetEnsTextReturnType>
getFeeHistory: ((args) => Promise<GetFeeHistoryReturnType>)
- (args): Promise<GetFeeHistoryReturnType>
Parameters
- args: GetFeeHistoryParameters
Returns Promise<GetFeeHistoryReturnType>
- <filterType, const abi, eventName, strict, fromBlock, toBlock>(args): Promise<GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>
Type Parameters
- 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
- <const abi, eventName, strict, fromBlock, toBlock>(args): Promise<GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>
Type Parameters
- 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
getGasPrice: (() => Promise<bigint>)
- (): Promise<bigint>
Returns Promise<bigint>
- <const abiEvent, const abiEvents, strict, fromBlock, toBlock>(args?): Promise<GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>
Type Parameters
- 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
getProof: ((args) => Promise<GetProofReturnType>)
- (args): Promise<GetProofReturnType>
Returns Promise<GetProofReturnType>
getStorageAt: ((args) => Promise<GetStorageAtReturnType>)
- (args): Promise<GetStorageAtReturnType>
Parameters
- args: GetStorageAtParameters
Returns Promise<GetStorageAtReturnType>
getTransaction: (<blockTag>(args) => 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;
}>)
- <blockTag>(args): 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;
}> Type Parameters
- blockTag extends BlockTag = "latest"
Parameters
- args: GetTransactionParameters<blockTag>
Returns 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) => Promise<bigint>)
- (args): Promise<bigint>
Parameters
- args: GetTransactionConfirmationsParameters<undefined | Chain>
Returns Promise<bigint>
getTransactionCount: ((args) => Promise<number>)
- (args): Promise<number>
Parameters
- args: GetTransactionCountParameters
Returns Promise<number>
getTransactionReceipt: ((args) => Promise<TransactionReceipt>)
- (args): Promise<TransactionReceipt>
Parameters
- args: GetTransactionReceiptParameters
Returns Promise<TransactionReceipt>
key: string
name: string
pollingInterval: number
prepareTransactionRequest: (<const request, chainOverride, accountOverride>(args) => Promise<{
[K in string | number | symbol]: (UnionRequiredBy<Extract<(...) & (...) & (...), (...) extends (...)
? (...)
: (...)> & {
chainId?: (...) | (...);
}, ParameterTypeToParameters<(...)[(...)] extends readonly (...)[]
? (...)[(...)]
: (...) | (...) | (...) | (...) | (...) | (...)>> & (unknown extends request["kzg"]
? {}
: Pick<request, "kzg">))[K]
}>)
- <const request, chainOverride, accountOverride>(args): Promise<{
[K in string | number | symbol]: (UnionRequiredBy<Extract<(...) & (...) & (...), (...) extends (...)
? (...)
: (...)> & {
chainId?: (...) | (...);
}, ParameterTypeToParameters<(...)[(...)] extends readonly (...)[]
? (...)[(...)]
: (...) | (...) | (...) | (...) | (...) | (...)>> & (unknown extends request["kzg"]
? {}
: Pick<request, "kzg">))[K]
}> Type Parameters
- const request extends (Omit<{
accessList: undefined;
authorizationList: undefined;
blobVersionedHashes: undefined;
blobs: 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;
blobVersionedHashes: undefined;
blobs: 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;
blobVersionedHashes: undefined;
blobs: 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;
blobVersionedHashes?: readonly `0x${string}`[];
blobs: readonly `0x${string}`[] | readonly Uint8Array[];
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>;
blobVersionedHashes: undefined;
blobs: 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
Returns Promise<{
[K in string | number | symbol]: (UnionRequiredBy<Extract<(...) & (...) & (...), (...) extends (...)
? (...)
: (...)> & {
chainId?: (...) | (...);
}, ParameterTypeToParameters<(...)[(...)] extends readonly (...)[]
? (...)[(...)]
: (...) | (...) | (...) | (...) | (...) | (...)>> & (unknown extends request["kzg"]
? {}
: Pick<request, "kzg">))[K]
}>
request: EIP1193RequestFn<PublicRpcSchema>
sendRawTransaction: ((args) => Promise<`0x${string}`>)
- (args): Promise<`0x${string}`>
Parameters
- args: SendRawTransactionParameters
Returns Promise<`0x${string}`>
- <const abi, functionName, args, chainOverride, accountOverride>(args): Promise<SimulateContractReturnType<abi, functionName, args, undefined | Chain, undefined | Account, chainOverride, accountOverride>>
Type Parameters
- const abi extends Abi | readonly unknown[]
- functionName extends string
- args extends unknown
- chainOverride extends undefined | Chain
- accountOverride extends undefined | `0x${string}` | Account = undefined
transport: TransportConfig<string, EIP1193RequestFn> & Record<string, any>
type: string
uid: string
uninstallFilter: ((args) => Promise<boolean>)
- (args): Promise<boolean>
Parameters
- args: UninstallFilterParameters
Returns Promise<boolean>
verifyMessage: ((args) => Promise<boolean>)
- (args): Promise<boolean>
Parameters
- args: {
address: `0x${string}`;
blockNumber?: bigint;
blockTag?: BlockTag;
factory?: `0x${string}`;
factoryData?: `0x${string}`;
message: SignableMessage;
signature: `0x${string}` | Uint8Array | Signature;
}address: `0x${string}`
Optional
blockNumber?: bigint
Optional
blockTag?: BlockTag
Optional
factory?: `0x${string}`
Optional
factoryData?: `0x${string}`
message: SignableMessage
signature: `0x${string}` | Uint8Array | Signature
Returns Promise<boolean>
verifySiweMessage: ((args) => Promise<boolean>)
- (args): Promise<boolean>
Parameters
- args: {
address?: `0x${string}`;
blockNumber?: bigint;
blockTag?: BlockTag;
domain?: string;
message: string;
nonce?: string;
scheme?: string;
signature: `0x${string}`;
time?: Date;
}Optional
address?: `0x${string}`
Optional
blockNumber?: bigint
Optional
blockTag?: BlockTag
Optional
domain?: string
message: string
Optional
nonce?: string
Optional
scheme?: string
signature: `0x${string}`
Optional
time?: Date
Returns Promise<boolean>
verifyTypedData: ((args) => Promise<boolean>)
- (args): Promise<boolean>
Parameters
- args: VerifyTypedDataParameters
Returns Promise<boolean>
waitForTransactionReceipt: ((args) => Promise<TransactionReceipt>)
- (args): Promise<TransactionReceipt>
Parameters
- args: WaitForTransactionReceiptParameters<undefined | Chain>
Returns Promise<TransactionReceipt>
watchBlockNumber: ((args) => WatchBlockNumberReturnType)
- (args): WatchBlockNumberReturnType
Parameters
- args: WatchBlockNumberParameters
Returns WatchBlockNumberReturnType
- <includeTransactions, blockTag>(args): WatchBlocksReturnType
Type Parameters
- includeTransactions extends boolean = false
- blockTag extends BlockTag = "latest"
Returns WatchBlocksReturnType
watchContractEvent: (<const abi, eventName, strict>(args) => WatchContractEventReturnType)
- <const abi, eventName, strict>(args): WatchContractEventReturnType
Type Parameters
- const abi extends Abi | readonly unknown[]
- eventName extends string
- strict extends undefined | boolean = undefined
Returns WatchContractEventReturnType
watchEvent: (<const abiEvent, const abiEvents, strict>(args) => WatchEventReturnType)
- <const abiEvent, const abiEvents, strict>(args): WatchEventReturnType
Type Parameters
- 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
Returns WatchEventReturnType
watchPendingTransactions: ((args) => WatchPendingTransactionsReturnType)
- (args): WatchPendingTransactionsReturnType
Parameters
- args: WatchPendingTransactionsParameters<Transport>
Returns WatchPendingTransactionsReturnType
Returns Promise<`0x${string}`[]>
A promise that resolves to an array of addresses representing the trusted attesters
Retrieves the list of trusted attesters for a given account from the registry.
This function queries the registry contract to find all attesters that are trusted by the specified account.