@settlemint/sdk-viem 2.5.14-pr23133c76 → 2.5.14-prc4aecb3f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /* SettleMint Viem SDK - Web3 Optimized */
2
2
  import * as viem0 from "viem";
3
- import { Chain, Client, Hex, HttpTransportConfig } from "viem";
3
+ import { Chain, Client, Hex, HttpTransportConfig, Transport } from "viem";
4
4
  import * as chains from "viem/chains";
5
5
  import { z } from "zod";
6
6
 
@@ -439,10 +439,7 @@ type ClientOptions = Omit<z.infer<typeof ClientOptionsSchema>, "httpTransportCon
439
439
  * ```
440
440
  */
441
441
  declare const getPublicClient: (options: ClientOptions) => {
442
- account: viem0.Account | {
443
- address: `0x${string}`;
444
- type: "json-rpc";
445
- } | undefined;
442
+ account: undefined;
446
443
  batch?: {
447
444
  multicall?: boolean | chains.Prettify<viem0.MulticallBatchOptions> | undefined;
448
445
  } | undefined;
@@ -450,229 +447,17 @@ declare const getPublicClient: (options: ClientOptions) => {
450
447
  ccipRead?: false | {
451
448
  request?: (parameters: viem0.CcipRequestParameters) => Promise<`0x${string}`>;
452
449
  } | undefined;
453
- chain: Chain | undefined;
450
+ chain: Chain;
454
451
  experimental_blockTag?: viem0.BlockTag | undefined;
455
452
  key: string;
456
453
  name: string;
457
454
  pollingInterval: number;
458
- request: viem0.EIP1193RequestFn<viem0.PublicRpcSchema | [{
459
- Method: "web3_clientVersion";
460
- Parameters?: undefined;
461
- ReturnType: string;
462
- }, {
463
- Method: "web3_sha3";
464
- Parameters: [data: viem0.Hash];
465
- ReturnType: string;
466
- }, {
467
- Method: "net_listening";
468
- Parameters?: undefined;
469
- ReturnType: boolean;
470
- }, {
471
- Method: "net_peerCount";
472
- Parameters?: undefined;
473
- ReturnType: viem0.Quantity;
474
- }, {
475
- Method: "net_version";
476
- Parameters?: undefined;
477
- ReturnType: viem0.Quantity;
478
- }, {
479
- Method: "eth_blobBaseFee";
480
- Parameters?: undefined;
481
- ReturnType: viem0.Quantity;
482
- }, {
483
- Method: "eth_blockNumber";
484
- Parameters?: undefined;
485
- ReturnType: viem0.Quantity;
486
- }, {
487
- Method: "eth_call";
488
- Parameters: readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier, stateOverrideSet: viem0.RpcStateOverride] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier, stateOverrideSet: viem0.RpcStateOverride, blockOverrides: viem0.RpcBlockOverrides];
489
- ReturnType: viem0.Hex;
490
- }, {
491
- Method: "eth_createAccessList";
492
- Parameters: [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>] | [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
493
- ReturnType: {
494
- accessList: viem0.AccessList;
495
- gasUsed: viem0.Quantity;
496
- };
497
- }, {
498
- Method: "eth_chainId";
499
- Parameters?: undefined;
500
- ReturnType: viem0.Quantity;
501
- }, {
502
- Method: "eth_coinbase";
503
- Parameters?: undefined;
504
- ReturnType: viem0.Address;
505
- }, {
506
- Method: "eth_estimateGas";
507
- Parameters: [transaction: viem0.RpcTransactionRequest] | [transaction: viem0.RpcTransactionRequest, block: viem0.RpcBlockNumber | viem0.BlockTag] | [transaction: viem0.RpcTransactionRequest, block: viem0.RpcBlockNumber | viem0.BlockTag, stateOverride: viem0.RpcStateOverride];
508
- ReturnType: viem0.Quantity;
509
- }, {
510
- Method: "eth_feeHistory";
511
- Parameters: [blockCount: viem0.Quantity, newestBlock: viem0.RpcBlockNumber | viem0.BlockTag, rewardPercentiles: number[] | undefined];
512
- ReturnType: viem0.RpcFeeHistory;
513
- }, {
514
- Method: "eth_gasPrice";
515
- Parameters?: undefined;
516
- ReturnType: viem0.Quantity;
517
- }, {
518
- Method: "eth_getBalance";
519
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
520
- ReturnType: viem0.Quantity;
521
- }, {
522
- Method: "eth_getBlockByHash";
523
- Parameters: [hash: viem0.Hash, includeTransactionObjects: boolean];
524
- ReturnType: viem0.RpcBlock | null;
525
- }, {
526
- Method: "eth_getBlockByNumber";
527
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, includeTransactionObjects: boolean];
528
- ReturnType: viem0.RpcBlock | null;
529
- }, {
530
- Method: "eth_getBlockTransactionCountByHash";
531
- Parameters: [hash: viem0.Hash];
532
- ReturnType: viem0.Quantity;
533
- }, {
534
- Method: "eth_getBlockTransactionCountByNumber";
535
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag];
536
- ReturnType: viem0.Quantity;
537
- }, {
538
- Method: "eth_getCode";
539
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
540
- ReturnType: viem0.Hex;
541
- }, {
542
- Method: "eth_getFilterChanges";
543
- Parameters: [filterId: viem0.Quantity];
544
- ReturnType: viem0.RpcLog[] | viem0.Hex[];
545
- }, {
546
- Method: "eth_getFilterLogs";
547
- Parameters: [filterId: viem0.Quantity];
548
- ReturnType: viem0.RpcLog[];
549
- }, {
550
- Method: "eth_getLogs";
551
- Parameters: [{
552
- address?: viem0.Address | viem0.Address[] | undefined;
553
- topics?: viem0.LogTopic[] | undefined;
554
- } & ({
555
- fromBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
556
- toBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
557
- blockHash?: undefined;
558
- } | {
559
- fromBlock?: undefined;
560
- toBlock?: undefined;
561
- blockHash?: viem0.Hash | undefined;
562
- })];
563
- ReturnType: viem0.RpcLog[];
564
- }, {
565
- Method: "eth_getProof";
566
- Parameters: [address: viem0.Address, storageKeys: viem0.Hash[], block: viem0.RpcBlockNumber | viem0.BlockTag];
567
- ReturnType: viem0.RpcProof;
568
- }, {
569
- Method: "eth_getStorageAt";
570
- Parameters: [address: viem0.Address, index: viem0.Quantity, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
571
- ReturnType: viem0.Hex;
572
- }, {
573
- Method: "eth_getTransactionByBlockHashAndIndex";
574
- Parameters: [hash: viem0.Hash, index: viem0.Quantity];
575
- ReturnType: viem0.RpcTransaction | null;
576
- }, {
577
- Method: "eth_getTransactionByBlockNumberAndIndex";
578
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, index: viem0.Quantity];
579
- ReturnType: viem0.RpcTransaction | null;
580
- }, {
581
- Method: "eth_getTransactionByHash";
582
- Parameters: [hash: viem0.Hash];
583
- ReturnType: viem0.RpcTransaction | null;
584
- }, {
585
- Method: "eth_getTransactionCount";
586
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
587
- ReturnType: viem0.Quantity;
588
- }, {
589
- Method: "eth_getTransactionReceipt";
590
- Parameters: [hash: viem0.Hash];
591
- ReturnType: viem0.RpcTransactionReceipt | null;
592
- }, {
593
- Method: "eth_getUncleByBlockHashAndIndex";
594
- Parameters: [hash: viem0.Hash, index: viem0.Quantity];
595
- ReturnType: viem0.RpcUncle | null;
596
- }, {
597
- Method: "eth_getUncleByBlockNumberAndIndex";
598
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, index: viem0.Quantity];
599
- ReturnType: viem0.RpcUncle | null;
600
- }, {
601
- Method: "eth_getUncleCountByBlockHash";
602
- Parameters: [hash: viem0.Hash];
603
- ReturnType: viem0.Quantity;
604
- }, {
605
- Method: "eth_getUncleCountByBlockNumber";
606
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag];
607
- ReturnType: viem0.Quantity;
608
- }, {
609
- Method: "eth_maxPriorityFeePerGas";
610
- Parameters?: undefined;
611
- ReturnType: viem0.Quantity;
612
- }, {
613
- Method: "eth_newBlockFilter";
614
- Parameters?: undefined;
615
- ReturnType: viem0.Quantity;
616
- }, {
617
- Method: "eth_newFilter";
618
- Parameters: [filter: {
619
- fromBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
620
- toBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
621
- address?: viem0.Address | viem0.Address[] | undefined;
622
- topics?: viem0.LogTopic[] | undefined;
623
- }];
624
- ReturnType: viem0.Quantity;
625
- }, {
626
- Method: "eth_newPendingTransactionFilter";
627
- Parameters?: undefined;
628
- ReturnType: viem0.Quantity;
629
- }, {
630
- Method: "eth_protocolVersion";
631
- Parameters?: undefined;
632
- ReturnType: string;
633
- }, {
634
- Method: "eth_sendRawTransaction";
635
- Parameters: [signedTransaction: viem0.Hex];
636
- ReturnType: viem0.Hash;
637
- }, {
638
- Method: "eth_simulateV1";
639
- Parameters: [{
640
- blockStateCalls: readonly {
641
- blockOverrides?: viem0.RpcBlockOverrides | undefined;
642
- calls?: readonly viem0.ExactPartial<viem0.RpcTransactionRequest>[] | undefined;
643
- stateOverrides?: viem0.RpcStateOverride | undefined;
644
- }[];
645
- returnFullTransactions?: boolean | undefined;
646
- traceTransfers?: boolean | undefined;
647
- validation?: boolean | undefined;
648
- }, viem0.RpcBlockNumber | viem0.BlockTag];
649
- ReturnType: readonly (viem0.RpcBlock & {
650
- calls: readonly {
651
- error?: {
652
- data?: viem0.Hex | undefined;
653
- code: number;
654
- message: string;
655
- } | undefined;
656
- logs?: readonly viem0.RpcLog[] | undefined;
657
- gasUsed: viem0.Hex;
658
- returnData: viem0.Hex;
659
- status: viem0.Hex;
660
- }[];
661
- })[];
662
- }, {
663
- Method: "eth_uninstallFilter";
664
- Parameters: [filterId: viem0.Quantity];
665
- ReturnType: boolean;
666
- }, ...{
667
- Method: string;
668
- Parameters?: unknown | undefined;
669
- ReturnType: unknown;
670
- }[]]>;
455
+ request: viem0.EIP1193RequestFn<viem0.PublicRpcSchema>;
671
456
  transport: viem0.TransportConfig<string, viem0.EIP1193RequestFn> & Record<string, any>;
672
457
  type: string;
673
458
  uid: string;
674
- call: (parameters: viem0.CallParameters<Chain | undefined>) => Promise<viem0.CallReturnType>;
675
- createAccessList: (parameters: viem0.CreateAccessListParameters<Chain | undefined>) => Promise<{
459
+ call: (parameters: viem0.CallParameters<Chain>) => Promise<viem0.CallReturnType>;
460
+ createAccessList: (parameters: viem0.CreateAccessListParameters<Chain>) => Promise<{
676
461
  accessList: viem0.AccessList;
677
462
  gasUsed: bigint;
678
463
  }>;
@@ -681,14 +466,13 @@ declare const getPublicClient: (options: ClientOptions) => {
681
466
  createEventFilter: <const abiEvent extends viem0.AbiEvent | undefined = undefined, const abiEvents extends readonly viem0.AbiEvent[] | readonly unknown[] | undefined = (abiEvent extends viem0.AbiEvent ? [abiEvent] : undefined), strict extends boolean | undefined = undefined, fromBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined, toBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined, _EventName extends string | undefined = viem0.MaybeAbiEventName<abiEvent>, _Args extends viem0.MaybeExtractEventArgsFromAbi<abiEvents, _EventName> | undefined = undefined>(args?: viem0.CreateEventFilterParameters<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args> | undefined) => Promise<viem0.CreateEventFilterReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock, _EventName, _Args>>;
682
467
  createPendingTransactionFilter: () => Promise<viem0.CreatePendingTransactionFilterReturnType>;
683
468
  estimateContractGas: <chain extends Chain | undefined, const abi extends viem0.Abi | readonly unknown[], functionName extends viem0.ContractFunctionName<abi, "nonpayable" | "payable">, args extends viem0.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>>(args: viem0.EstimateContractGasParameters<abi, functionName, args, chain>) => Promise<viem0.EstimateContractGasReturnType>;
684
- estimateGas: (args: viem0.EstimateGasParameters<Chain | undefined>) => Promise<viem0.EstimateGasReturnType>;
469
+ estimateGas: (args: viem0.EstimateGasParameters<Chain>) => Promise<viem0.EstimateGasReturnType>;
685
470
  getBalance: (args: viem0.GetBalanceParameters) => Promise<viem0.GetBalanceReturnType>;
686
471
  getBlobBaseFee: () => Promise<viem0.GetBlobBaseFeeReturnType>;
687
472
  getBlock: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args?: viem0.GetBlockParameters<includeTransactions, blockTag> | undefined) => Promise<{
688
473
  number: blockTag extends "pending" ? null : bigint;
689
474
  nonce: blockTag extends "pending" ? null : `0x${string}`;
690
475
  hash: blockTag extends "pending" ? null : `0x${string}`;
691
- gasUsed: bigint;
692
476
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
693
477
  baseFeePerGas: bigint | null;
694
478
  blobGasUsed: bigint;
@@ -696,6 +480,7 @@ declare const getPublicClient: (options: ClientOptions) => {
696
480
  excessBlobGas: bigint;
697
481
  extraData: viem0.Hex;
698
482
  gasLimit: bigint;
483
+ gasUsed: bigint;
699
484
  miner: viem0.Address;
700
485
  mixHash: viem0.Hash;
701
486
  parentBeaconBlockRoot?: `0x${string}` | undefined;
@@ -851,14 +636,14 @@ declare const getPublicClient: (options: ClientOptions) => {
851
636
  getEnsResolver: (args: viem0.GetEnsResolverParameters) => Promise<viem0.GetEnsResolverReturnType>;
852
637
  getEnsText: (args: viem0.GetEnsTextParameters) => Promise<viem0.GetEnsTextReturnType>;
853
638
  getFeeHistory: (args: viem0.GetFeeHistoryParameters) => Promise<viem0.GetFeeHistoryReturnType>;
854
- estimateFeesPerGas: <chainOverride extends Chain | undefined = undefined, type extends viem0.FeeValuesType = "eip1559">(args?: viem0.EstimateFeesPerGasParameters<Chain | undefined, chainOverride, type> | undefined) => Promise<viem0.EstimateFeesPerGasReturnType<type>>;
639
+ estimateFeesPerGas: <chainOverride extends Chain | undefined = undefined, type extends viem0.FeeValuesType = "eip1559">(args?: viem0.EstimateFeesPerGasParameters<Chain, chainOverride, type> | undefined) => Promise<viem0.EstimateFeesPerGasReturnType<type>>;
855
640
  getFilterChanges: <filterType extends viem0.FilterType, const abi extends viem0.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined, toBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined>(args: viem0.GetFilterChangesParameters<filterType, abi, eventName, strict, fromBlock, toBlock>) => Promise<viem0.GetFilterChangesReturnType<filterType, abi, eventName, strict, fromBlock, toBlock>>;
856
641
  getFilterLogs: <const abi extends viem0.Abi | readonly unknown[] | undefined, eventName extends string | undefined, strict extends boolean | undefined = undefined, fromBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined, toBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined>(args: viem0.GetFilterLogsParameters<abi, eventName, strict, fromBlock, toBlock>) => Promise<viem0.GetFilterLogsReturnType<abi, eventName, strict, fromBlock, toBlock>>;
857
642
  getGasPrice: () => Promise<viem0.GetGasPriceReturnType>;
858
643
  getLogs: <const abiEvent extends viem0.AbiEvent | undefined = undefined, const abiEvents extends readonly viem0.AbiEvent[] | readonly unknown[] | undefined = (abiEvent extends viem0.AbiEvent ? [abiEvent] : undefined), strict extends boolean | undefined = undefined, fromBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined, toBlock extends viem0.BlockNumber | viem0.BlockTag | undefined = undefined>(args?: viem0.GetLogsParameters<abiEvent, abiEvents, strict, fromBlock, toBlock> | undefined) => Promise<viem0.GetLogsReturnType<abiEvent, abiEvents, strict, fromBlock, toBlock>>;
859
644
  getProof: (args: viem0.GetProofParameters) => Promise<viem0.GetProofReturnType>;
860
645
  estimateMaxPriorityFeePerGas: <chainOverride extends Chain | undefined = undefined>(args?: {
861
- chain: chainOverride | null;
646
+ chain?: chainOverride | null | undefined;
862
647
  } | undefined) => Promise<viem0.EstimateMaxPriorityFeePerGasReturnType>;
863
648
  getStorageAt: (args: viem0.GetStorageAtParameters) => Promise<viem0.GetStorageAtReturnType>;
864
649
  getTransaction: <blockTag extends viem0.BlockTag = "latest">(args: viem0.GetTransactionParameters<blockTag>) => Promise<{
@@ -987,11 +772,11 @@ declare const getPublicClient: (options: ClientOptions) => {
987
772
  blockHash: (blockTag extends "pending" ? true : false) extends infer T_13 ? T_13 extends (blockTag extends "pending" ? true : false) ? T_13 extends true ? null : `0x${string}` : never : never;
988
773
  transactionIndex: (blockTag extends "pending" ? true : false) extends infer T_14 ? T_14 extends (blockTag extends "pending" ? true : false) ? T_14 extends true ? null : number : never : never;
989
774
  }>;
990
- getTransactionConfirmations: (args: viem0.GetTransactionConfirmationsParameters<Chain | undefined>) => Promise<viem0.GetTransactionConfirmationsReturnType>;
775
+ getTransactionConfirmations: (args: viem0.GetTransactionConfirmationsParameters<Chain>) => Promise<viem0.GetTransactionConfirmationsReturnType>;
991
776
  getTransactionCount: (args: viem0.GetTransactionCountParameters) => Promise<viem0.GetTransactionCountReturnType>;
992
777
  getTransactionReceipt: (args: viem0.GetTransactionReceiptParameters) => Promise<viem0.TransactionReceipt>;
993
778
  multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: viem0.MulticallParameters<contracts, allowFailure>) => Promise<viem0.MulticallReturnType<contracts, allowFailure>>;
994
- prepareTransactionRequest: <const request extends viem0.PrepareTransactionRequestRequest<Chain | undefined, chainOverride>, chainOverride extends Chain | undefined = undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.PrepareTransactionRequestParameters<Chain | undefined, viem0.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem0.UnionRequiredBy<Extract<viem0.UnionOmit<viem0.ExtractChainFormatterParameters<viem0.DeriveChain<Chain | undefined, chainOverride>, "transactionRequest", viem0.TransactionRequest>, "from"> & (viem0.DeriveChain<Chain | undefined, chainOverride> extends infer T_1 ? T_1 extends viem0.DeriveChain<Chain | undefined, chainOverride> ? T_1 extends Chain ? {
779
+ prepareTransactionRequest: <const request extends viem0.PrepareTransactionRequestRequest<Chain, chainOverride>, chainOverride extends Chain | undefined = undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.PrepareTransactionRequestParameters<Chain, viem0.Account | undefined, chainOverride, accountOverride, request>) => Promise<viem0.UnionRequiredBy<Extract<viem0.UnionOmit<viem0.ExtractChainFormatterParameters<viem0.DeriveChain<Chain, chainOverride>, "transactionRequest", viem0.TransactionRequest>, "from"> & (viem0.DeriveChain<Chain, chainOverride> extends infer T_1 ? T_1 extends viem0.DeriveChain<Chain, chainOverride> ? T_1 extends Chain ? {
995
780
  chain: T_1;
996
781
  } : {
997
782
  chain?: undefined;
@@ -4249,7 +4034,7 @@ declare const getPublicClient: (options: ClientOptions) => {
4249
4034
  simulate: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
4250
4035
  simulateBlocks: <const calls extends readonly unknown[]>(args: viem0.SimulateBlocksParameters<calls>) => Promise<viem0.SimulateBlocksReturnType<calls>>;
4251
4036
  simulateCalls: <const calls extends readonly unknown[]>(args: viem0.SimulateCallsParameters<calls>) => Promise<viem0.SimulateCallsReturnType<calls>>;
4252
- simulateContract: <const abi extends viem0.Abi | readonly unknown[], functionName extends viem0.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem0.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.SimulateContractParameters<abi, functionName, args_1, Chain | undefined, chainOverride, accountOverride>) => Promise<viem0.SimulateContractReturnType<abi, functionName, args_1, Chain | undefined, viem0.Account | undefined, chainOverride, accountOverride>>;
4037
+ simulateContract: <const abi extends viem0.Abi | readonly unknown[], functionName extends viem0.ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends viem0.ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends Chain | undefined, accountOverride extends viem0.Account | viem0.Address | undefined = undefined>(args: viem0.SimulateContractParameters<abi, functionName, args_1, Chain, chainOverride, accountOverride>) => Promise<viem0.SimulateContractReturnType<abi, functionName, args_1, Chain, viem0.Account | undefined, chainOverride, accountOverride>>;
4253
4038
  verifyMessage: (args: viem0.VerifyMessageActionParameters) => Promise<viem0.VerifyMessageActionReturnType>;
4254
4039
  verifySiweMessage: (args: {
4255
4040
  blockNumber?: bigint | undefined | undefined;
@@ -4264,12 +4049,12 @@ declare const getPublicClient: (options: ClientOptions) => {
4264
4049
  }) => Promise<boolean>;
4265
4050
  verifyTypedData: (args: viem0.VerifyTypedDataActionParameters) => Promise<viem0.VerifyTypedDataActionReturnType>;
4266
4051
  uninstallFilter: (args: viem0.UninstallFilterParameters) => Promise<viem0.UninstallFilterReturnType>;
4267
- waitForTransactionReceipt: (args: viem0.WaitForTransactionReceiptParameters<Chain | undefined>) => Promise<viem0.TransactionReceipt>;
4052
+ waitForTransactionReceipt: (args: viem0.WaitForTransactionReceiptParameters<Chain>) => Promise<viem0.TransactionReceipt>;
4268
4053
  watchBlockNumber: (args: viem0.WatchBlockNumberParameters) => viem0.WatchBlockNumberReturnType;
4269
- watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args: viem0.WatchBlocksParameters<viem0.Transport, Chain | undefined, includeTransactions, blockTag>) => viem0.WatchBlocksReturnType;
4270
- watchContractEvent: <const abi extends viem0.Abi | readonly unknown[], eventName extends viem0.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem0.WatchContractEventParameters<abi, eventName, strict, viem0.Transport>) => viem0.WatchContractEventReturnType;
4271
- watchEvent: <const abiEvent extends viem0.AbiEvent | undefined = undefined, const abiEvents extends readonly viem0.AbiEvent[] | readonly unknown[] | undefined = (abiEvent extends viem0.AbiEvent ? [abiEvent] : undefined), strict extends boolean | undefined = undefined>(args: viem0.WatchEventParameters<abiEvent, abiEvents, strict, viem0.Transport>) => viem0.WatchEventReturnType;
4272
- watchPendingTransactions: (args: viem0.WatchPendingTransactionsParameters<viem0.Transport>) => viem0.WatchPendingTransactionsReturnType;
4054
+ watchBlocks: <includeTransactions extends boolean = false, blockTag extends viem0.BlockTag = "latest">(args: viem0.WatchBlocksParameters<Transport, Chain, includeTransactions, blockTag>) => viem0.WatchBlocksReturnType;
4055
+ watchContractEvent: <const abi extends viem0.Abi | readonly unknown[], eventName extends viem0.ContractEventName<abi>, strict extends boolean | undefined = undefined>(args: viem0.WatchContractEventParameters<abi, eventName, strict, Transport>) => viem0.WatchContractEventReturnType;
4056
+ watchEvent: <const abiEvent extends viem0.AbiEvent | undefined = undefined, const abiEvents extends readonly viem0.AbiEvent[] | readonly unknown[] | undefined = (abiEvent extends viem0.AbiEvent ? [abiEvent] : undefined), strict extends boolean | undefined = undefined>(args: viem0.WatchEventParameters<abiEvent, abiEvents, strict, Transport>) => viem0.WatchEventReturnType;
4057
+ watchPendingTransactions: (args: viem0.WatchPendingTransactionsParameters<Transport>) => viem0.WatchPendingTransactionsReturnType;
4273
4058
  extend: <const client extends {
4274
4059
  [x: string]: unknown;
4275
4060
  account?: undefined;
@@ -4285,443 +4070,7 @@ declare const getPublicClient: (options: ClientOptions) => {
4285
4070
  transport?: undefined;
4286
4071
  type?: undefined;
4287
4072
  uid?: undefined;
4288
- } & viem0.ExactPartial<Pick<viem0.PublicActions<viem0.Transport, Chain | undefined, viem0.Account | {
4289
- address: `0x${string}`;
4290
- type: "json-rpc";
4291
- } | undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem0.WalletActions<Chain | undefined, viem0.Account | {
4292
- address: `0x${string}`;
4293
- type: "json-rpc";
4294
- } | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem0.Client<viem0.Transport, Chain | undefined, viem0.Account | {
4295
- address: `0x${string}`;
4296
- type: "json-rpc";
4297
- } | undefined, viem0.PublicRpcSchema | [{
4298
- Method: "web3_clientVersion";
4299
- Parameters?: undefined;
4300
- ReturnType: string;
4301
- }, {
4302
- Method: "web3_sha3";
4303
- Parameters: [data: viem0.Hash];
4304
- ReturnType: string;
4305
- }, {
4306
- Method: "net_listening";
4307
- Parameters?: undefined;
4308
- ReturnType: boolean;
4309
- }, {
4310
- Method: "net_peerCount";
4311
- Parameters?: undefined;
4312
- ReturnType: viem0.Quantity;
4313
- }, {
4314
- Method: "net_version";
4315
- Parameters?: undefined;
4316
- ReturnType: viem0.Quantity;
4317
- }, {
4318
- Method: "eth_blobBaseFee";
4319
- Parameters?: undefined;
4320
- ReturnType: viem0.Quantity;
4321
- }, {
4322
- Method: "eth_blockNumber";
4323
- Parameters?: undefined;
4324
- ReturnType: viem0.Quantity;
4325
- }, {
4326
- Method: "eth_call";
4327
- Parameters: readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier, stateOverrideSet: viem0.RpcStateOverride] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier, stateOverrideSet: viem0.RpcStateOverride, blockOverrides: viem0.RpcBlockOverrides];
4328
- ReturnType: viem0.Hex;
4329
- }, {
4330
- Method: "eth_createAccessList";
4331
- Parameters: [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>] | [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4332
- ReturnType: {
4333
- accessList: viem0.AccessList;
4334
- gasUsed: viem0.Quantity;
4335
- };
4336
- }, {
4337
- Method: "eth_chainId";
4338
- Parameters?: undefined;
4339
- ReturnType: viem0.Quantity;
4340
- }, {
4341
- Method: "eth_coinbase";
4342
- Parameters?: undefined;
4343
- ReturnType: viem0.Address;
4344
- }, {
4345
- Method: "eth_estimateGas";
4346
- Parameters: [transaction: viem0.RpcTransactionRequest] | [transaction: viem0.RpcTransactionRequest, block: viem0.RpcBlockNumber | viem0.BlockTag] | [transaction: viem0.RpcTransactionRequest, block: viem0.RpcBlockNumber | viem0.BlockTag, stateOverride: viem0.RpcStateOverride];
4347
- ReturnType: viem0.Quantity;
4348
- }, {
4349
- Method: "eth_feeHistory";
4350
- Parameters: [blockCount: viem0.Quantity, newestBlock: viem0.RpcBlockNumber | viem0.BlockTag, rewardPercentiles: number[] | undefined];
4351
- ReturnType: viem0.RpcFeeHistory;
4352
- }, {
4353
- Method: "eth_gasPrice";
4354
- Parameters?: undefined;
4355
- ReturnType: viem0.Quantity;
4356
- }, {
4357
- Method: "eth_getBalance";
4358
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4359
- ReturnType: viem0.Quantity;
4360
- }, {
4361
- Method: "eth_getBlockByHash";
4362
- Parameters: [hash: viem0.Hash, includeTransactionObjects: boolean];
4363
- ReturnType: viem0.RpcBlock | null;
4364
- }, {
4365
- Method: "eth_getBlockByNumber";
4366
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, includeTransactionObjects: boolean];
4367
- ReturnType: viem0.RpcBlock | null;
4368
- }, {
4369
- Method: "eth_getBlockTransactionCountByHash";
4370
- Parameters: [hash: viem0.Hash];
4371
- ReturnType: viem0.Quantity;
4372
- }, {
4373
- Method: "eth_getBlockTransactionCountByNumber";
4374
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag];
4375
- ReturnType: viem0.Quantity;
4376
- }, {
4377
- Method: "eth_getCode";
4378
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4379
- ReturnType: viem0.Hex;
4380
- }, {
4381
- Method: "eth_getFilterChanges";
4382
- Parameters: [filterId: viem0.Quantity];
4383
- ReturnType: viem0.RpcLog[] | viem0.Hex[];
4384
- }, {
4385
- Method: "eth_getFilterLogs";
4386
- Parameters: [filterId: viem0.Quantity];
4387
- ReturnType: viem0.RpcLog[];
4388
- }, {
4389
- Method: "eth_getLogs";
4390
- Parameters: [{
4391
- address?: viem0.Address | viem0.Address[] | undefined;
4392
- topics?: viem0.LogTopic[] | undefined;
4393
- } & ({
4394
- fromBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4395
- toBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4396
- blockHash?: undefined;
4397
- } | {
4398
- fromBlock?: undefined;
4399
- toBlock?: undefined;
4400
- blockHash?: viem0.Hash | undefined;
4401
- })];
4402
- ReturnType: viem0.RpcLog[];
4403
- }, {
4404
- Method: "eth_getProof";
4405
- Parameters: [address: viem0.Address, storageKeys: viem0.Hash[], block: viem0.RpcBlockNumber | viem0.BlockTag];
4406
- ReturnType: viem0.RpcProof;
4407
- }, {
4408
- Method: "eth_getStorageAt";
4409
- Parameters: [address: viem0.Address, index: viem0.Quantity, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4410
- ReturnType: viem0.Hex;
4411
- }, {
4412
- Method: "eth_getTransactionByBlockHashAndIndex";
4413
- Parameters: [hash: viem0.Hash, index: viem0.Quantity];
4414
- ReturnType: viem0.RpcTransaction | null;
4415
- }, {
4416
- Method: "eth_getTransactionByBlockNumberAndIndex";
4417
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, index: viem0.Quantity];
4418
- ReturnType: viem0.RpcTransaction | null;
4419
- }, {
4420
- Method: "eth_getTransactionByHash";
4421
- Parameters: [hash: viem0.Hash];
4422
- ReturnType: viem0.RpcTransaction | null;
4423
- }, {
4424
- Method: "eth_getTransactionCount";
4425
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4426
- ReturnType: viem0.Quantity;
4427
- }, {
4428
- Method: "eth_getTransactionReceipt";
4429
- Parameters: [hash: viem0.Hash];
4430
- ReturnType: viem0.RpcTransactionReceipt | null;
4431
- }, {
4432
- Method: "eth_getUncleByBlockHashAndIndex";
4433
- Parameters: [hash: viem0.Hash, index: viem0.Quantity];
4434
- ReturnType: viem0.RpcUncle | null;
4435
- }, {
4436
- Method: "eth_getUncleByBlockNumberAndIndex";
4437
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, index: viem0.Quantity];
4438
- ReturnType: viem0.RpcUncle | null;
4439
- }, {
4440
- Method: "eth_getUncleCountByBlockHash";
4441
- Parameters: [hash: viem0.Hash];
4442
- ReturnType: viem0.Quantity;
4443
- }, {
4444
- Method: "eth_getUncleCountByBlockNumber";
4445
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag];
4446
- ReturnType: viem0.Quantity;
4447
- }, {
4448
- Method: "eth_maxPriorityFeePerGas";
4449
- Parameters?: undefined;
4450
- ReturnType: viem0.Quantity;
4451
- }, {
4452
- Method: "eth_newBlockFilter";
4453
- Parameters?: undefined;
4454
- ReturnType: viem0.Quantity;
4455
- }, {
4456
- Method: "eth_newFilter";
4457
- Parameters: [filter: {
4458
- fromBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4459
- toBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4460
- address?: viem0.Address | viem0.Address[] | undefined;
4461
- topics?: viem0.LogTopic[] | undefined;
4462
- }];
4463
- ReturnType: viem0.Quantity;
4464
- }, {
4465
- Method: "eth_newPendingTransactionFilter";
4466
- Parameters?: undefined;
4467
- ReturnType: viem0.Quantity;
4468
- }, {
4469
- Method: "eth_protocolVersion";
4470
- Parameters?: undefined;
4471
- ReturnType: string;
4472
- }, {
4473
- Method: "eth_sendRawTransaction";
4474
- Parameters: [signedTransaction: viem0.Hex];
4475
- ReturnType: viem0.Hash;
4476
- }, {
4477
- Method: "eth_simulateV1";
4478
- Parameters: [{
4479
- blockStateCalls: readonly {
4480
- blockOverrides?: viem0.RpcBlockOverrides | undefined;
4481
- calls?: readonly viem0.ExactPartial<viem0.RpcTransactionRequest>[] | undefined;
4482
- stateOverrides?: viem0.RpcStateOverride | undefined;
4483
- }[];
4484
- returnFullTransactions?: boolean | undefined;
4485
- traceTransfers?: boolean | undefined;
4486
- validation?: boolean | undefined;
4487
- }, viem0.RpcBlockNumber | viem0.BlockTag];
4488
- ReturnType: readonly (viem0.RpcBlock & {
4489
- calls: readonly {
4490
- error?: {
4491
- data?: viem0.Hex | undefined;
4492
- code: number;
4493
- message: string;
4494
- } | undefined;
4495
- logs?: readonly viem0.RpcLog[] | undefined;
4496
- gasUsed: viem0.Hex;
4497
- returnData: viem0.Hex;
4498
- status: viem0.Hex;
4499
- }[];
4500
- })[];
4501
- }, {
4502
- Method: "eth_uninstallFilter";
4503
- Parameters: [filterId: viem0.Quantity];
4504
- ReturnType: boolean;
4505
- }, ...{
4506
- Method: string;
4507
- Parameters?: unknown | undefined;
4508
- ReturnType: unknown;
4509
- }[]], viem0.PublicActions<viem0.Transport, Chain | undefined>>) => client) => viem0.Client<viem0.Transport, Chain | undefined, viem0.Account | {
4510
- address: `0x${string}`;
4511
- type: "json-rpc";
4512
- } | undefined, viem0.PublicRpcSchema | [{
4513
- Method: "web3_clientVersion";
4514
- Parameters?: undefined;
4515
- ReturnType: string;
4516
- }, {
4517
- Method: "web3_sha3";
4518
- Parameters: [data: viem0.Hash];
4519
- ReturnType: string;
4520
- }, {
4521
- Method: "net_listening";
4522
- Parameters?: undefined;
4523
- ReturnType: boolean;
4524
- }, {
4525
- Method: "net_peerCount";
4526
- Parameters?: undefined;
4527
- ReturnType: viem0.Quantity;
4528
- }, {
4529
- Method: "net_version";
4530
- Parameters?: undefined;
4531
- ReturnType: viem0.Quantity;
4532
- }, {
4533
- Method: "eth_blobBaseFee";
4534
- Parameters?: undefined;
4535
- ReturnType: viem0.Quantity;
4536
- }, {
4537
- Method: "eth_blockNumber";
4538
- Parameters?: undefined;
4539
- ReturnType: viem0.Quantity;
4540
- }, {
4541
- Method: "eth_call";
4542
- Parameters: readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier, stateOverrideSet: viem0.RpcStateOverride] | readonly [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier, stateOverrideSet: viem0.RpcStateOverride, blockOverrides: viem0.RpcBlockOverrides];
4543
- ReturnType: viem0.Hex;
4544
- }, {
4545
- Method: "eth_createAccessList";
4546
- Parameters: [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>] | [transaction: viem0.ExactPartial<viem0.RpcTransactionRequest>, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4547
- ReturnType: {
4548
- accessList: viem0.AccessList;
4549
- gasUsed: viem0.Quantity;
4550
- };
4551
- }, {
4552
- Method: "eth_chainId";
4553
- Parameters?: undefined;
4554
- ReturnType: viem0.Quantity;
4555
- }, {
4556
- Method: "eth_coinbase";
4557
- Parameters?: undefined;
4558
- ReturnType: viem0.Address;
4559
- }, {
4560
- Method: "eth_estimateGas";
4561
- Parameters: [transaction: viem0.RpcTransactionRequest] | [transaction: viem0.RpcTransactionRequest, block: viem0.RpcBlockNumber | viem0.BlockTag] | [transaction: viem0.RpcTransactionRequest, block: viem0.RpcBlockNumber | viem0.BlockTag, stateOverride: viem0.RpcStateOverride];
4562
- ReturnType: viem0.Quantity;
4563
- }, {
4564
- Method: "eth_feeHistory";
4565
- Parameters: [blockCount: viem0.Quantity, newestBlock: viem0.RpcBlockNumber | viem0.BlockTag, rewardPercentiles: number[] | undefined];
4566
- ReturnType: viem0.RpcFeeHistory;
4567
- }, {
4568
- Method: "eth_gasPrice";
4569
- Parameters?: undefined;
4570
- ReturnType: viem0.Quantity;
4571
- }, {
4572
- Method: "eth_getBalance";
4573
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4574
- ReturnType: viem0.Quantity;
4575
- }, {
4576
- Method: "eth_getBlockByHash";
4577
- Parameters: [hash: viem0.Hash, includeTransactionObjects: boolean];
4578
- ReturnType: viem0.RpcBlock | null;
4579
- }, {
4580
- Method: "eth_getBlockByNumber";
4581
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, includeTransactionObjects: boolean];
4582
- ReturnType: viem0.RpcBlock | null;
4583
- }, {
4584
- Method: "eth_getBlockTransactionCountByHash";
4585
- Parameters: [hash: viem0.Hash];
4586
- ReturnType: viem0.Quantity;
4587
- }, {
4588
- Method: "eth_getBlockTransactionCountByNumber";
4589
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag];
4590
- ReturnType: viem0.Quantity;
4591
- }, {
4592
- Method: "eth_getCode";
4593
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4594
- ReturnType: viem0.Hex;
4595
- }, {
4596
- Method: "eth_getFilterChanges";
4597
- Parameters: [filterId: viem0.Quantity];
4598
- ReturnType: viem0.RpcLog[] | viem0.Hex[];
4599
- }, {
4600
- Method: "eth_getFilterLogs";
4601
- Parameters: [filterId: viem0.Quantity];
4602
- ReturnType: viem0.RpcLog[];
4603
- }, {
4604
- Method: "eth_getLogs";
4605
- Parameters: [{
4606
- address?: viem0.Address | viem0.Address[] | undefined;
4607
- topics?: viem0.LogTopic[] | undefined;
4608
- } & ({
4609
- fromBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4610
- toBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4611
- blockHash?: undefined;
4612
- } | {
4613
- fromBlock?: undefined;
4614
- toBlock?: undefined;
4615
- blockHash?: viem0.Hash | undefined;
4616
- })];
4617
- ReturnType: viem0.RpcLog[];
4618
- }, {
4619
- Method: "eth_getProof";
4620
- Parameters: [address: viem0.Address, storageKeys: viem0.Hash[], block: viem0.RpcBlockNumber | viem0.BlockTag];
4621
- ReturnType: viem0.RpcProof;
4622
- }, {
4623
- Method: "eth_getStorageAt";
4624
- Parameters: [address: viem0.Address, index: viem0.Quantity, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4625
- ReturnType: viem0.Hex;
4626
- }, {
4627
- Method: "eth_getTransactionByBlockHashAndIndex";
4628
- Parameters: [hash: viem0.Hash, index: viem0.Quantity];
4629
- ReturnType: viem0.RpcTransaction | null;
4630
- }, {
4631
- Method: "eth_getTransactionByBlockNumberAndIndex";
4632
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, index: viem0.Quantity];
4633
- ReturnType: viem0.RpcTransaction | null;
4634
- }, {
4635
- Method: "eth_getTransactionByHash";
4636
- Parameters: [hash: viem0.Hash];
4637
- ReturnType: viem0.RpcTransaction | null;
4638
- }, {
4639
- Method: "eth_getTransactionCount";
4640
- Parameters: [address: viem0.Address, block: viem0.RpcBlockNumber | viem0.BlockTag | viem0.RpcBlockIdentifier];
4641
- ReturnType: viem0.Quantity;
4642
- }, {
4643
- Method: "eth_getTransactionReceipt";
4644
- Parameters: [hash: viem0.Hash];
4645
- ReturnType: viem0.RpcTransactionReceipt | null;
4646
- }, {
4647
- Method: "eth_getUncleByBlockHashAndIndex";
4648
- Parameters: [hash: viem0.Hash, index: viem0.Quantity];
4649
- ReturnType: viem0.RpcUncle | null;
4650
- }, {
4651
- Method: "eth_getUncleByBlockNumberAndIndex";
4652
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag, index: viem0.Quantity];
4653
- ReturnType: viem0.RpcUncle | null;
4654
- }, {
4655
- Method: "eth_getUncleCountByBlockHash";
4656
- Parameters: [hash: viem0.Hash];
4657
- ReturnType: viem0.Quantity;
4658
- }, {
4659
- Method: "eth_getUncleCountByBlockNumber";
4660
- Parameters: [block: viem0.RpcBlockNumber | viem0.BlockTag];
4661
- ReturnType: viem0.Quantity;
4662
- }, {
4663
- Method: "eth_maxPriorityFeePerGas";
4664
- Parameters?: undefined;
4665
- ReturnType: viem0.Quantity;
4666
- }, {
4667
- Method: "eth_newBlockFilter";
4668
- Parameters?: undefined;
4669
- ReturnType: viem0.Quantity;
4670
- }, {
4671
- Method: "eth_newFilter";
4672
- Parameters: [filter: {
4673
- fromBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4674
- toBlock?: viem0.RpcBlockNumber | viem0.BlockTag | undefined;
4675
- address?: viem0.Address | viem0.Address[] | undefined;
4676
- topics?: viem0.LogTopic[] | undefined;
4677
- }];
4678
- ReturnType: viem0.Quantity;
4679
- }, {
4680
- Method: "eth_newPendingTransactionFilter";
4681
- Parameters?: undefined;
4682
- ReturnType: viem0.Quantity;
4683
- }, {
4684
- Method: "eth_protocolVersion";
4685
- Parameters?: undefined;
4686
- ReturnType: string;
4687
- }, {
4688
- Method: "eth_sendRawTransaction";
4689
- Parameters: [signedTransaction: viem0.Hex];
4690
- ReturnType: viem0.Hash;
4691
- }, {
4692
- Method: "eth_simulateV1";
4693
- Parameters: [{
4694
- blockStateCalls: readonly {
4695
- blockOverrides?: viem0.RpcBlockOverrides | undefined;
4696
- calls?: readonly viem0.ExactPartial<viem0.RpcTransactionRequest>[] | undefined;
4697
- stateOverrides?: viem0.RpcStateOverride | undefined;
4698
- }[];
4699
- returnFullTransactions?: boolean | undefined;
4700
- traceTransfers?: boolean | undefined;
4701
- validation?: boolean | undefined;
4702
- }, viem0.RpcBlockNumber | viem0.BlockTag];
4703
- ReturnType: readonly (viem0.RpcBlock & {
4704
- calls: readonly {
4705
- error?: {
4706
- data?: viem0.Hex | undefined;
4707
- code: number;
4708
- message: string;
4709
- } | undefined;
4710
- logs?: readonly viem0.RpcLog[] | undefined;
4711
- gasUsed: viem0.Hex;
4712
- returnData: viem0.Hex;
4713
- status: viem0.Hex;
4714
- }[];
4715
- })[];
4716
- }, {
4717
- Method: "eth_uninstallFilter";
4718
- Parameters: [filterId: viem0.Quantity];
4719
- ReturnType: boolean;
4720
- }, ...{
4721
- Method: string;
4722
- Parameters?: unknown | undefined;
4723
- ReturnType: unknown;
4724
- }[]], { [K in keyof client]: client[K] } & viem0.PublicActions<viem0.Transport, Chain | undefined>>;
4073
+ } & viem0.ExactPartial<Pick<viem0.PublicActions<Transport, Chain, undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<viem0.WalletActions<Chain, undefined>, "sendTransaction" | "writeContract">>>(fn: (client: viem0.Client<Transport, Chain, undefined, viem0.PublicRpcSchema, viem0.PublicActions<Transport, Chain>>) => client) => viem0.Client<Transport, Chain, undefined, viem0.PublicRpcSchema, { [K in keyof client]: client[K] } & viem0.PublicActions<Transport, Chain>>;
4725
4074
  } | viem0.Client<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain, undefined, viem0.PublicRpcSchema, {
4726
4075
  anvilSetBalance: (args: AnvilSetBalanceParameters) => Promise<unknown>;
4727
4076
  } & viem0.PublicActions<viem0.HttpTransport<viem0.RpcSchema | undefined, boolean>, Chain>>;
@@ -4829,7 +4178,6 @@ declare const createWalletClientWithCustomMethods: (chain: ReturnType<typeof get
4829
4178
  number: blockTag extends "pending" ? null : bigint;
4830
4179
  nonce: blockTag extends "pending" ? null : `0x${string}`;
4831
4180
  hash: blockTag extends "pending" ? null : `0x${string}`;
4832
- gasUsed: bigint;
4833
4181
  logsBloom: blockTag extends "pending" ? null : `0x${string}`;
4834
4182
  baseFeePerGas: bigint | null;
4835
4183
  blobGasUsed: bigint;
@@ -4837,6 +4185,7 @@ declare const createWalletClientWithCustomMethods: (chain: ReturnType<typeof get
4837
4185
  excessBlobGas: bigint;
4838
4186
  extraData: viem0.Hex;
4839
4187
  gasLimit: bigint;
4188
+ gasUsed: bigint;
4840
4189
  miner: viem0.Address;
4841
4190
  mixHash: viem0.Hash;
4842
4191
  parentBeaconBlockRoot?: `0x${string}` | undefined;