viem 1.1.0 → 1.1.1

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.
Files changed (144) hide show
  1. package/dist/cjs/actions/getContract.js.map +1 -1
  2. package/dist/cjs/actions/public/call.js +3 -2
  3. package/dist/cjs/actions/public/call.js.map +1 -1
  4. package/dist/cjs/actions/public/estimateGas.js +3 -2
  5. package/dist/cjs/actions/public/estimateGas.js.map +1 -1
  6. package/dist/cjs/actions/public/getBlock.js +1 -1
  7. package/dist/cjs/actions/public/getBlock.js.map +1 -1
  8. package/dist/cjs/actions/public/getTransaction.js +1 -1
  9. package/dist/cjs/actions/public/getTransaction.js.map +1 -1
  10. package/dist/cjs/actions/public/getTransactionReceipt.js +2 -1
  11. package/dist/cjs/actions/public/getTransactionReceipt.js.map +1 -1
  12. package/dist/cjs/actions/public/watchBlocks.js +1 -1
  13. package/dist/cjs/actions/public/watchBlocks.js.map +1 -1
  14. package/dist/cjs/actions/test/sendUnsignedTransaction.js +3 -2
  15. package/dist/cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  16. package/dist/cjs/actions/wallet/sendTransaction.js +2 -2
  17. package/dist/cjs/actions/wallet/sendTransaction.js.map +1 -1
  18. package/dist/cjs/actions/wallet/writeContract.js.map +1 -1
  19. package/dist/cjs/chains/formatters/celo.js.map +1 -1
  20. package/dist/cjs/chains/formatters/optimism.js +3 -4
  21. package/dist/cjs/chains/formatters/optimism.js.map +1 -1
  22. package/dist/cjs/errors/version.js +1 -1
  23. package/dist/cjs/index.js +5 -3
  24. package/dist/cjs/index.js.map +1 -1
  25. package/dist/cjs/utils/formatters/block.js +1 -1
  26. package/dist/cjs/utils/formatters/block.js.map +1 -1
  27. package/dist/cjs/utils/formatters/extract.js +3 -3
  28. package/dist/cjs/utils/formatters/extract.js.map +1 -1
  29. package/dist/cjs/utils/formatters/formatter.js +14 -11
  30. package/dist/cjs/utils/formatters/formatter.js.map +1 -1
  31. package/dist/cjs/utils/formatters/transaction.js +1 -1
  32. package/dist/cjs/utils/formatters/transaction.js.map +1 -1
  33. package/dist/cjs/utils/formatters/transactionReceipt.js +1 -1
  34. package/dist/cjs/utils/formatters/transactionReceipt.js.map +1 -1
  35. package/dist/cjs/utils/formatters/transactionRequest.js +1 -1
  36. package/dist/cjs/utils/formatters/transactionRequest.js.map +1 -1
  37. package/dist/cjs/utils/index.js +4 -2
  38. package/dist/cjs/utils/index.js.map +1 -1
  39. package/dist/esm/actions/getContract.js.map +1 -1
  40. package/dist/esm/actions/public/call.js +3 -2
  41. package/dist/esm/actions/public/call.js.map +1 -1
  42. package/dist/esm/actions/public/estimateGas.js +3 -2
  43. package/dist/esm/actions/public/estimateGas.js.map +1 -1
  44. package/dist/esm/actions/public/getBlock.js +1 -1
  45. package/dist/esm/actions/public/getBlock.js.map +1 -1
  46. package/dist/esm/actions/public/getTransaction.js +1 -1
  47. package/dist/esm/actions/public/getTransaction.js.map +1 -1
  48. package/dist/esm/actions/public/getTransactionReceipt.js +2 -1
  49. package/dist/esm/actions/public/getTransactionReceipt.js.map +1 -1
  50. package/dist/esm/actions/public/watchBlocks.js +1 -1
  51. package/dist/esm/actions/public/watchBlocks.js.map +1 -1
  52. package/dist/esm/actions/test/sendUnsignedTransaction.js +3 -2
  53. package/dist/esm/actions/test/sendUnsignedTransaction.js.map +1 -1
  54. package/dist/esm/actions/wallet/sendTransaction.js +2 -2
  55. package/dist/esm/actions/wallet/sendTransaction.js.map +1 -1
  56. package/dist/esm/actions/wallet/writeContract.js.map +1 -1
  57. package/dist/esm/chains/formatters/celo.js +1 -0
  58. package/dist/esm/chains/formatters/celo.js.map +1 -1
  59. package/dist/esm/chains/formatters/optimism.js +3 -3
  60. package/dist/esm/chains/formatters/optimism.js.map +1 -1
  61. package/dist/esm/errors/version.js +1 -1
  62. package/dist/esm/index.js +1 -0
  63. package/dist/esm/index.js.map +1 -1
  64. package/dist/esm/utils/formatters/block.js +1 -1
  65. package/dist/esm/utils/formatters/block.js.map +1 -1
  66. package/dist/esm/utils/formatters/extract.js +3 -3
  67. package/dist/esm/utils/formatters/extract.js.map +1 -1
  68. package/dist/esm/utils/formatters/formatter.js +14 -11
  69. package/dist/esm/utils/formatters/formatter.js.map +1 -1
  70. package/dist/esm/utils/formatters/transaction.js +1 -2
  71. package/dist/esm/utils/formatters/transaction.js.map +1 -1
  72. package/dist/esm/utils/formatters/transactionReceipt.js +1 -1
  73. package/dist/esm/utils/formatters/transactionReceipt.js.map +1 -1
  74. package/dist/esm/utils/formatters/transactionRequest.js +1 -1
  75. package/dist/esm/utils/formatters/transactionRequest.js.map +1 -1
  76. package/dist/esm/utils/index.js +1 -0
  77. package/dist/esm/utils/index.js.map +1 -1
  78. package/dist/types/actions/public/call.d.ts.map +1 -1
  79. package/dist/types/actions/public/estimateContractGas.d.ts +1 -1
  80. package/dist/types/actions/public/estimateContractGas.d.ts.map +1 -1
  81. package/dist/types/actions/public/estimateGas.d.ts.map +1 -1
  82. package/dist/types/actions/public/getTransaction.d.ts.map +1 -1
  83. package/dist/types/actions/public/getTransactionReceipt.d.ts.map +1 -1
  84. package/dist/types/actions/public/simulateContract.d.ts +1 -1
  85. package/dist/types/actions/public/simulateContract.d.ts.map +1 -1
  86. package/dist/types/actions/public/watchBlocks.d.ts.map +1 -1
  87. package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
  88. package/dist/types/actions/wallet/sendTransaction.d.ts +2 -1
  89. package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -1
  90. package/dist/types/actions/wallet/writeContract.d.ts +1 -1
  91. package/dist/types/actions/wallet/writeContract.d.ts.map +1 -1
  92. package/dist/types/chains/formatters/celo.d.ts +200 -188
  93. package/dist/types/chains/formatters/celo.d.ts.map +1 -1
  94. package/dist/types/chains/formatters/optimism.d.ts +250 -250
  95. package/dist/types/chains/formatters/optimism.d.ts.map +1 -1
  96. package/dist/types/chains/index.d.ts +2180 -2148
  97. package/dist/types/chains/index.d.ts.map +1 -1
  98. package/dist/types/errors/version.d.ts +1 -1
  99. package/dist/types/index.d.ts +1 -0
  100. package/dist/types/index.d.ts.map +1 -1
  101. package/dist/types/types/formatter.d.ts +10 -7
  102. package/dist/types/types/formatter.d.ts.map +1 -1
  103. package/dist/types/types/serializer.d.ts +1 -1
  104. package/dist/types/types/serializer.d.ts.map +1 -1
  105. package/dist/types/utils/formatters/block.d.ts +4 -1
  106. package/dist/types/utils/formatters/block.d.ts.map +1 -1
  107. package/dist/types/utils/formatters/extract.d.ts +2 -2
  108. package/dist/types/utils/formatters/extract.d.ts.map +1 -1
  109. package/dist/types/utils/formatters/formatter.d.ts +5 -2
  110. package/dist/types/utils/formatters/formatter.d.ts.map +1 -1
  111. package/dist/types/utils/formatters/transaction.d.ts +5 -2
  112. package/dist/types/utils/formatters/transaction.d.ts.map +1 -1
  113. package/dist/types/utils/formatters/transactionReceipt.d.ts +4 -1
  114. package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  115. package/dist/types/utils/formatters/transactionRequest.d.ts +4 -1
  116. package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -1
  117. package/dist/types/utils/index.d.ts +1 -0
  118. package/dist/types/utils/index.d.ts.map +1 -1
  119. package/package.json +1 -1
  120. package/src/actions/getContract.ts +1 -1
  121. package/src/actions/public/call.ts +3 -2
  122. package/src/actions/public/estimateContractGas.ts +1 -1
  123. package/src/actions/public/estimateGas.ts +4 -3
  124. package/src/actions/public/getBlock.ts +1 -1
  125. package/src/actions/public/getTransaction.ts +2 -1
  126. package/src/actions/public/getTransactionReceipt.ts +2 -1
  127. package/src/actions/public/simulateContract.ts +1 -1
  128. package/src/actions/public/watchBlocks.ts +2 -1
  129. package/src/actions/test/sendUnsignedTransaction.ts +3 -2
  130. package/src/actions/wallet/sendTransaction.ts +9 -3
  131. package/src/actions/wallet/writeContract.ts +11 -1
  132. package/src/chains/formatters/celo.ts +2 -1
  133. package/src/chains/formatters/optimism.ts +9 -6
  134. package/src/errors/version.ts +1 -1
  135. package/src/index.ts +1 -0
  136. package/src/types/formatter.ts +10 -9
  137. package/src/types/serializer.ts +1 -1
  138. package/src/utils/formatters/block.ts +1 -1
  139. package/src/utils/formatters/extract.ts +3 -3
  140. package/src/utils/formatters/formatter.ts +17 -13
  141. package/src/utils/formatters/transaction.ts +4 -2
  142. package/src/utils/formatters/transactionReceipt.ts +1 -0
  143. package/src/utils/formatters/transactionRequest.ts +1 -0
  144. package/src/utils/index.ts +1 -0
@@ -505,398 +505,422 @@ export declare const celo: {
505
505
  readonly testnet: false;
506
506
  } & {
507
507
  formatters: {
508
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
509
- randomness: {
510
- committed: `0x${string}`;
511
- revealed: `0x${string}`;
508
+ readonly block: {
509
+ format: (args: Partial<import("../index.js").RpcBlock> & {
510
+ randomness: {
511
+ committed: `0x${string}`;
512
+ revealed: `0x${string}`;
513
+ };
514
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
515
+ feeCurrency: `0x${string}` | null;
516
+ gatewayFee: `0x${string}` | null;
517
+ gatewayFeeRecipient: `0x${string}` | null;
518
+ })[];
519
+ }) => {
520
+ baseFeePerGas: bigint | null;
521
+ difficulty: bigint;
522
+ extraData: `0x${string}`;
523
+ gasLimit: bigint;
524
+ gasUsed: bigint;
525
+ hash: `0x${string}` | null;
526
+ logsBloom: `0x${string}` | null;
527
+ miner: `0x${string}`;
528
+ mixHash: `0x${string}`;
529
+ nonce: `0x${string}` | null;
530
+ number: bigint | null;
531
+ parentHash: `0x${string}`;
532
+ receiptsRoot: `0x${string}`;
533
+ sealFields: `0x${string}`[];
534
+ sha3Uncles: `0x${string}`;
535
+ size: bigint;
536
+ stateRoot: `0x${string}`;
537
+ timestamp: bigint;
538
+ totalDifficulty: bigint | null;
539
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
540
+ feeCurrency: `0x${string}` | null;
541
+ gatewayFee: bigint | null;
542
+ gatewayFeeRecipient: `0x${string}` | null;
543
+ })[];
544
+ transactionsRoot: `0x${string}`;
545
+ uncles: `0x${string}`[];
546
+ randomness: {
547
+ committed: `0x${string}`;
548
+ revealed: `0x${string}`;
549
+ };
550
+ } & {
551
+ nonce: never;
552
+ difficulty: never;
553
+ gasLimit: never;
554
+ mixHash: never;
555
+ uncles: never;
512
556
  };
513
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
557
+ type: "block";
558
+ };
559
+ readonly transaction: {
560
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
514
561
  feeCurrency: `0x${string}` | null;
515
562
  gatewayFee: `0x${string}` | null;
516
563
  gatewayFeeRecipient: `0x${string}` | null;
517
- })[];
518
- }) => {
519
- baseFeePerGas: bigint | null;
520
- difficulty: bigint;
521
- extraData: `0x${string}`;
522
- gasLimit: bigint;
523
- gasUsed: bigint;
524
- hash: `0x${string}` | null;
525
- logsBloom: `0x${string}` | null;
526
- miner: `0x${string}`;
527
- mixHash: `0x${string}`;
528
- nonce: `0x${string}` | null;
529
- number: bigint | null;
530
- parentHash: `0x${string}`;
531
- receiptsRoot: `0x${string}`;
532
- sealFields: `0x${string}`[];
533
- sha3Uncles: `0x${string}`;
534
- size: bigint;
535
- stateRoot: `0x${string}`;
536
- timestamp: bigint;
537
- totalDifficulty: bigint | null;
538
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
564
+ }) => ({
565
+ blockHash: `0x${string}` | null;
566
+ blockNumber: bigint | null;
567
+ from: `0x${string}`;
568
+ gas: bigint;
569
+ hash: `0x${string}`;
570
+ input: `0x${string}`;
571
+ nonce: number;
572
+ r: `0x${string}`;
573
+ s: `0x${string}`;
574
+ to: `0x${string}` | null;
575
+ transactionIndex: number | null;
576
+ typeHex: `0x${string}` | null;
577
+ v: bigint;
578
+ value: bigint;
579
+ gasPrice: bigint;
580
+ maxFeePerGas?: undefined;
581
+ maxPriorityFeePerGas?: undefined;
582
+ accessList?: undefined;
583
+ chainId?: number | undefined;
584
+ type: "legacy";
539
585
  feeCurrency: `0x${string}` | null;
540
586
  gatewayFee: bigint | null;
541
587
  gatewayFeeRecipient: `0x${string}` | null;
542
- })[];
543
- transactionsRoot: `0x${string}`;
544
- uncles: `0x${string}`[];
545
- randomness: {
546
- committed: `0x${string}`;
547
- revealed: `0x${string}`;
548
- };
549
- } & {
550
- nonce: never;
551
- difficulty: never;
552
- gasLimit: never;
553
- mixHash: never;
554
- uncles: never;
555
- };
556
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
557
- feeCurrency: `0x${string}` | null;
558
- gatewayFee: `0x${string}` | null;
559
- gatewayFeeRecipient: `0x${string}` | null;
560
- }) => ({
561
- blockHash: `0x${string}` | null;
562
- blockNumber: bigint | null;
563
- from: `0x${string}`;
564
- gas: bigint;
565
- hash: `0x${string}`;
566
- input: `0x${string}`;
567
- nonce: number;
568
- r: `0x${string}`;
569
- s: `0x${string}`;
570
- to: `0x${string}` | null;
571
- transactionIndex: number | null;
572
- typeHex: `0x${string}` | null;
573
- v: bigint;
574
- value: bigint;
575
- gasPrice: bigint;
576
- maxFeePerGas?: undefined;
577
- maxPriorityFeePerGas?: undefined;
578
- accessList?: undefined;
579
- chainId?: number | undefined;
580
- type: "legacy";
581
- feeCurrency: `0x${string}` | null;
582
- gatewayFee: bigint | null;
583
- gatewayFeeRecipient: `0x${string}` | null;
584
- } | {
585
- blockHash: `0x${string}` | null;
586
- blockNumber: bigint | null;
587
- from: `0x${string}`;
588
- gas: bigint;
589
- hash: `0x${string}`;
590
- input: `0x${string}`;
591
- nonce: number;
592
- r: `0x${string}`;
593
- s: `0x${string}`;
594
- to: `0x${string}` | null;
595
- transactionIndex: number | null;
596
- typeHex: `0x${string}` | null;
597
- v: bigint;
598
- value: bigint;
599
- gasPrice: bigint;
600
- maxFeePerGas?: undefined;
601
- maxPriorityFeePerGas?: undefined;
602
- accessList: import("../index.js").AccessList;
603
- chainId: number;
604
- type: "eip2930";
605
- feeCurrency: `0x${string}` | null;
606
- gatewayFee: bigint | null;
607
- gatewayFeeRecipient: `0x${string}` | null;
608
- } | {
609
- blockHash: `0x${string}` | null;
610
- blockNumber: bigint | null;
611
- from: `0x${string}`;
612
- gas: bigint;
613
- hash: `0x${string}`;
614
- input: `0x${string}`;
615
- nonce: number;
616
- r: `0x${string}`;
617
- s: `0x${string}`;
618
- to: `0x${string}` | null;
619
- transactionIndex: number | null;
620
- typeHex: `0x${string}` | null;
621
- v: bigint;
622
- value: bigint;
623
- gasPrice?: undefined;
624
- maxFeePerGas: bigint;
625
- maxPriorityFeePerGas: bigint;
626
- accessList: import("../index.js").AccessList;
627
- chainId: number;
628
- type: "eip1559";
629
- feeCurrency: `0x${string}` | null;
630
- gatewayFee: bigint | null;
631
- gatewayFeeRecipient: `0x${string}` | null;
632
- }) & {};
633
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
634
- feeCurrency: `0x${string}` | null;
635
- gatewayFee: `0x${string}` | null;
636
- gatewayFeeRecipient: `0x${string}` | null;
637
- }) => {
638
- blockHash: `0x${string}`;
639
- blockNumber: bigint;
640
- contractAddress: `0x${string}` | null;
641
- cumulativeGasUsed: bigint;
642
- effectiveGasPrice: bigint;
643
- from: `0x${string}`;
644
- gasUsed: bigint;
645
- logs: import("../index.js").Log<bigint, number>[];
646
- logsBloom: `0x${string}`;
647
- status: "success" | "reverted";
648
- to: `0x${string}` | null;
649
- transactionHash: `0x${string}`;
650
- transactionIndex: number;
651
- type: import("../index.js").TransactionType;
652
- feeCurrency: `0x${string}` | null;
653
- gatewayFee: bigint | null;
654
- gatewayFeeRecipient: `0x${string}` | null;
655
- } & {};
656
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
657
- feeCurrency?: `0x${string}` | undefined;
658
- gatewayFee?: bigint | undefined;
659
- gatewayFeeRecipient?: `0x${string}` | undefined;
660
- }) => ({
661
- data?: `0x${string}` | undefined;
662
- from: `0x${string}`;
663
- gas?: `0x${string}` | undefined;
664
- nonce?: `0x${string}` | undefined;
665
- to?: `0x${string}` | undefined;
666
- value?: `0x${string}` | undefined;
667
- gasPrice?: `0x${string}` | undefined;
668
- maxFeePerGas?: undefined;
669
- maxPriorityFeePerGas?: undefined;
670
- accessList?: undefined;
671
- feeCurrency: `0x${string}` | undefined;
672
- gatewayFee: `0x${string}` | undefined;
673
- gatewayFeeRecipient: `0x${string}` | undefined;
674
- } | {
675
- data?: `0x${string}` | undefined;
676
- from: `0x${string}`;
677
- gas?: `0x${string}` | undefined;
678
- nonce?: `0x${string}` | undefined;
679
- to?: `0x${string}` | undefined;
680
- value?: `0x${string}` | undefined;
681
- gasPrice?: `0x${string}` | undefined;
682
- maxFeePerGas?: undefined;
683
- maxPriorityFeePerGas?: undefined;
684
- accessList?: import("../index.js").AccessList | undefined;
685
- feeCurrency: `0x${string}` | undefined;
686
- gatewayFee: `0x${string}` | undefined;
687
- gatewayFeeRecipient: `0x${string}` | undefined;
688
- } | {
689
- data?: `0x${string}` | undefined;
690
- from: `0x${string}`;
691
- gas?: `0x${string}` | undefined;
692
- nonce?: `0x${string}` | undefined;
693
- to?: `0x${string}` | undefined;
694
- value?: `0x${string}` | undefined;
695
- gasPrice?: undefined;
696
- maxFeePerGas?: `0x${string}` | undefined;
697
- maxPriorityFeePerGas?: `0x${string}` | undefined;
698
- accessList?: import("../index.js").AccessList | undefined;
699
- feeCurrency: `0x${string}` | undefined;
700
- gatewayFee: `0x${string}` | undefined;
701
- gatewayFeeRecipient: `0x${string}` | undefined;
702
- }) & {};
588
+ } | {
589
+ blockHash: `0x${string}` | null;
590
+ blockNumber: bigint | null;
591
+ from: `0x${string}`;
592
+ gas: bigint;
593
+ hash: `0x${string}`;
594
+ input: `0x${string}`;
595
+ nonce: number;
596
+ r: `0x${string}`;
597
+ s: `0x${string}`;
598
+ to: `0x${string}` | null;
599
+ transactionIndex: number | null;
600
+ typeHex: `0x${string}` | null;
601
+ v: bigint;
602
+ value: bigint;
603
+ gasPrice: bigint;
604
+ maxFeePerGas?: undefined;
605
+ maxPriorityFeePerGas?: undefined;
606
+ accessList: import("../index.js").AccessList;
607
+ chainId: number;
608
+ type: "eip2930";
609
+ feeCurrency: `0x${string}` | null;
610
+ gatewayFee: bigint | null;
611
+ gatewayFeeRecipient: `0x${string}` | null;
612
+ } | {
613
+ blockHash: `0x${string}` | null;
614
+ blockNumber: bigint | null;
615
+ from: `0x${string}`;
616
+ gas: bigint;
617
+ hash: `0x${string}`;
618
+ input: `0x${string}`;
619
+ nonce: number;
620
+ r: `0x${string}`;
621
+ s: `0x${string}`;
622
+ to: `0x${string}` | null;
623
+ transactionIndex: number | null;
624
+ typeHex: `0x${string}` | null;
625
+ v: bigint;
626
+ value: bigint;
627
+ gasPrice?: undefined;
628
+ maxFeePerGas: bigint;
629
+ maxPriorityFeePerGas: bigint;
630
+ accessList: import("../index.js").AccessList;
631
+ chainId: number;
632
+ type: "eip1559";
633
+ feeCurrency: `0x${string}` | null;
634
+ gatewayFee: bigint | null;
635
+ gatewayFeeRecipient: `0x${string}` | null;
636
+ }) & {};
637
+ type: "transaction";
638
+ };
639
+ readonly transactionReceipt: {
640
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
641
+ feeCurrency: `0x${string}` | null;
642
+ gatewayFee: `0x${string}` | null;
643
+ gatewayFeeRecipient: `0x${string}` | null;
644
+ }) => {
645
+ blockHash: `0x${string}`;
646
+ blockNumber: bigint;
647
+ contractAddress: `0x${string}` | null;
648
+ cumulativeGasUsed: bigint;
649
+ effectiveGasPrice: bigint;
650
+ from: `0x${string}`;
651
+ gasUsed: bigint;
652
+ logs: import("../index.js").Log<bigint, number>[];
653
+ logsBloom: `0x${string}`;
654
+ status: "success" | "reverted";
655
+ to: `0x${string}` | null;
656
+ transactionHash: `0x${string}`;
657
+ transactionIndex: number;
658
+ type: import("../index.js").TransactionType;
659
+ feeCurrency: `0x${string}` | null;
660
+ gatewayFee: bigint | null;
661
+ gatewayFeeRecipient: `0x${string}` | null;
662
+ } & {};
663
+ type: "transactionReceipt";
664
+ };
665
+ readonly transactionRequest: {
666
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
667
+ feeCurrency?: `0x${string}` | undefined;
668
+ gatewayFee?: bigint | undefined;
669
+ gatewayFeeRecipient?: `0x${string}` | undefined;
670
+ }) => ({
671
+ data?: `0x${string}` | undefined;
672
+ from: `0x${string}`;
673
+ gas?: `0x${string}` | undefined;
674
+ nonce?: `0x${string}` | undefined;
675
+ to?: `0x${string}` | undefined;
676
+ value?: `0x${string}` | undefined;
677
+ gasPrice?: `0x${string}` | undefined;
678
+ maxFeePerGas?: undefined;
679
+ maxPriorityFeePerGas?: undefined;
680
+ accessList?: undefined;
681
+ feeCurrency: `0x${string}` | undefined;
682
+ gatewayFee: `0x${string}` | undefined;
683
+ gatewayFeeRecipient: `0x${string}` | undefined;
684
+ } | {
685
+ data?: `0x${string}` | undefined;
686
+ from: `0x${string}`;
687
+ gas?: `0x${string}` | undefined;
688
+ nonce?: `0x${string}` | undefined;
689
+ to?: `0x${string}` | undefined;
690
+ value?: `0x${string}` | undefined;
691
+ gasPrice?: `0x${string}` | undefined;
692
+ maxFeePerGas?: undefined;
693
+ maxPriorityFeePerGas?: undefined;
694
+ accessList?: import("../index.js").AccessList | undefined;
695
+ feeCurrency: `0x${string}` | undefined;
696
+ gatewayFee: `0x${string}` | undefined;
697
+ gatewayFeeRecipient: `0x${string}` | undefined;
698
+ } | {
699
+ data?: `0x${string}` | undefined;
700
+ from: `0x${string}`;
701
+ gas?: `0x${string}` | undefined;
702
+ nonce?: `0x${string}` | undefined;
703
+ to?: `0x${string}` | undefined;
704
+ value?: `0x${string}` | undefined;
705
+ gasPrice?: undefined;
706
+ maxFeePerGas?: `0x${string}` | undefined;
707
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
708
+ accessList?: import("../index.js").AccessList | undefined;
709
+ feeCurrency: `0x${string}` | undefined;
710
+ gatewayFee: `0x${string}` | undefined;
711
+ gatewayFeeRecipient: `0x${string}` | undefined;
712
+ }) & {};
713
+ type: "transactionRequest";
714
+ };
703
715
  } | undefined;
704
716
  serializers: import("../index.js").Serializers<{
705
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
706
- randomness: {
707
- committed: `0x${string}`;
708
- revealed: `0x${string}`;
717
+ readonly block: {
718
+ format: (args: Partial<import("../index.js").RpcBlock> & {
719
+ randomness: {
720
+ committed: `0x${string}`;
721
+ revealed: `0x${string}`;
722
+ };
723
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
724
+ feeCurrency: `0x${string}` | null;
725
+ gatewayFee: `0x${string}` | null;
726
+ gatewayFeeRecipient: `0x${string}` | null;
727
+ })[];
728
+ }) => {
729
+ baseFeePerGas: bigint | null;
730
+ difficulty: bigint;
731
+ extraData: `0x${string}`;
732
+ gasLimit: bigint;
733
+ gasUsed: bigint;
734
+ hash: `0x${string}` | null;
735
+ logsBloom: `0x${string}` | null;
736
+ miner: `0x${string}`;
737
+ mixHash: `0x${string}`;
738
+ nonce: `0x${string}` | null;
739
+ number: bigint | null;
740
+ parentHash: `0x${string}`;
741
+ receiptsRoot: `0x${string}`;
742
+ sealFields: `0x${string}`[];
743
+ sha3Uncles: `0x${string}`;
744
+ size: bigint;
745
+ stateRoot: `0x${string}`;
746
+ timestamp: bigint;
747
+ totalDifficulty: bigint | null;
748
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
749
+ feeCurrency: `0x${string}` | null;
750
+ gatewayFee: bigint | null;
751
+ gatewayFeeRecipient: `0x${string}` | null;
752
+ })[];
753
+ transactionsRoot: `0x${string}`;
754
+ uncles: `0x${string}`[];
755
+ randomness: {
756
+ committed: `0x${string}`;
757
+ revealed: `0x${string}`;
758
+ };
759
+ } & {
760
+ nonce: never;
761
+ difficulty: never;
762
+ gasLimit: never;
763
+ mixHash: never;
764
+ uncles: never;
709
765
  };
710
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
766
+ type: "block";
767
+ };
768
+ readonly transaction: {
769
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
711
770
  feeCurrency: `0x${string}` | null;
712
771
  gatewayFee: `0x${string}` | null;
713
772
  gatewayFeeRecipient: `0x${string}` | null;
714
- })[];
715
- }) => {
716
- baseFeePerGas: bigint | null;
717
- difficulty: bigint;
718
- extraData: `0x${string}`;
719
- gasLimit: bigint;
720
- gasUsed: bigint;
721
- hash: `0x${string}` | null;
722
- logsBloom: `0x${string}` | null;
723
- miner: `0x${string}`;
724
- mixHash: `0x${string}`;
725
- nonce: `0x${string}` | null;
726
- number: bigint | null;
727
- parentHash: `0x${string}`;
728
- receiptsRoot: `0x${string}`;
729
- sealFields: `0x${string}`[];
730
- sha3Uncles: `0x${string}`;
731
- size: bigint;
732
- stateRoot: `0x${string}`;
733
- timestamp: bigint;
734
- totalDifficulty: bigint | null;
735
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
773
+ }) => ({
774
+ blockHash: `0x${string}` | null;
775
+ blockNumber: bigint | null;
776
+ from: `0x${string}`;
777
+ gas: bigint;
778
+ hash: `0x${string}`;
779
+ input: `0x${string}`;
780
+ nonce: number;
781
+ r: `0x${string}`;
782
+ s: `0x${string}`;
783
+ to: `0x${string}` | null;
784
+ transactionIndex: number | null;
785
+ typeHex: `0x${string}` | null;
786
+ v: bigint;
787
+ value: bigint;
788
+ gasPrice: bigint;
789
+ maxFeePerGas?: undefined;
790
+ maxPriorityFeePerGas?: undefined;
791
+ accessList?: undefined;
792
+ chainId?: number | undefined;
793
+ type: "legacy";
736
794
  feeCurrency: `0x${string}` | null;
737
795
  gatewayFee: bigint | null;
738
796
  gatewayFeeRecipient: `0x${string}` | null;
739
- })[];
740
- transactionsRoot: `0x${string}`;
741
- uncles: `0x${string}`[];
742
- randomness: {
743
- committed: `0x${string}`;
744
- revealed: `0x${string}`;
745
- };
746
- } & {
747
- nonce: never;
748
- difficulty: never;
749
- gasLimit: never;
750
- mixHash: never;
751
- uncles: never;
752
- };
753
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
754
- feeCurrency: `0x${string}` | null;
755
- gatewayFee: `0x${string}` | null;
756
- gatewayFeeRecipient: `0x${string}` | null;
757
- }) => ({
758
- blockHash: `0x${string}` | null;
759
- blockNumber: bigint | null;
760
- from: `0x${string}`;
761
- gas: bigint;
762
- hash: `0x${string}`;
763
- input: `0x${string}`;
764
- nonce: number;
765
- r: `0x${string}`;
766
- s: `0x${string}`;
767
- to: `0x${string}` | null;
768
- transactionIndex: number | null;
769
- typeHex: `0x${string}` | null;
770
- v: bigint;
771
- value: bigint;
772
- gasPrice: bigint;
773
- maxFeePerGas?: undefined;
774
- maxPriorityFeePerGas?: undefined;
775
- accessList?: undefined;
776
- chainId?: number | undefined;
777
- type: "legacy";
778
- feeCurrency: `0x${string}` | null;
779
- gatewayFee: bigint | null;
780
- gatewayFeeRecipient: `0x${string}` | null;
781
- } | {
782
- blockHash: `0x${string}` | null;
783
- blockNumber: bigint | null;
784
- from: `0x${string}`;
785
- gas: bigint;
786
- hash: `0x${string}`;
787
- input: `0x${string}`;
788
- nonce: number;
789
- r: `0x${string}`;
790
- s: `0x${string}`;
791
- to: `0x${string}` | null;
792
- transactionIndex: number | null;
793
- typeHex: `0x${string}` | null;
794
- v: bigint;
795
- value: bigint;
796
- gasPrice: bigint;
797
- maxFeePerGas?: undefined;
798
- maxPriorityFeePerGas?: undefined;
799
- accessList: import("../index.js").AccessList;
800
- chainId: number;
801
- type: "eip2930";
802
- feeCurrency: `0x${string}` | null;
803
- gatewayFee: bigint | null;
804
- gatewayFeeRecipient: `0x${string}` | null;
805
- } | {
806
- blockHash: `0x${string}` | null;
807
- blockNumber: bigint | null;
808
- from: `0x${string}`;
809
- gas: bigint;
810
- hash: `0x${string}`;
811
- input: `0x${string}`;
812
- nonce: number;
813
- r: `0x${string}`;
814
- s: `0x${string}`;
815
- to: `0x${string}` | null;
816
- transactionIndex: number | null;
817
- typeHex: `0x${string}` | null;
818
- v: bigint;
819
- value: bigint;
820
- gasPrice?: undefined;
821
- maxFeePerGas: bigint;
822
- maxPriorityFeePerGas: bigint;
823
- accessList: import("../index.js").AccessList;
824
- chainId: number;
825
- type: "eip1559";
826
- feeCurrency: `0x${string}` | null;
827
- gatewayFee: bigint | null;
828
- gatewayFeeRecipient: `0x${string}` | null;
829
- }) & {};
830
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
831
- feeCurrency: `0x${string}` | null;
832
- gatewayFee: `0x${string}` | null;
833
- gatewayFeeRecipient: `0x${string}` | null;
834
- }) => {
835
- blockHash: `0x${string}`;
836
- blockNumber: bigint;
837
- contractAddress: `0x${string}` | null;
838
- cumulativeGasUsed: bigint;
839
- effectiveGasPrice: bigint;
840
- from: `0x${string}`;
841
- gasUsed: bigint;
842
- logs: import("../index.js").Log<bigint, number>[];
843
- logsBloom: `0x${string}`;
844
- status: "success" | "reverted";
845
- to: `0x${string}` | null;
846
- transactionHash: `0x${string}`;
847
- transactionIndex: number;
848
- type: import("../index.js").TransactionType;
849
- feeCurrency: `0x${string}` | null;
850
- gatewayFee: bigint | null;
851
- gatewayFeeRecipient: `0x${string}` | null;
852
- } & {};
853
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
854
- feeCurrency?: `0x${string}` | undefined;
855
- gatewayFee?: bigint | undefined;
856
- gatewayFeeRecipient?: `0x${string}` | undefined;
857
- }) => ({
858
- data?: `0x${string}` | undefined;
859
- from: `0x${string}`;
860
- gas?: `0x${string}` | undefined;
861
- nonce?: `0x${string}` | undefined;
862
- to?: `0x${string}` | undefined;
863
- value?: `0x${string}` | undefined;
864
- gasPrice?: `0x${string}` | undefined;
865
- maxFeePerGas?: undefined;
866
- maxPriorityFeePerGas?: undefined;
867
- accessList?: undefined;
868
- feeCurrency: `0x${string}` | undefined;
869
- gatewayFee: `0x${string}` | undefined;
870
- gatewayFeeRecipient: `0x${string}` | undefined;
871
- } | {
872
- data?: `0x${string}` | undefined;
873
- from: `0x${string}`;
874
- gas?: `0x${string}` | undefined;
875
- nonce?: `0x${string}` | undefined;
876
- to?: `0x${string}` | undefined;
877
- value?: `0x${string}` | undefined;
878
- gasPrice?: `0x${string}` | undefined;
879
- maxFeePerGas?: undefined;
880
- maxPriorityFeePerGas?: undefined;
881
- accessList?: import("../index.js").AccessList | undefined;
882
- feeCurrency: `0x${string}` | undefined;
883
- gatewayFee: `0x${string}` | undefined;
884
- gatewayFeeRecipient: `0x${string}` | undefined;
885
- } | {
886
- data?: `0x${string}` | undefined;
887
- from: `0x${string}`;
888
- gas?: `0x${string}` | undefined;
889
- nonce?: `0x${string}` | undefined;
890
- to?: `0x${string}` | undefined;
891
- value?: `0x${string}` | undefined;
892
- gasPrice?: undefined;
893
- maxFeePerGas?: `0x${string}` | undefined;
894
- maxPriorityFeePerGas?: `0x${string}` | undefined;
895
- accessList?: import("../index.js").AccessList | undefined;
896
- feeCurrency: `0x${string}` | undefined;
897
- gatewayFee: `0x${string}` | undefined;
898
- gatewayFeeRecipient: `0x${string}` | undefined;
899
- }) & {};
797
+ } | {
798
+ blockHash: `0x${string}` | null;
799
+ blockNumber: bigint | null;
800
+ from: `0x${string}`;
801
+ gas: bigint;
802
+ hash: `0x${string}`;
803
+ input: `0x${string}`;
804
+ nonce: number;
805
+ r: `0x${string}`;
806
+ s: `0x${string}`;
807
+ to: `0x${string}` | null;
808
+ transactionIndex: number | null;
809
+ typeHex: `0x${string}` | null;
810
+ v: bigint;
811
+ value: bigint;
812
+ gasPrice: bigint;
813
+ maxFeePerGas?: undefined;
814
+ maxPriorityFeePerGas?: undefined;
815
+ accessList: import("../index.js").AccessList;
816
+ chainId: number;
817
+ type: "eip2930";
818
+ feeCurrency: `0x${string}` | null;
819
+ gatewayFee: bigint | null;
820
+ gatewayFeeRecipient: `0x${string}` | null;
821
+ } | {
822
+ blockHash: `0x${string}` | null;
823
+ blockNumber: bigint | null;
824
+ from: `0x${string}`;
825
+ gas: bigint;
826
+ hash: `0x${string}`;
827
+ input: `0x${string}`;
828
+ nonce: number;
829
+ r: `0x${string}`;
830
+ s: `0x${string}`;
831
+ to: `0x${string}` | null;
832
+ transactionIndex: number | null;
833
+ typeHex: `0x${string}` | null;
834
+ v: bigint;
835
+ value: bigint;
836
+ gasPrice?: undefined;
837
+ maxFeePerGas: bigint;
838
+ maxPriorityFeePerGas: bigint;
839
+ accessList: import("../index.js").AccessList;
840
+ chainId: number;
841
+ type: "eip1559";
842
+ feeCurrency: `0x${string}` | null;
843
+ gatewayFee: bigint | null;
844
+ gatewayFeeRecipient: `0x${string}` | null;
845
+ }) & {};
846
+ type: "transaction";
847
+ };
848
+ readonly transactionReceipt: {
849
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
850
+ feeCurrency: `0x${string}` | null;
851
+ gatewayFee: `0x${string}` | null;
852
+ gatewayFeeRecipient: `0x${string}` | null;
853
+ }) => {
854
+ blockHash: `0x${string}`;
855
+ blockNumber: bigint;
856
+ contractAddress: `0x${string}` | null;
857
+ cumulativeGasUsed: bigint;
858
+ effectiveGasPrice: bigint;
859
+ from: `0x${string}`;
860
+ gasUsed: bigint;
861
+ logs: import("../index.js").Log<bigint, number>[];
862
+ logsBloom: `0x${string}`;
863
+ status: "success" | "reverted";
864
+ to: `0x${string}` | null;
865
+ transactionHash: `0x${string}`;
866
+ transactionIndex: number;
867
+ type: import("../index.js").TransactionType;
868
+ feeCurrency: `0x${string}` | null;
869
+ gatewayFee: bigint | null;
870
+ gatewayFeeRecipient: `0x${string}` | null;
871
+ } & {};
872
+ type: "transactionReceipt";
873
+ };
874
+ readonly transactionRequest: {
875
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
876
+ feeCurrency?: `0x${string}` | undefined;
877
+ gatewayFee?: bigint | undefined;
878
+ gatewayFeeRecipient?: `0x${string}` | undefined;
879
+ }) => ({
880
+ data?: `0x${string}` | undefined;
881
+ from: `0x${string}`;
882
+ gas?: `0x${string}` | undefined;
883
+ nonce?: `0x${string}` | undefined;
884
+ to?: `0x${string}` | undefined;
885
+ value?: `0x${string}` | undefined;
886
+ gasPrice?: `0x${string}` | undefined;
887
+ maxFeePerGas?: undefined;
888
+ maxPriorityFeePerGas?: undefined;
889
+ accessList?: undefined;
890
+ feeCurrency: `0x${string}` | undefined;
891
+ gatewayFee: `0x${string}` | undefined;
892
+ gatewayFeeRecipient: `0x${string}` | undefined;
893
+ } | {
894
+ data?: `0x${string}` | undefined;
895
+ from: `0x${string}`;
896
+ gas?: `0x${string}` | undefined;
897
+ nonce?: `0x${string}` | undefined;
898
+ to?: `0x${string}` | undefined;
899
+ value?: `0x${string}` | undefined;
900
+ gasPrice?: `0x${string}` | undefined;
901
+ maxFeePerGas?: undefined;
902
+ maxPriorityFeePerGas?: undefined;
903
+ accessList?: import("../index.js").AccessList | undefined;
904
+ feeCurrency: `0x${string}` | undefined;
905
+ gatewayFee: `0x${string}` | undefined;
906
+ gatewayFeeRecipient: `0x${string}` | undefined;
907
+ } | {
908
+ data?: `0x${string}` | undefined;
909
+ from: `0x${string}`;
910
+ gas?: `0x${string}` | undefined;
911
+ nonce?: `0x${string}` | undefined;
912
+ to?: `0x${string}` | undefined;
913
+ value?: `0x${string}` | undefined;
914
+ gasPrice?: undefined;
915
+ maxFeePerGas?: `0x${string}` | undefined;
916
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
917
+ accessList?: import("../index.js").AccessList | undefined;
918
+ feeCurrency: `0x${string}` | undefined;
919
+ gatewayFee: `0x${string}` | undefined;
920
+ gatewayFeeRecipient: `0x${string}` | undefined;
921
+ }) & {};
922
+ type: "transactionRequest";
923
+ };
900
924
  }> | undefined;
901
925
  };
902
926
  export declare const celoAlfajores: {
@@ -938,398 +962,422 @@ export declare const celoAlfajores: {
938
962
  readonly testnet: true;
939
963
  } & {
940
964
  formatters: {
941
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
942
- randomness: {
943
- committed: `0x${string}`;
944
- revealed: `0x${string}`;
965
+ readonly block: {
966
+ format: (args: Partial<import("../index.js").RpcBlock> & {
967
+ randomness: {
968
+ committed: `0x${string}`;
969
+ revealed: `0x${string}`;
970
+ };
971
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
972
+ feeCurrency: `0x${string}` | null;
973
+ gatewayFee: `0x${string}` | null;
974
+ gatewayFeeRecipient: `0x${string}` | null;
975
+ })[];
976
+ }) => {
977
+ baseFeePerGas: bigint | null;
978
+ difficulty: bigint;
979
+ extraData: `0x${string}`;
980
+ gasLimit: bigint;
981
+ gasUsed: bigint;
982
+ hash: `0x${string}` | null;
983
+ logsBloom: `0x${string}` | null;
984
+ miner: `0x${string}`;
985
+ mixHash: `0x${string}`;
986
+ nonce: `0x${string}` | null;
987
+ number: bigint | null;
988
+ parentHash: `0x${string}`;
989
+ receiptsRoot: `0x${string}`;
990
+ sealFields: `0x${string}`[];
991
+ sha3Uncles: `0x${string}`;
992
+ size: bigint;
993
+ stateRoot: `0x${string}`;
994
+ timestamp: bigint;
995
+ totalDifficulty: bigint | null;
996
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
997
+ feeCurrency: `0x${string}` | null;
998
+ gatewayFee: bigint | null;
999
+ gatewayFeeRecipient: `0x${string}` | null;
1000
+ })[];
1001
+ transactionsRoot: `0x${string}`;
1002
+ uncles: `0x${string}`[];
1003
+ randomness: {
1004
+ committed: `0x${string}`;
1005
+ revealed: `0x${string}`;
1006
+ };
1007
+ } & {
1008
+ nonce: never;
1009
+ difficulty: never;
1010
+ gasLimit: never;
1011
+ mixHash: never;
1012
+ uncles: never;
945
1013
  };
946
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1014
+ type: "block";
1015
+ };
1016
+ readonly transaction: {
1017
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
947
1018
  feeCurrency: `0x${string}` | null;
948
1019
  gatewayFee: `0x${string}` | null;
949
1020
  gatewayFeeRecipient: `0x${string}` | null;
950
- })[];
951
- }) => {
952
- baseFeePerGas: bigint | null;
953
- difficulty: bigint;
954
- extraData: `0x${string}`;
955
- gasLimit: bigint;
956
- gasUsed: bigint;
957
- hash: `0x${string}` | null;
958
- logsBloom: `0x${string}` | null;
959
- miner: `0x${string}`;
960
- mixHash: `0x${string}`;
961
- nonce: `0x${string}` | null;
962
- number: bigint | null;
963
- parentHash: `0x${string}`;
964
- receiptsRoot: `0x${string}`;
965
- sealFields: `0x${string}`[];
966
- sha3Uncles: `0x${string}`;
967
- size: bigint;
968
- stateRoot: `0x${string}`;
969
- timestamp: bigint;
970
- totalDifficulty: bigint | null;
971
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1021
+ }) => ({
1022
+ blockHash: `0x${string}` | null;
1023
+ blockNumber: bigint | null;
1024
+ from: `0x${string}`;
1025
+ gas: bigint;
1026
+ hash: `0x${string}`;
1027
+ input: `0x${string}`;
1028
+ nonce: number;
1029
+ r: `0x${string}`;
1030
+ s: `0x${string}`;
1031
+ to: `0x${string}` | null;
1032
+ transactionIndex: number | null;
1033
+ typeHex: `0x${string}` | null;
1034
+ v: bigint;
1035
+ value: bigint;
1036
+ gasPrice: bigint;
1037
+ maxFeePerGas?: undefined;
1038
+ maxPriorityFeePerGas?: undefined;
1039
+ accessList?: undefined;
1040
+ chainId?: number | undefined;
1041
+ type: "legacy";
972
1042
  feeCurrency: `0x${string}` | null;
973
1043
  gatewayFee: bigint | null;
974
1044
  gatewayFeeRecipient: `0x${string}` | null;
975
- })[];
976
- transactionsRoot: `0x${string}`;
977
- uncles: `0x${string}`[];
978
- randomness: {
979
- committed: `0x${string}`;
980
- revealed: `0x${string}`;
981
- };
982
- } & {
983
- nonce: never;
984
- difficulty: never;
985
- gasLimit: never;
986
- mixHash: never;
987
- uncles: never;
988
- };
989
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
990
- feeCurrency: `0x${string}` | null;
991
- gatewayFee: `0x${string}` | null;
992
- gatewayFeeRecipient: `0x${string}` | null;
993
- }) => ({
994
- blockHash: `0x${string}` | null;
995
- blockNumber: bigint | null;
996
- from: `0x${string}`;
997
- gas: bigint;
998
- hash: `0x${string}`;
999
- input: `0x${string}`;
1000
- nonce: number;
1001
- r: `0x${string}`;
1002
- s: `0x${string}`;
1003
- to: `0x${string}` | null;
1004
- transactionIndex: number | null;
1005
- typeHex: `0x${string}` | null;
1006
- v: bigint;
1007
- value: bigint;
1008
- gasPrice: bigint;
1009
- maxFeePerGas?: undefined;
1010
- maxPriorityFeePerGas?: undefined;
1011
- accessList?: undefined;
1012
- chainId?: number | undefined;
1013
- type: "legacy";
1014
- feeCurrency: `0x${string}` | null;
1015
- gatewayFee: bigint | null;
1016
- gatewayFeeRecipient: `0x${string}` | null;
1017
- } | {
1018
- blockHash: `0x${string}` | null;
1019
- blockNumber: bigint | null;
1020
- from: `0x${string}`;
1021
- gas: bigint;
1022
- hash: `0x${string}`;
1023
- input: `0x${string}`;
1024
- nonce: number;
1025
- r: `0x${string}`;
1026
- s: `0x${string}`;
1027
- to: `0x${string}` | null;
1028
- transactionIndex: number | null;
1029
- typeHex: `0x${string}` | null;
1030
- v: bigint;
1031
- value: bigint;
1032
- gasPrice: bigint;
1033
- maxFeePerGas?: undefined;
1034
- maxPriorityFeePerGas?: undefined;
1035
- accessList: import("../index.js").AccessList;
1036
- chainId: number;
1037
- type: "eip2930";
1038
- feeCurrency: `0x${string}` | null;
1039
- gatewayFee: bigint | null;
1040
- gatewayFeeRecipient: `0x${string}` | null;
1041
- } | {
1042
- blockHash: `0x${string}` | null;
1043
- blockNumber: bigint | null;
1044
- from: `0x${string}`;
1045
- gas: bigint;
1046
- hash: `0x${string}`;
1047
- input: `0x${string}`;
1048
- nonce: number;
1049
- r: `0x${string}`;
1050
- s: `0x${string}`;
1051
- to: `0x${string}` | null;
1052
- transactionIndex: number | null;
1053
- typeHex: `0x${string}` | null;
1054
- v: bigint;
1055
- value: bigint;
1056
- gasPrice?: undefined;
1057
- maxFeePerGas: bigint;
1058
- maxPriorityFeePerGas: bigint;
1059
- accessList: import("../index.js").AccessList;
1060
- chainId: number;
1061
- type: "eip1559";
1062
- feeCurrency: `0x${string}` | null;
1063
- gatewayFee: bigint | null;
1064
- gatewayFeeRecipient: `0x${string}` | null;
1065
- }) & {};
1066
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1067
- feeCurrency: `0x${string}` | null;
1068
- gatewayFee: `0x${string}` | null;
1069
- gatewayFeeRecipient: `0x${string}` | null;
1070
- }) => {
1071
- blockHash: `0x${string}`;
1072
- blockNumber: bigint;
1073
- contractAddress: `0x${string}` | null;
1074
- cumulativeGasUsed: bigint;
1075
- effectiveGasPrice: bigint;
1076
- from: `0x${string}`;
1077
- gasUsed: bigint;
1078
- logs: import("../index.js").Log<bigint, number>[];
1079
- logsBloom: `0x${string}`;
1080
- status: "success" | "reverted";
1081
- to: `0x${string}` | null;
1082
- transactionHash: `0x${string}`;
1083
- transactionIndex: number;
1084
- type: import("../index.js").TransactionType;
1085
- feeCurrency: `0x${string}` | null;
1086
- gatewayFee: bigint | null;
1087
- gatewayFeeRecipient: `0x${string}` | null;
1088
- } & {};
1089
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1090
- feeCurrency?: `0x${string}` | undefined;
1091
- gatewayFee?: bigint | undefined;
1092
- gatewayFeeRecipient?: `0x${string}` | undefined;
1093
- }) => ({
1094
- data?: `0x${string}` | undefined;
1095
- from: `0x${string}`;
1096
- gas?: `0x${string}` | undefined;
1097
- nonce?: `0x${string}` | undefined;
1098
- to?: `0x${string}` | undefined;
1099
- value?: `0x${string}` | undefined;
1100
- gasPrice?: `0x${string}` | undefined;
1101
- maxFeePerGas?: undefined;
1102
- maxPriorityFeePerGas?: undefined;
1103
- accessList?: undefined;
1104
- feeCurrency: `0x${string}` | undefined;
1105
- gatewayFee: `0x${string}` | undefined;
1106
- gatewayFeeRecipient: `0x${string}` | undefined;
1107
- } | {
1108
- data?: `0x${string}` | undefined;
1109
- from: `0x${string}`;
1110
- gas?: `0x${string}` | undefined;
1111
- nonce?: `0x${string}` | undefined;
1112
- to?: `0x${string}` | undefined;
1113
- value?: `0x${string}` | undefined;
1114
- gasPrice?: `0x${string}` | undefined;
1115
- maxFeePerGas?: undefined;
1116
- maxPriorityFeePerGas?: undefined;
1117
- accessList?: import("../index.js").AccessList | undefined;
1118
- feeCurrency: `0x${string}` | undefined;
1119
- gatewayFee: `0x${string}` | undefined;
1120
- gatewayFeeRecipient: `0x${string}` | undefined;
1121
- } | {
1122
- data?: `0x${string}` | undefined;
1123
- from: `0x${string}`;
1124
- gas?: `0x${string}` | undefined;
1125
- nonce?: `0x${string}` | undefined;
1126
- to?: `0x${string}` | undefined;
1127
- value?: `0x${string}` | undefined;
1128
- gasPrice?: undefined;
1129
- maxFeePerGas?: `0x${string}` | undefined;
1130
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1131
- accessList?: import("../index.js").AccessList | undefined;
1132
- feeCurrency: `0x${string}` | undefined;
1133
- gatewayFee: `0x${string}` | undefined;
1134
- gatewayFeeRecipient: `0x${string}` | undefined;
1135
- }) & {};
1045
+ } | {
1046
+ blockHash: `0x${string}` | null;
1047
+ blockNumber: bigint | null;
1048
+ from: `0x${string}`;
1049
+ gas: bigint;
1050
+ hash: `0x${string}`;
1051
+ input: `0x${string}`;
1052
+ nonce: number;
1053
+ r: `0x${string}`;
1054
+ s: `0x${string}`;
1055
+ to: `0x${string}` | null;
1056
+ transactionIndex: number | null;
1057
+ typeHex: `0x${string}` | null;
1058
+ v: bigint;
1059
+ value: bigint;
1060
+ gasPrice: bigint;
1061
+ maxFeePerGas?: undefined;
1062
+ maxPriorityFeePerGas?: undefined;
1063
+ accessList: import("../index.js").AccessList;
1064
+ chainId: number;
1065
+ type: "eip2930";
1066
+ feeCurrency: `0x${string}` | null;
1067
+ gatewayFee: bigint | null;
1068
+ gatewayFeeRecipient: `0x${string}` | null;
1069
+ } | {
1070
+ blockHash: `0x${string}` | null;
1071
+ blockNumber: bigint | null;
1072
+ from: `0x${string}`;
1073
+ gas: bigint;
1074
+ hash: `0x${string}`;
1075
+ input: `0x${string}`;
1076
+ nonce: number;
1077
+ r: `0x${string}`;
1078
+ s: `0x${string}`;
1079
+ to: `0x${string}` | null;
1080
+ transactionIndex: number | null;
1081
+ typeHex: `0x${string}` | null;
1082
+ v: bigint;
1083
+ value: bigint;
1084
+ gasPrice?: undefined;
1085
+ maxFeePerGas: bigint;
1086
+ maxPriorityFeePerGas: bigint;
1087
+ accessList: import("../index.js").AccessList;
1088
+ chainId: number;
1089
+ type: "eip1559";
1090
+ feeCurrency: `0x${string}` | null;
1091
+ gatewayFee: bigint | null;
1092
+ gatewayFeeRecipient: `0x${string}` | null;
1093
+ }) & {};
1094
+ type: "transaction";
1095
+ };
1096
+ readonly transactionReceipt: {
1097
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1098
+ feeCurrency: `0x${string}` | null;
1099
+ gatewayFee: `0x${string}` | null;
1100
+ gatewayFeeRecipient: `0x${string}` | null;
1101
+ }) => {
1102
+ blockHash: `0x${string}`;
1103
+ blockNumber: bigint;
1104
+ contractAddress: `0x${string}` | null;
1105
+ cumulativeGasUsed: bigint;
1106
+ effectiveGasPrice: bigint;
1107
+ from: `0x${string}`;
1108
+ gasUsed: bigint;
1109
+ logs: import("../index.js").Log<bigint, number>[];
1110
+ logsBloom: `0x${string}`;
1111
+ status: "success" | "reverted";
1112
+ to: `0x${string}` | null;
1113
+ transactionHash: `0x${string}`;
1114
+ transactionIndex: number;
1115
+ type: import("../index.js").TransactionType;
1116
+ feeCurrency: `0x${string}` | null;
1117
+ gatewayFee: bigint | null;
1118
+ gatewayFeeRecipient: `0x${string}` | null;
1119
+ } & {};
1120
+ type: "transactionReceipt";
1121
+ };
1122
+ readonly transactionRequest: {
1123
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1124
+ feeCurrency?: `0x${string}` | undefined;
1125
+ gatewayFee?: bigint | undefined;
1126
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1127
+ }) => ({
1128
+ data?: `0x${string}` | undefined;
1129
+ from: `0x${string}`;
1130
+ gas?: `0x${string}` | undefined;
1131
+ nonce?: `0x${string}` | undefined;
1132
+ to?: `0x${string}` | undefined;
1133
+ value?: `0x${string}` | undefined;
1134
+ gasPrice?: `0x${string}` | undefined;
1135
+ maxFeePerGas?: undefined;
1136
+ maxPriorityFeePerGas?: undefined;
1137
+ accessList?: undefined;
1138
+ feeCurrency: `0x${string}` | undefined;
1139
+ gatewayFee: `0x${string}` | undefined;
1140
+ gatewayFeeRecipient: `0x${string}` | undefined;
1141
+ } | {
1142
+ data?: `0x${string}` | undefined;
1143
+ from: `0x${string}`;
1144
+ gas?: `0x${string}` | undefined;
1145
+ nonce?: `0x${string}` | undefined;
1146
+ to?: `0x${string}` | undefined;
1147
+ value?: `0x${string}` | undefined;
1148
+ gasPrice?: `0x${string}` | undefined;
1149
+ maxFeePerGas?: undefined;
1150
+ maxPriorityFeePerGas?: undefined;
1151
+ accessList?: import("../index.js").AccessList | undefined;
1152
+ feeCurrency: `0x${string}` | undefined;
1153
+ gatewayFee: `0x${string}` | undefined;
1154
+ gatewayFeeRecipient: `0x${string}` | undefined;
1155
+ } | {
1156
+ data?: `0x${string}` | undefined;
1157
+ from: `0x${string}`;
1158
+ gas?: `0x${string}` | undefined;
1159
+ nonce?: `0x${string}` | undefined;
1160
+ to?: `0x${string}` | undefined;
1161
+ value?: `0x${string}` | undefined;
1162
+ gasPrice?: undefined;
1163
+ maxFeePerGas?: `0x${string}` | undefined;
1164
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1165
+ accessList?: import("../index.js").AccessList | undefined;
1166
+ feeCurrency: `0x${string}` | undefined;
1167
+ gatewayFee: `0x${string}` | undefined;
1168
+ gatewayFeeRecipient: `0x${string}` | undefined;
1169
+ }) & {};
1170
+ type: "transactionRequest";
1171
+ };
1136
1172
  } | undefined;
1137
1173
  serializers: import("../index.js").Serializers<{
1138
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
1139
- randomness: {
1140
- committed: `0x${string}`;
1141
- revealed: `0x${string}`;
1174
+ readonly block: {
1175
+ format: (args: Partial<import("../index.js").RpcBlock> & {
1176
+ randomness: {
1177
+ committed: `0x${string}`;
1178
+ revealed: `0x${string}`;
1179
+ };
1180
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1181
+ feeCurrency: `0x${string}` | null;
1182
+ gatewayFee: `0x${string}` | null;
1183
+ gatewayFeeRecipient: `0x${string}` | null;
1184
+ })[];
1185
+ }) => {
1186
+ baseFeePerGas: bigint | null;
1187
+ difficulty: bigint;
1188
+ extraData: `0x${string}`;
1189
+ gasLimit: bigint;
1190
+ gasUsed: bigint;
1191
+ hash: `0x${string}` | null;
1192
+ logsBloom: `0x${string}` | null;
1193
+ miner: `0x${string}`;
1194
+ mixHash: `0x${string}`;
1195
+ nonce: `0x${string}` | null;
1196
+ number: bigint | null;
1197
+ parentHash: `0x${string}`;
1198
+ receiptsRoot: `0x${string}`;
1199
+ sealFields: `0x${string}`[];
1200
+ sha3Uncles: `0x${string}`;
1201
+ size: bigint;
1202
+ stateRoot: `0x${string}`;
1203
+ timestamp: bigint;
1204
+ totalDifficulty: bigint | null;
1205
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1206
+ feeCurrency: `0x${string}` | null;
1207
+ gatewayFee: bigint | null;
1208
+ gatewayFeeRecipient: `0x${string}` | null;
1209
+ })[];
1210
+ transactionsRoot: `0x${string}`;
1211
+ uncles: `0x${string}`[];
1212
+ randomness: {
1213
+ committed: `0x${string}`;
1214
+ revealed: `0x${string}`;
1215
+ };
1216
+ } & {
1217
+ nonce: never;
1218
+ difficulty: never;
1219
+ gasLimit: never;
1220
+ mixHash: never;
1221
+ uncles: never;
1142
1222
  };
1143
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1223
+ type: "block";
1224
+ };
1225
+ readonly transaction: {
1226
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
1144
1227
  feeCurrency: `0x${string}` | null;
1145
1228
  gatewayFee: `0x${string}` | null;
1146
1229
  gatewayFeeRecipient: `0x${string}` | null;
1147
- })[];
1148
- }) => {
1149
- baseFeePerGas: bigint | null;
1150
- difficulty: bigint;
1151
- extraData: `0x${string}`;
1152
- gasLimit: bigint;
1153
- gasUsed: bigint;
1154
- hash: `0x${string}` | null;
1155
- logsBloom: `0x${string}` | null;
1156
- miner: `0x${string}`;
1157
- mixHash: `0x${string}`;
1158
- nonce: `0x${string}` | null;
1159
- number: bigint | null;
1160
- parentHash: `0x${string}`;
1161
- receiptsRoot: `0x${string}`;
1162
- sealFields: `0x${string}`[];
1163
- sha3Uncles: `0x${string}`;
1164
- size: bigint;
1165
- stateRoot: `0x${string}`;
1166
- timestamp: bigint;
1167
- totalDifficulty: bigint | null;
1168
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1230
+ }) => ({
1231
+ blockHash: `0x${string}` | null;
1232
+ blockNumber: bigint | null;
1233
+ from: `0x${string}`;
1234
+ gas: bigint;
1235
+ hash: `0x${string}`;
1236
+ input: `0x${string}`;
1237
+ nonce: number;
1238
+ r: `0x${string}`;
1239
+ s: `0x${string}`;
1240
+ to: `0x${string}` | null;
1241
+ transactionIndex: number | null;
1242
+ typeHex: `0x${string}` | null;
1243
+ v: bigint;
1244
+ value: bigint;
1245
+ gasPrice: bigint;
1246
+ maxFeePerGas?: undefined;
1247
+ maxPriorityFeePerGas?: undefined;
1248
+ accessList?: undefined;
1249
+ chainId?: number | undefined;
1250
+ type: "legacy";
1169
1251
  feeCurrency: `0x${string}` | null;
1170
1252
  gatewayFee: bigint | null;
1171
1253
  gatewayFeeRecipient: `0x${string}` | null;
1172
- })[];
1173
- transactionsRoot: `0x${string}`;
1174
- uncles: `0x${string}`[];
1175
- randomness: {
1176
- committed: `0x${string}`;
1177
- revealed: `0x${string}`;
1178
- };
1179
- } & {
1180
- nonce: never;
1181
- difficulty: never;
1182
- gasLimit: never;
1183
- mixHash: never;
1184
- uncles: never;
1185
- };
1186
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
1187
- feeCurrency: `0x${string}` | null;
1188
- gatewayFee: `0x${string}` | null;
1189
- gatewayFeeRecipient: `0x${string}` | null;
1190
- }) => ({
1191
- blockHash: `0x${string}` | null;
1192
- blockNumber: bigint | null;
1193
- from: `0x${string}`;
1194
- gas: bigint;
1195
- hash: `0x${string}`;
1196
- input: `0x${string}`;
1197
- nonce: number;
1198
- r: `0x${string}`;
1199
- s: `0x${string}`;
1200
- to: `0x${string}` | null;
1201
- transactionIndex: number | null;
1202
- typeHex: `0x${string}` | null;
1203
- v: bigint;
1204
- value: bigint;
1205
- gasPrice: bigint;
1206
- maxFeePerGas?: undefined;
1207
- maxPriorityFeePerGas?: undefined;
1208
- accessList?: undefined;
1209
- chainId?: number | undefined;
1210
- type: "legacy";
1211
- feeCurrency: `0x${string}` | null;
1212
- gatewayFee: bigint | null;
1213
- gatewayFeeRecipient: `0x${string}` | null;
1214
- } | {
1215
- blockHash: `0x${string}` | null;
1216
- blockNumber: bigint | null;
1217
- from: `0x${string}`;
1218
- gas: bigint;
1219
- hash: `0x${string}`;
1220
- input: `0x${string}`;
1221
- nonce: number;
1222
- r: `0x${string}`;
1223
- s: `0x${string}`;
1224
- to: `0x${string}` | null;
1225
- transactionIndex: number | null;
1226
- typeHex: `0x${string}` | null;
1227
- v: bigint;
1228
- value: bigint;
1229
- gasPrice: bigint;
1230
- maxFeePerGas?: undefined;
1231
- maxPriorityFeePerGas?: undefined;
1232
- accessList: import("../index.js").AccessList;
1233
- chainId: number;
1234
- type: "eip2930";
1235
- feeCurrency: `0x${string}` | null;
1236
- gatewayFee: bigint | null;
1237
- gatewayFeeRecipient: `0x${string}` | null;
1238
- } | {
1239
- blockHash: `0x${string}` | null;
1240
- blockNumber: bigint | null;
1241
- from: `0x${string}`;
1242
- gas: bigint;
1243
- hash: `0x${string}`;
1244
- input: `0x${string}`;
1245
- nonce: number;
1246
- r: `0x${string}`;
1247
- s: `0x${string}`;
1248
- to: `0x${string}` | null;
1249
- transactionIndex: number | null;
1250
- typeHex: `0x${string}` | null;
1251
- v: bigint;
1252
- value: bigint;
1253
- gasPrice?: undefined;
1254
- maxFeePerGas: bigint;
1255
- maxPriorityFeePerGas: bigint;
1256
- accessList: import("../index.js").AccessList;
1257
- chainId: number;
1258
- type: "eip1559";
1259
- feeCurrency: `0x${string}` | null;
1260
- gatewayFee: bigint | null;
1261
- gatewayFeeRecipient: `0x${string}` | null;
1262
- }) & {};
1263
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1264
- feeCurrency: `0x${string}` | null;
1265
- gatewayFee: `0x${string}` | null;
1266
- gatewayFeeRecipient: `0x${string}` | null;
1267
- }) => {
1268
- blockHash: `0x${string}`;
1269
- blockNumber: bigint;
1270
- contractAddress: `0x${string}` | null;
1271
- cumulativeGasUsed: bigint;
1272
- effectiveGasPrice: bigint;
1273
- from: `0x${string}`;
1274
- gasUsed: bigint;
1275
- logs: import("../index.js").Log<bigint, number>[];
1276
- logsBloom: `0x${string}`;
1277
- status: "success" | "reverted";
1278
- to: `0x${string}` | null;
1279
- transactionHash: `0x${string}`;
1280
- transactionIndex: number;
1281
- type: import("../index.js").TransactionType;
1282
- feeCurrency: `0x${string}` | null;
1283
- gatewayFee: bigint | null;
1284
- gatewayFeeRecipient: `0x${string}` | null;
1285
- } & {};
1286
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1287
- feeCurrency?: `0x${string}` | undefined;
1288
- gatewayFee?: bigint | undefined;
1289
- gatewayFeeRecipient?: `0x${string}` | undefined;
1290
- }) => ({
1291
- data?: `0x${string}` | undefined;
1292
- from: `0x${string}`;
1293
- gas?: `0x${string}` | undefined;
1294
- nonce?: `0x${string}` | undefined;
1295
- to?: `0x${string}` | undefined;
1296
- value?: `0x${string}` | undefined;
1297
- gasPrice?: `0x${string}` | undefined;
1298
- maxFeePerGas?: undefined;
1299
- maxPriorityFeePerGas?: undefined;
1300
- accessList?: undefined;
1301
- feeCurrency: `0x${string}` | undefined;
1302
- gatewayFee: `0x${string}` | undefined;
1303
- gatewayFeeRecipient: `0x${string}` | undefined;
1304
- } | {
1305
- data?: `0x${string}` | undefined;
1306
- from: `0x${string}`;
1307
- gas?: `0x${string}` | undefined;
1308
- nonce?: `0x${string}` | undefined;
1309
- to?: `0x${string}` | undefined;
1310
- value?: `0x${string}` | undefined;
1311
- gasPrice?: `0x${string}` | undefined;
1312
- maxFeePerGas?: undefined;
1313
- maxPriorityFeePerGas?: undefined;
1314
- accessList?: import("../index.js").AccessList | undefined;
1315
- feeCurrency: `0x${string}` | undefined;
1316
- gatewayFee: `0x${string}` | undefined;
1317
- gatewayFeeRecipient: `0x${string}` | undefined;
1318
- } | {
1319
- data?: `0x${string}` | undefined;
1320
- from: `0x${string}`;
1321
- gas?: `0x${string}` | undefined;
1322
- nonce?: `0x${string}` | undefined;
1323
- to?: `0x${string}` | undefined;
1324
- value?: `0x${string}` | undefined;
1325
- gasPrice?: undefined;
1326
- maxFeePerGas?: `0x${string}` | undefined;
1327
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1328
- accessList?: import("../index.js").AccessList | undefined;
1329
- feeCurrency: `0x${string}` | undefined;
1330
- gatewayFee: `0x${string}` | undefined;
1331
- gatewayFeeRecipient: `0x${string}` | undefined;
1332
- }) & {};
1254
+ } | {
1255
+ blockHash: `0x${string}` | null;
1256
+ blockNumber: bigint | null;
1257
+ from: `0x${string}`;
1258
+ gas: bigint;
1259
+ hash: `0x${string}`;
1260
+ input: `0x${string}`;
1261
+ nonce: number;
1262
+ r: `0x${string}`;
1263
+ s: `0x${string}`;
1264
+ to: `0x${string}` | null;
1265
+ transactionIndex: number | null;
1266
+ typeHex: `0x${string}` | null;
1267
+ v: bigint;
1268
+ value: bigint;
1269
+ gasPrice: bigint;
1270
+ maxFeePerGas?: undefined;
1271
+ maxPriorityFeePerGas?: undefined;
1272
+ accessList: import("../index.js").AccessList;
1273
+ chainId: number;
1274
+ type: "eip2930";
1275
+ feeCurrency: `0x${string}` | null;
1276
+ gatewayFee: bigint | null;
1277
+ gatewayFeeRecipient: `0x${string}` | null;
1278
+ } | {
1279
+ blockHash: `0x${string}` | null;
1280
+ blockNumber: bigint | null;
1281
+ from: `0x${string}`;
1282
+ gas: bigint;
1283
+ hash: `0x${string}`;
1284
+ input: `0x${string}`;
1285
+ nonce: number;
1286
+ r: `0x${string}`;
1287
+ s: `0x${string}`;
1288
+ to: `0x${string}` | null;
1289
+ transactionIndex: number | null;
1290
+ typeHex: `0x${string}` | null;
1291
+ v: bigint;
1292
+ value: bigint;
1293
+ gasPrice?: undefined;
1294
+ maxFeePerGas: bigint;
1295
+ maxPriorityFeePerGas: bigint;
1296
+ accessList: import("../index.js").AccessList;
1297
+ chainId: number;
1298
+ type: "eip1559";
1299
+ feeCurrency: `0x${string}` | null;
1300
+ gatewayFee: bigint | null;
1301
+ gatewayFeeRecipient: `0x${string}` | null;
1302
+ }) & {};
1303
+ type: "transaction";
1304
+ };
1305
+ readonly transactionReceipt: {
1306
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1307
+ feeCurrency: `0x${string}` | null;
1308
+ gatewayFee: `0x${string}` | null;
1309
+ gatewayFeeRecipient: `0x${string}` | null;
1310
+ }) => {
1311
+ blockHash: `0x${string}`;
1312
+ blockNumber: bigint;
1313
+ contractAddress: `0x${string}` | null;
1314
+ cumulativeGasUsed: bigint;
1315
+ effectiveGasPrice: bigint;
1316
+ from: `0x${string}`;
1317
+ gasUsed: bigint;
1318
+ logs: import("../index.js").Log<bigint, number>[];
1319
+ logsBloom: `0x${string}`;
1320
+ status: "success" | "reverted";
1321
+ to: `0x${string}` | null;
1322
+ transactionHash: `0x${string}`;
1323
+ transactionIndex: number;
1324
+ type: import("../index.js").TransactionType;
1325
+ feeCurrency: `0x${string}` | null;
1326
+ gatewayFee: bigint | null;
1327
+ gatewayFeeRecipient: `0x${string}` | null;
1328
+ } & {};
1329
+ type: "transactionReceipt";
1330
+ };
1331
+ readonly transactionRequest: {
1332
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1333
+ feeCurrency?: `0x${string}` | undefined;
1334
+ gatewayFee?: bigint | undefined;
1335
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1336
+ }) => ({
1337
+ data?: `0x${string}` | undefined;
1338
+ from: `0x${string}`;
1339
+ gas?: `0x${string}` | undefined;
1340
+ nonce?: `0x${string}` | undefined;
1341
+ to?: `0x${string}` | undefined;
1342
+ value?: `0x${string}` | undefined;
1343
+ gasPrice?: `0x${string}` | undefined;
1344
+ maxFeePerGas?: undefined;
1345
+ maxPriorityFeePerGas?: undefined;
1346
+ accessList?: undefined;
1347
+ feeCurrency: `0x${string}` | undefined;
1348
+ gatewayFee: `0x${string}` | undefined;
1349
+ gatewayFeeRecipient: `0x${string}` | undefined;
1350
+ } | {
1351
+ data?: `0x${string}` | undefined;
1352
+ from: `0x${string}`;
1353
+ gas?: `0x${string}` | undefined;
1354
+ nonce?: `0x${string}` | undefined;
1355
+ to?: `0x${string}` | undefined;
1356
+ value?: `0x${string}` | undefined;
1357
+ gasPrice?: `0x${string}` | undefined;
1358
+ maxFeePerGas?: undefined;
1359
+ maxPriorityFeePerGas?: undefined;
1360
+ accessList?: import("../index.js").AccessList | undefined;
1361
+ feeCurrency: `0x${string}` | undefined;
1362
+ gatewayFee: `0x${string}` | undefined;
1363
+ gatewayFeeRecipient: `0x${string}` | undefined;
1364
+ } | {
1365
+ data?: `0x${string}` | undefined;
1366
+ from: `0x${string}`;
1367
+ gas?: `0x${string}` | undefined;
1368
+ nonce?: `0x${string}` | undefined;
1369
+ to?: `0x${string}` | undefined;
1370
+ value?: `0x${string}` | undefined;
1371
+ gasPrice?: undefined;
1372
+ maxFeePerGas?: `0x${string}` | undefined;
1373
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1374
+ accessList?: import("../index.js").AccessList | undefined;
1375
+ feeCurrency: `0x${string}` | undefined;
1376
+ gatewayFee: `0x${string}` | undefined;
1377
+ gatewayFeeRecipient: `0x${string}` | undefined;
1378
+ }) & {};
1379
+ type: "transactionRequest";
1380
+ };
1333
1381
  }> | undefined;
1334
1382
  };
1335
1383
  export declare const celoCannoli: {
@@ -1364,398 +1412,422 @@ export declare const celoCannoli: {
1364
1412
  readonly testnet: true;
1365
1413
  } & {
1366
1414
  formatters: {
1367
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
1368
- randomness: {
1369
- committed: `0x${string}`;
1370
- revealed: `0x${string}`;
1415
+ readonly block: {
1416
+ format: (args: Partial<import("../index.js").RpcBlock> & {
1417
+ randomness: {
1418
+ committed: `0x${string}`;
1419
+ revealed: `0x${string}`;
1420
+ };
1421
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1422
+ feeCurrency: `0x${string}` | null;
1423
+ gatewayFee: `0x${string}` | null;
1424
+ gatewayFeeRecipient: `0x${string}` | null;
1425
+ })[];
1426
+ }) => {
1427
+ baseFeePerGas: bigint | null;
1428
+ difficulty: bigint;
1429
+ extraData: `0x${string}`;
1430
+ gasLimit: bigint;
1431
+ gasUsed: bigint;
1432
+ hash: `0x${string}` | null;
1433
+ logsBloom: `0x${string}` | null;
1434
+ miner: `0x${string}`;
1435
+ mixHash: `0x${string}`;
1436
+ nonce: `0x${string}` | null;
1437
+ number: bigint | null;
1438
+ parentHash: `0x${string}`;
1439
+ receiptsRoot: `0x${string}`;
1440
+ sealFields: `0x${string}`[];
1441
+ sha3Uncles: `0x${string}`;
1442
+ size: bigint;
1443
+ stateRoot: `0x${string}`;
1444
+ timestamp: bigint;
1445
+ totalDifficulty: bigint | null;
1446
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1447
+ feeCurrency: `0x${string}` | null;
1448
+ gatewayFee: bigint | null;
1449
+ gatewayFeeRecipient: `0x${string}` | null;
1450
+ })[];
1451
+ transactionsRoot: `0x${string}`;
1452
+ uncles: `0x${string}`[];
1453
+ randomness: {
1454
+ committed: `0x${string}`;
1455
+ revealed: `0x${string}`;
1456
+ };
1457
+ } & {
1458
+ nonce: never;
1459
+ difficulty: never;
1460
+ gasLimit: never;
1461
+ mixHash: never;
1462
+ uncles: never;
1371
1463
  };
1372
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1464
+ type: "block";
1465
+ };
1466
+ readonly transaction: {
1467
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
1373
1468
  feeCurrency: `0x${string}` | null;
1374
1469
  gatewayFee: `0x${string}` | null;
1375
1470
  gatewayFeeRecipient: `0x${string}` | null;
1376
- })[];
1377
- }) => {
1378
- baseFeePerGas: bigint | null;
1379
- difficulty: bigint;
1380
- extraData: `0x${string}`;
1381
- gasLimit: bigint;
1382
- gasUsed: bigint;
1383
- hash: `0x${string}` | null;
1384
- logsBloom: `0x${string}` | null;
1385
- miner: `0x${string}`;
1386
- mixHash: `0x${string}`;
1387
- nonce: `0x${string}` | null;
1388
- number: bigint | null;
1389
- parentHash: `0x${string}`;
1390
- receiptsRoot: `0x${string}`;
1391
- sealFields: `0x${string}`[];
1392
- sha3Uncles: `0x${string}`;
1393
- size: bigint;
1394
- stateRoot: `0x${string}`;
1395
- timestamp: bigint;
1396
- totalDifficulty: bigint | null;
1397
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1471
+ }) => ({
1472
+ blockHash: `0x${string}` | null;
1473
+ blockNumber: bigint | null;
1474
+ from: `0x${string}`;
1475
+ gas: bigint;
1476
+ hash: `0x${string}`;
1477
+ input: `0x${string}`;
1478
+ nonce: number;
1479
+ r: `0x${string}`;
1480
+ s: `0x${string}`;
1481
+ to: `0x${string}` | null;
1482
+ transactionIndex: number | null;
1483
+ typeHex: `0x${string}` | null;
1484
+ v: bigint;
1485
+ value: bigint;
1486
+ gasPrice: bigint;
1487
+ maxFeePerGas?: undefined;
1488
+ maxPriorityFeePerGas?: undefined;
1489
+ accessList?: undefined;
1490
+ chainId?: number | undefined;
1491
+ type: "legacy";
1398
1492
  feeCurrency: `0x${string}` | null;
1399
1493
  gatewayFee: bigint | null;
1400
1494
  gatewayFeeRecipient: `0x${string}` | null;
1401
- })[];
1402
- transactionsRoot: `0x${string}`;
1403
- uncles: `0x${string}`[];
1404
- randomness: {
1405
- committed: `0x${string}`;
1406
- revealed: `0x${string}`;
1407
- };
1408
- } & {
1409
- nonce: never;
1410
- difficulty: never;
1411
- gasLimit: never;
1412
- mixHash: never;
1413
- uncles: never;
1414
- };
1415
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
1416
- feeCurrency: `0x${string}` | null;
1417
- gatewayFee: `0x${string}` | null;
1418
- gatewayFeeRecipient: `0x${string}` | null;
1419
- }) => ({
1420
- blockHash: `0x${string}` | null;
1421
- blockNumber: bigint | null;
1422
- from: `0x${string}`;
1423
- gas: bigint;
1424
- hash: `0x${string}`;
1425
- input: `0x${string}`;
1426
- nonce: number;
1427
- r: `0x${string}`;
1428
- s: `0x${string}`;
1429
- to: `0x${string}` | null;
1430
- transactionIndex: number | null;
1431
- typeHex: `0x${string}` | null;
1432
- v: bigint;
1433
- value: bigint;
1434
- gasPrice: bigint;
1435
- maxFeePerGas?: undefined;
1436
- maxPriorityFeePerGas?: undefined;
1437
- accessList?: undefined;
1438
- chainId?: number | undefined;
1439
- type: "legacy";
1440
- feeCurrency: `0x${string}` | null;
1441
- gatewayFee: bigint | null;
1442
- gatewayFeeRecipient: `0x${string}` | null;
1443
- } | {
1444
- blockHash: `0x${string}` | null;
1445
- blockNumber: bigint | null;
1446
- from: `0x${string}`;
1447
- gas: bigint;
1448
- hash: `0x${string}`;
1449
- input: `0x${string}`;
1450
- nonce: number;
1451
- r: `0x${string}`;
1452
- s: `0x${string}`;
1453
- to: `0x${string}` | null;
1454
- transactionIndex: number | null;
1455
- typeHex: `0x${string}` | null;
1456
- v: bigint;
1457
- value: bigint;
1458
- gasPrice: bigint;
1459
- maxFeePerGas?: undefined;
1460
- maxPriorityFeePerGas?: undefined;
1461
- accessList: import("../index.js").AccessList;
1462
- chainId: number;
1463
- type: "eip2930";
1464
- feeCurrency: `0x${string}` | null;
1465
- gatewayFee: bigint | null;
1466
- gatewayFeeRecipient: `0x${string}` | null;
1467
- } | {
1468
- blockHash: `0x${string}` | null;
1469
- blockNumber: bigint | null;
1470
- from: `0x${string}`;
1471
- gas: bigint;
1472
- hash: `0x${string}`;
1473
- input: `0x${string}`;
1474
- nonce: number;
1475
- r: `0x${string}`;
1476
- s: `0x${string}`;
1477
- to: `0x${string}` | null;
1478
- transactionIndex: number | null;
1479
- typeHex: `0x${string}` | null;
1480
- v: bigint;
1481
- value: bigint;
1482
- gasPrice?: undefined;
1483
- maxFeePerGas: bigint;
1484
- maxPriorityFeePerGas: bigint;
1485
- accessList: import("../index.js").AccessList;
1486
- chainId: number;
1487
- type: "eip1559";
1488
- feeCurrency: `0x${string}` | null;
1489
- gatewayFee: bigint | null;
1490
- gatewayFeeRecipient: `0x${string}` | null;
1491
- }) & {};
1492
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1493
- feeCurrency: `0x${string}` | null;
1494
- gatewayFee: `0x${string}` | null;
1495
- gatewayFeeRecipient: `0x${string}` | null;
1496
- }) => {
1497
- blockHash: `0x${string}`;
1498
- blockNumber: bigint;
1499
- contractAddress: `0x${string}` | null;
1500
- cumulativeGasUsed: bigint;
1501
- effectiveGasPrice: bigint;
1502
- from: `0x${string}`;
1503
- gasUsed: bigint;
1504
- logs: import("../index.js").Log<bigint, number>[];
1505
- logsBloom: `0x${string}`;
1506
- status: "success" | "reverted";
1507
- to: `0x${string}` | null;
1508
- transactionHash: `0x${string}`;
1509
- transactionIndex: number;
1510
- type: import("../index.js").TransactionType;
1511
- feeCurrency: `0x${string}` | null;
1512
- gatewayFee: bigint | null;
1513
- gatewayFeeRecipient: `0x${string}` | null;
1514
- } & {};
1515
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1516
- feeCurrency?: `0x${string}` | undefined;
1517
- gatewayFee?: bigint | undefined;
1518
- gatewayFeeRecipient?: `0x${string}` | undefined;
1519
- }) => ({
1520
- data?: `0x${string}` | undefined;
1521
- from: `0x${string}`;
1522
- gas?: `0x${string}` | undefined;
1523
- nonce?: `0x${string}` | undefined;
1524
- to?: `0x${string}` | undefined;
1525
- value?: `0x${string}` | undefined;
1526
- gasPrice?: `0x${string}` | undefined;
1527
- maxFeePerGas?: undefined;
1528
- maxPriorityFeePerGas?: undefined;
1529
- accessList?: undefined;
1530
- feeCurrency: `0x${string}` | undefined;
1531
- gatewayFee: `0x${string}` | undefined;
1532
- gatewayFeeRecipient: `0x${string}` | undefined;
1533
- } | {
1534
- data?: `0x${string}` | undefined;
1535
- from: `0x${string}`;
1536
- gas?: `0x${string}` | undefined;
1537
- nonce?: `0x${string}` | undefined;
1538
- to?: `0x${string}` | undefined;
1539
- value?: `0x${string}` | undefined;
1540
- gasPrice?: `0x${string}` | undefined;
1541
- maxFeePerGas?: undefined;
1542
- maxPriorityFeePerGas?: undefined;
1543
- accessList?: import("../index.js").AccessList | undefined;
1544
- feeCurrency: `0x${string}` | undefined;
1545
- gatewayFee: `0x${string}` | undefined;
1546
- gatewayFeeRecipient: `0x${string}` | undefined;
1547
- } | {
1548
- data?: `0x${string}` | undefined;
1549
- from: `0x${string}`;
1550
- gas?: `0x${string}` | undefined;
1551
- nonce?: `0x${string}` | undefined;
1552
- to?: `0x${string}` | undefined;
1553
- value?: `0x${string}` | undefined;
1554
- gasPrice?: undefined;
1555
- maxFeePerGas?: `0x${string}` | undefined;
1556
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1557
- accessList?: import("../index.js").AccessList | undefined;
1558
- feeCurrency: `0x${string}` | undefined;
1559
- gatewayFee: `0x${string}` | undefined;
1560
- gatewayFeeRecipient: `0x${string}` | undefined;
1561
- }) & {};
1495
+ } | {
1496
+ blockHash: `0x${string}` | null;
1497
+ blockNumber: bigint | null;
1498
+ from: `0x${string}`;
1499
+ gas: bigint;
1500
+ hash: `0x${string}`;
1501
+ input: `0x${string}`;
1502
+ nonce: number;
1503
+ r: `0x${string}`;
1504
+ s: `0x${string}`;
1505
+ to: `0x${string}` | null;
1506
+ transactionIndex: number | null;
1507
+ typeHex: `0x${string}` | null;
1508
+ v: bigint;
1509
+ value: bigint;
1510
+ gasPrice: bigint;
1511
+ maxFeePerGas?: undefined;
1512
+ maxPriorityFeePerGas?: undefined;
1513
+ accessList: import("../index.js").AccessList;
1514
+ chainId: number;
1515
+ type: "eip2930";
1516
+ feeCurrency: `0x${string}` | null;
1517
+ gatewayFee: bigint | null;
1518
+ gatewayFeeRecipient: `0x${string}` | null;
1519
+ } | {
1520
+ blockHash: `0x${string}` | null;
1521
+ blockNumber: bigint | null;
1522
+ from: `0x${string}`;
1523
+ gas: bigint;
1524
+ hash: `0x${string}`;
1525
+ input: `0x${string}`;
1526
+ nonce: number;
1527
+ r: `0x${string}`;
1528
+ s: `0x${string}`;
1529
+ to: `0x${string}` | null;
1530
+ transactionIndex: number | null;
1531
+ typeHex: `0x${string}` | null;
1532
+ v: bigint;
1533
+ value: bigint;
1534
+ gasPrice?: undefined;
1535
+ maxFeePerGas: bigint;
1536
+ maxPriorityFeePerGas: bigint;
1537
+ accessList: import("../index.js").AccessList;
1538
+ chainId: number;
1539
+ type: "eip1559";
1540
+ feeCurrency: `0x${string}` | null;
1541
+ gatewayFee: bigint | null;
1542
+ gatewayFeeRecipient: `0x${string}` | null;
1543
+ }) & {};
1544
+ type: "transaction";
1545
+ };
1546
+ readonly transactionReceipt: {
1547
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1548
+ feeCurrency: `0x${string}` | null;
1549
+ gatewayFee: `0x${string}` | null;
1550
+ gatewayFeeRecipient: `0x${string}` | null;
1551
+ }) => {
1552
+ blockHash: `0x${string}`;
1553
+ blockNumber: bigint;
1554
+ contractAddress: `0x${string}` | null;
1555
+ cumulativeGasUsed: bigint;
1556
+ effectiveGasPrice: bigint;
1557
+ from: `0x${string}`;
1558
+ gasUsed: bigint;
1559
+ logs: import("../index.js").Log<bigint, number>[];
1560
+ logsBloom: `0x${string}`;
1561
+ status: "success" | "reverted";
1562
+ to: `0x${string}` | null;
1563
+ transactionHash: `0x${string}`;
1564
+ transactionIndex: number;
1565
+ type: import("../index.js").TransactionType;
1566
+ feeCurrency: `0x${string}` | null;
1567
+ gatewayFee: bigint | null;
1568
+ gatewayFeeRecipient: `0x${string}` | null;
1569
+ } & {};
1570
+ type: "transactionReceipt";
1571
+ };
1572
+ readonly transactionRequest: {
1573
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1574
+ feeCurrency?: `0x${string}` | undefined;
1575
+ gatewayFee?: bigint | undefined;
1576
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1577
+ }) => ({
1578
+ data?: `0x${string}` | undefined;
1579
+ from: `0x${string}`;
1580
+ gas?: `0x${string}` | undefined;
1581
+ nonce?: `0x${string}` | undefined;
1582
+ to?: `0x${string}` | undefined;
1583
+ value?: `0x${string}` | undefined;
1584
+ gasPrice?: `0x${string}` | undefined;
1585
+ maxFeePerGas?: undefined;
1586
+ maxPriorityFeePerGas?: undefined;
1587
+ accessList?: undefined;
1588
+ feeCurrency: `0x${string}` | undefined;
1589
+ gatewayFee: `0x${string}` | undefined;
1590
+ gatewayFeeRecipient: `0x${string}` | undefined;
1591
+ } | {
1592
+ data?: `0x${string}` | undefined;
1593
+ from: `0x${string}`;
1594
+ gas?: `0x${string}` | undefined;
1595
+ nonce?: `0x${string}` | undefined;
1596
+ to?: `0x${string}` | undefined;
1597
+ value?: `0x${string}` | undefined;
1598
+ gasPrice?: `0x${string}` | undefined;
1599
+ maxFeePerGas?: undefined;
1600
+ maxPriorityFeePerGas?: undefined;
1601
+ accessList?: import("../index.js").AccessList | undefined;
1602
+ feeCurrency: `0x${string}` | undefined;
1603
+ gatewayFee: `0x${string}` | undefined;
1604
+ gatewayFeeRecipient: `0x${string}` | undefined;
1605
+ } | {
1606
+ data?: `0x${string}` | undefined;
1607
+ from: `0x${string}`;
1608
+ gas?: `0x${string}` | undefined;
1609
+ nonce?: `0x${string}` | undefined;
1610
+ to?: `0x${string}` | undefined;
1611
+ value?: `0x${string}` | undefined;
1612
+ gasPrice?: undefined;
1613
+ maxFeePerGas?: `0x${string}` | undefined;
1614
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1615
+ accessList?: import("../index.js").AccessList | undefined;
1616
+ feeCurrency: `0x${string}` | undefined;
1617
+ gatewayFee: `0x${string}` | undefined;
1618
+ gatewayFeeRecipient: `0x${string}` | undefined;
1619
+ }) & {};
1620
+ type: "transactionRequest";
1621
+ };
1562
1622
  } | undefined;
1563
1623
  serializers: import("../index.js").Serializers<{
1564
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
1565
- randomness: {
1566
- committed: `0x${string}`;
1567
- revealed: `0x${string}`;
1624
+ readonly block: {
1625
+ format: (args: Partial<import("../index.js").RpcBlock> & {
1626
+ randomness: {
1627
+ committed: `0x${string}`;
1628
+ revealed: `0x${string}`;
1629
+ };
1630
+ transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1631
+ feeCurrency: `0x${string}` | null;
1632
+ gatewayFee: `0x${string}` | null;
1633
+ gatewayFeeRecipient: `0x${string}` | null;
1634
+ })[];
1635
+ }) => {
1636
+ baseFeePerGas: bigint | null;
1637
+ difficulty: bigint;
1638
+ extraData: `0x${string}`;
1639
+ gasLimit: bigint;
1640
+ gasUsed: bigint;
1641
+ hash: `0x${string}` | null;
1642
+ logsBloom: `0x${string}` | null;
1643
+ miner: `0x${string}`;
1644
+ mixHash: `0x${string}`;
1645
+ nonce: `0x${string}` | null;
1646
+ number: bigint | null;
1647
+ parentHash: `0x${string}`;
1648
+ receiptsRoot: `0x${string}`;
1649
+ sealFields: `0x${string}`[];
1650
+ sha3Uncles: `0x${string}`;
1651
+ size: bigint;
1652
+ stateRoot: `0x${string}`;
1653
+ timestamp: bigint;
1654
+ totalDifficulty: bigint | null;
1655
+ transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1656
+ feeCurrency: `0x${string}` | null;
1657
+ gatewayFee: bigint | null;
1658
+ gatewayFeeRecipient: `0x${string}` | null;
1659
+ })[];
1660
+ transactionsRoot: `0x${string}`;
1661
+ uncles: `0x${string}`[];
1662
+ randomness: {
1663
+ committed: `0x${string}`;
1664
+ revealed: `0x${string}`;
1665
+ };
1666
+ } & {
1667
+ nonce: never;
1668
+ difficulty: never;
1669
+ gasLimit: never;
1670
+ mixHash: never;
1671
+ uncles: never;
1568
1672
  };
1569
- transactions: `0x${string}`[] | (import("../index.js").RpcTransaction & {
1673
+ type: "block";
1674
+ };
1675
+ readonly transaction: {
1676
+ format: (args: Partial<import("../index.js").RpcTransaction> & {
1570
1677
  feeCurrency: `0x${string}` | null;
1571
1678
  gatewayFee: `0x${string}` | null;
1572
1679
  gatewayFeeRecipient: `0x${string}` | null;
1573
- })[];
1574
- }) => {
1575
- baseFeePerGas: bigint | null;
1576
- difficulty: bigint;
1577
- extraData: `0x${string}`;
1578
- gasLimit: bigint;
1579
- gasUsed: bigint;
1580
- hash: `0x${string}` | null;
1581
- logsBloom: `0x${string}` | null;
1582
- miner: `0x${string}`;
1583
- mixHash: `0x${string}`;
1584
- nonce: `0x${string}` | null;
1585
- number: bigint | null;
1586
- parentHash: `0x${string}`;
1587
- receiptsRoot: `0x${string}`;
1588
- sealFields: `0x${string}`[];
1589
- sha3Uncles: `0x${string}`;
1590
- size: bigint;
1591
- stateRoot: `0x${string}`;
1592
- timestamp: bigint;
1593
- totalDifficulty: bigint | null;
1594
- transactions: `0x${string}`[] | (import("../index.js").Transaction & {
1680
+ }) => ({
1681
+ blockHash: `0x${string}` | null;
1682
+ blockNumber: bigint | null;
1683
+ from: `0x${string}`;
1684
+ gas: bigint;
1685
+ hash: `0x${string}`;
1686
+ input: `0x${string}`;
1687
+ nonce: number;
1688
+ r: `0x${string}`;
1689
+ s: `0x${string}`;
1690
+ to: `0x${string}` | null;
1691
+ transactionIndex: number | null;
1692
+ typeHex: `0x${string}` | null;
1693
+ v: bigint;
1694
+ value: bigint;
1695
+ gasPrice: bigint;
1696
+ maxFeePerGas?: undefined;
1697
+ maxPriorityFeePerGas?: undefined;
1698
+ accessList?: undefined;
1699
+ chainId?: number | undefined;
1700
+ type: "legacy";
1595
1701
  feeCurrency: `0x${string}` | null;
1596
1702
  gatewayFee: bigint | null;
1597
1703
  gatewayFeeRecipient: `0x${string}` | null;
1598
- })[];
1599
- transactionsRoot: `0x${string}`;
1600
- uncles: `0x${string}`[];
1601
- randomness: {
1602
- committed: `0x${string}`;
1603
- revealed: `0x${string}`;
1604
- };
1605
- } & {
1606
- nonce: never;
1607
- difficulty: never;
1608
- gasLimit: never;
1609
- mixHash: never;
1610
- uncles: never;
1611
- };
1612
- readonly transaction: (args: Partial<import("../index.js").RpcTransaction> & {
1613
- feeCurrency: `0x${string}` | null;
1614
- gatewayFee: `0x${string}` | null;
1615
- gatewayFeeRecipient: `0x${string}` | null;
1616
- }) => ({
1617
- blockHash: `0x${string}` | null;
1618
- blockNumber: bigint | null;
1619
- from: `0x${string}`;
1620
- gas: bigint;
1621
- hash: `0x${string}`;
1622
- input: `0x${string}`;
1623
- nonce: number;
1624
- r: `0x${string}`;
1625
- s: `0x${string}`;
1626
- to: `0x${string}` | null;
1627
- transactionIndex: number | null;
1628
- typeHex: `0x${string}` | null;
1629
- v: bigint;
1630
- value: bigint;
1631
- gasPrice: bigint;
1632
- maxFeePerGas?: undefined;
1633
- maxPriorityFeePerGas?: undefined;
1634
- accessList?: undefined;
1635
- chainId?: number | undefined;
1636
- type: "legacy";
1637
- feeCurrency: `0x${string}` | null;
1638
- gatewayFee: bigint | null;
1639
- gatewayFeeRecipient: `0x${string}` | null;
1640
- } | {
1641
- blockHash: `0x${string}` | null;
1642
- blockNumber: bigint | null;
1643
- from: `0x${string}`;
1644
- gas: bigint;
1645
- hash: `0x${string}`;
1646
- input: `0x${string}`;
1647
- nonce: number;
1648
- r: `0x${string}`;
1649
- s: `0x${string}`;
1650
- to: `0x${string}` | null;
1651
- transactionIndex: number | null;
1652
- typeHex: `0x${string}` | null;
1653
- v: bigint;
1654
- value: bigint;
1655
- gasPrice: bigint;
1656
- maxFeePerGas?: undefined;
1657
- maxPriorityFeePerGas?: undefined;
1658
- accessList: import("../index.js").AccessList;
1659
- chainId: number;
1660
- type: "eip2930";
1661
- feeCurrency: `0x${string}` | null;
1662
- gatewayFee: bigint | null;
1663
- gatewayFeeRecipient: `0x${string}` | null;
1664
- } | {
1665
- blockHash: `0x${string}` | null;
1666
- blockNumber: bigint | null;
1667
- from: `0x${string}`;
1668
- gas: bigint;
1669
- hash: `0x${string}`;
1670
- input: `0x${string}`;
1671
- nonce: number;
1672
- r: `0x${string}`;
1673
- s: `0x${string}`;
1674
- to: `0x${string}` | null;
1675
- transactionIndex: number | null;
1676
- typeHex: `0x${string}` | null;
1677
- v: bigint;
1678
- value: bigint;
1679
- gasPrice?: undefined;
1680
- maxFeePerGas: bigint;
1681
- maxPriorityFeePerGas: bigint;
1682
- accessList: import("../index.js").AccessList;
1683
- chainId: number;
1684
- type: "eip1559";
1685
- feeCurrency: `0x${string}` | null;
1686
- gatewayFee: bigint | null;
1687
- gatewayFeeRecipient: `0x${string}` | null;
1688
- }) & {};
1689
- readonly transactionReceipt: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1690
- feeCurrency: `0x${string}` | null;
1691
- gatewayFee: `0x${string}` | null;
1692
- gatewayFeeRecipient: `0x${string}` | null;
1693
- }) => {
1694
- blockHash: `0x${string}`;
1695
- blockNumber: bigint;
1696
- contractAddress: `0x${string}` | null;
1697
- cumulativeGasUsed: bigint;
1698
- effectiveGasPrice: bigint;
1699
- from: `0x${string}`;
1700
- gasUsed: bigint;
1701
- logs: import("../index.js").Log<bigint, number>[];
1702
- logsBloom: `0x${string}`;
1703
- status: "success" | "reverted";
1704
- to: `0x${string}` | null;
1705
- transactionHash: `0x${string}`;
1706
- transactionIndex: number;
1707
- type: import("../index.js").TransactionType;
1708
- feeCurrency: `0x${string}` | null;
1709
- gatewayFee: bigint | null;
1710
- gatewayFeeRecipient: `0x${string}` | null;
1711
- } & {};
1712
- readonly transactionRequest: (args: Partial<import("../index.js").TransactionRequest> & {
1713
- feeCurrency?: `0x${string}` | undefined;
1714
- gatewayFee?: bigint | undefined;
1715
- gatewayFeeRecipient?: `0x${string}` | undefined;
1716
- }) => ({
1717
- data?: `0x${string}` | undefined;
1718
- from: `0x${string}`;
1719
- gas?: `0x${string}` | undefined;
1720
- nonce?: `0x${string}` | undefined;
1721
- to?: `0x${string}` | undefined;
1722
- value?: `0x${string}` | undefined;
1723
- gasPrice?: `0x${string}` | undefined;
1724
- maxFeePerGas?: undefined;
1725
- maxPriorityFeePerGas?: undefined;
1726
- accessList?: undefined;
1727
- feeCurrency: `0x${string}` | undefined;
1728
- gatewayFee: `0x${string}` | undefined;
1729
- gatewayFeeRecipient: `0x${string}` | undefined;
1730
- } | {
1731
- data?: `0x${string}` | undefined;
1732
- from: `0x${string}`;
1733
- gas?: `0x${string}` | undefined;
1734
- nonce?: `0x${string}` | undefined;
1735
- to?: `0x${string}` | undefined;
1736
- value?: `0x${string}` | undefined;
1737
- gasPrice?: `0x${string}` | undefined;
1738
- maxFeePerGas?: undefined;
1739
- maxPriorityFeePerGas?: undefined;
1740
- accessList?: import("../index.js").AccessList | undefined;
1741
- feeCurrency: `0x${string}` | undefined;
1742
- gatewayFee: `0x${string}` | undefined;
1743
- gatewayFeeRecipient: `0x${string}` | undefined;
1744
- } | {
1745
- data?: `0x${string}` | undefined;
1746
- from: `0x${string}`;
1747
- gas?: `0x${string}` | undefined;
1748
- nonce?: `0x${string}` | undefined;
1749
- to?: `0x${string}` | undefined;
1750
- value?: `0x${string}` | undefined;
1751
- gasPrice?: undefined;
1752
- maxFeePerGas?: `0x${string}` | undefined;
1753
- maxPriorityFeePerGas?: `0x${string}` | undefined;
1754
- accessList?: import("../index.js").AccessList | undefined;
1755
- feeCurrency: `0x${string}` | undefined;
1756
- gatewayFee: `0x${string}` | undefined;
1757
- gatewayFeeRecipient: `0x${string}` | undefined;
1758
- }) & {};
1704
+ } | {
1705
+ blockHash: `0x${string}` | null;
1706
+ blockNumber: bigint | null;
1707
+ from: `0x${string}`;
1708
+ gas: bigint;
1709
+ hash: `0x${string}`;
1710
+ input: `0x${string}`;
1711
+ nonce: number;
1712
+ r: `0x${string}`;
1713
+ s: `0x${string}`;
1714
+ to: `0x${string}` | null;
1715
+ transactionIndex: number | null;
1716
+ typeHex: `0x${string}` | null;
1717
+ v: bigint;
1718
+ value: bigint;
1719
+ gasPrice: bigint;
1720
+ maxFeePerGas?: undefined;
1721
+ maxPriorityFeePerGas?: undefined;
1722
+ accessList: import("../index.js").AccessList;
1723
+ chainId: number;
1724
+ type: "eip2930";
1725
+ feeCurrency: `0x${string}` | null;
1726
+ gatewayFee: bigint | null;
1727
+ gatewayFeeRecipient: `0x${string}` | null;
1728
+ } | {
1729
+ blockHash: `0x${string}` | null;
1730
+ blockNumber: bigint | null;
1731
+ from: `0x${string}`;
1732
+ gas: bigint;
1733
+ hash: `0x${string}`;
1734
+ input: `0x${string}`;
1735
+ nonce: number;
1736
+ r: `0x${string}`;
1737
+ s: `0x${string}`;
1738
+ to: `0x${string}` | null;
1739
+ transactionIndex: number | null;
1740
+ typeHex: `0x${string}` | null;
1741
+ v: bigint;
1742
+ value: bigint;
1743
+ gasPrice?: undefined;
1744
+ maxFeePerGas: bigint;
1745
+ maxPriorityFeePerGas: bigint;
1746
+ accessList: import("../index.js").AccessList;
1747
+ chainId: number;
1748
+ type: "eip1559";
1749
+ feeCurrency: `0x${string}` | null;
1750
+ gatewayFee: bigint | null;
1751
+ gatewayFeeRecipient: `0x${string}` | null;
1752
+ }) & {};
1753
+ type: "transaction";
1754
+ };
1755
+ readonly transactionReceipt: {
1756
+ format: (args: Partial<import("../index.js").RpcTransactionReceipt> & {
1757
+ feeCurrency: `0x${string}` | null;
1758
+ gatewayFee: `0x${string}` | null;
1759
+ gatewayFeeRecipient: `0x${string}` | null;
1760
+ }) => {
1761
+ blockHash: `0x${string}`;
1762
+ blockNumber: bigint;
1763
+ contractAddress: `0x${string}` | null;
1764
+ cumulativeGasUsed: bigint;
1765
+ effectiveGasPrice: bigint;
1766
+ from: `0x${string}`;
1767
+ gasUsed: bigint;
1768
+ logs: import("../index.js").Log<bigint, number>[];
1769
+ logsBloom: `0x${string}`;
1770
+ status: "success" | "reverted";
1771
+ to: `0x${string}` | null;
1772
+ transactionHash: `0x${string}`;
1773
+ transactionIndex: number;
1774
+ type: import("../index.js").TransactionType;
1775
+ feeCurrency: `0x${string}` | null;
1776
+ gatewayFee: bigint | null;
1777
+ gatewayFeeRecipient: `0x${string}` | null;
1778
+ } & {};
1779
+ type: "transactionReceipt";
1780
+ };
1781
+ readonly transactionRequest: {
1782
+ format: (args: Partial<import("../index.js").TransactionRequest> & {
1783
+ feeCurrency?: `0x${string}` | undefined;
1784
+ gatewayFee?: bigint | undefined;
1785
+ gatewayFeeRecipient?: `0x${string}` | undefined;
1786
+ }) => ({
1787
+ data?: `0x${string}` | undefined;
1788
+ from: `0x${string}`;
1789
+ gas?: `0x${string}` | undefined;
1790
+ nonce?: `0x${string}` | undefined;
1791
+ to?: `0x${string}` | undefined;
1792
+ value?: `0x${string}` | undefined;
1793
+ gasPrice?: `0x${string}` | undefined;
1794
+ maxFeePerGas?: undefined;
1795
+ maxPriorityFeePerGas?: undefined;
1796
+ accessList?: undefined;
1797
+ feeCurrency: `0x${string}` | undefined;
1798
+ gatewayFee: `0x${string}` | undefined;
1799
+ gatewayFeeRecipient: `0x${string}` | undefined;
1800
+ } | {
1801
+ data?: `0x${string}` | undefined;
1802
+ from: `0x${string}`;
1803
+ gas?: `0x${string}` | undefined;
1804
+ nonce?: `0x${string}` | undefined;
1805
+ to?: `0x${string}` | undefined;
1806
+ value?: `0x${string}` | undefined;
1807
+ gasPrice?: `0x${string}` | undefined;
1808
+ maxFeePerGas?: undefined;
1809
+ maxPriorityFeePerGas?: undefined;
1810
+ accessList?: import("../index.js").AccessList | undefined;
1811
+ feeCurrency: `0x${string}` | undefined;
1812
+ gatewayFee: `0x${string}` | undefined;
1813
+ gatewayFeeRecipient: `0x${string}` | undefined;
1814
+ } | {
1815
+ data?: `0x${string}` | undefined;
1816
+ from: `0x${string}`;
1817
+ gas?: `0x${string}` | undefined;
1818
+ nonce?: `0x${string}` | undefined;
1819
+ to?: `0x${string}` | undefined;
1820
+ value?: `0x${string}` | undefined;
1821
+ gasPrice?: undefined;
1822
+ maxFeePerGas?: `0x${string}` | undefined;
1823
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
1824
+ accessList?: import("../index.js").AccessList | undefined;
1825
+ feeCurrency: `0x${string}` | undefined;
1826
+ gatewayFee: `0x${string}` | undefined;
1827
+ gatewayFeeRecipient: `0x${string}` | undefined;
1828
+ }) & {};
1829
+ type: "transactionRequest";
1830
+ };
1759
1831
  }> | undefined;
1760
1832
  };
1761
1833
  export declare const cronos: {
@@ -2843,542 +2915,522 @@ export declare const optimism: {
2843
2915
  };
2844
2916
  } & {
2845
2917
  formatters: {
2846
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
2847
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
2918
+ readonly block: {
2919
+ format: (args: Partial<import("../index.js").RpcBlock> & {
2920
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
2921
+ isSystemTx?: undefined;
2922
+ mint?: undefined;
2923
+ sourceHash?: undefined;
2924
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
2925
+ }) => {
2926
+ baseFeePerGas: bigint | null;
2927
+ difficulty: bigint;
2928
+ extraData: `0x${string}`;
2929
+ gasLimit: bigint;
2930
+ gasUsed: bigint;
2931
+ hash: `0x${string}` | null;
2932
+ logsBloom: `0x${string}` | null;
2933
+ miner: `0x${string}`;
2934
+ mixHash: `0x${string}`;
2935
+ nonce: `0x${string}` | null;
2936
+ number: bigint | null;
2937
+ parentHash: `0x${string}`;
2938
+ receiptsRoot: `0x${string}`;
2939
+ sealFields: `0x${string}`[];
2940
+ sha3Uncles: `0x${string}`;
2941
+ size: bigint;
2942
+ stateRoot: `0x${string}`;
2943
+ timestamp: bigint;
2944
+ totalDifficulty: bigint | null;
2945
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
2946
+ isSystemTx?: undefined;
2947
+ mint?: undefined;
2948
+ sourceHash?: undefined;
2949
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
2950
+ transactionsRoot: `0x${string}`;
2951
+ uncles: `0x${string}`[];
2952
+ } & {};
2953
+ type: "block";
2954
+ };
2955
+ readonly transaction: {
2956
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2957
+ accessList?: undefined;
2958
+ chainId?: `0x${string}` | undefined;
2959
+ type: "0x0";
2960
+ } & {
2961
+ isSystemTx?: undefined;
2962
+ mint?: undefined;
2963
+ sourceHash?: undefined;
2964
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2965
+ accessList: import("../index.js").AccessList;
2966
+ chainId: `0x${string}`;
2967
+ type: "0x1";
2968
+ } & {
2969
+ isSystemTx?: undefined;
2970
+ mint?: undefined;
2971
+ sourceHash?: undefined;
2972
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
2973
+ accessList: import("../index.js").AccessList;
2974
+ chainId: `0x${string}`;
2975
+ type: "0x2";
2976
+ } & {
2977
+ isSystemTx?: undefined;
2978
+ mint?: undefined;
2979
+ sourceHash?: undefined;
2980
+ })) => ({
2981
+ blockHash: `0x${string}` | null;
2982
+ blockNumber: bigint | null;
2983
+ from: `0x${string}`;
2984
+ gas: bigint;
2985
+ hash: `0x${string}`;
2986
+ input: `0x${string}`;
2987
+ nonce: number;
2988
+ r: `0x${string}`;
2989
+ s: `0x${string}`;
2990
+ to: `0x${string}` | null;
2991
+ transactionIndex: number | null;
2992
+ typeHex: `0x${string}` | null;
2993
+ v: bigint;
2994
+ value: bigint;
2995
+ gasPrice: bigint;
2996
+ maxFeePerGas?: undefined;
2997
+ maxPriorityFeePerGas?: undefined;
2998
+ accessList?: undefined;
2999
+ chainId?: number | undefined;
3000
+ type: "legacy";
2848
3001
  isSystemTx?: undefined;
2849
3002
  mint?: undefined;
2850
3003
  sourceHash?: undefined;
2851
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3004
+ } | {
3005
+ blockHash: `0x${string}` | null;
3006
+ blockNumber: bigint | null;
3007
+ from: `0x${string}`;
3008
+ gas: bigint;
3009
+ hash: `0x${string}`;
3010
+ input: `0x${string}`;
3011
+ nonce: number;
3012
+ r: `0x${string}`;
3013
+ s: `0x${string}`;
3014
+ to: `0x${string}` | null;
3015
+ transactionIndex: number | null;
3016
+ typeHex: `0x${string}` | null;
3017
+ v: bigint;
3018
+ value: bigint;
3019
+ gasPrice: undefined;
3020
+ maxFeePerGas: bigint;
3021
+ maxPriorityFeePerGas: bigint;
3022
+ accessList?: undefined;
3023
+ chainId?: number | undefined;
3024
+ type: "deposit";
2852
3025
  isSystemTx?: boolean | undefined;
2853
- mint?: `0x${string}` | undefined;
3026
+ mint?: bigint | undefined;
2854
3027
  sourceHash: `0x${string}`;
2855
- type: "0x7e";
2856
- }))[];
2857
- }) => {
2858
- baseFeePerGas: bigint | null;
2859
- difficulty: bigint;
2860
- extraData: `0x${string}`;
2861
- gasLimit: bigint;
2862
- gasUsed: bigint;
2863
- hash: `0x${string}` | null;
2864
- logsBloom: `0x${string}` | null;
2865
- miner: `0x${string}`;
2866
- mixHash: `0x${string}`;
2867
- nonce: `0x${string}` | null;
2868
- number: bigint | null;
2869
- parentHash: `0x${string}`;
2870
- receiptsRoot: `0x${string}`;
2871
- sealFields: `0x${string}`[];
2872
- sha3Uncles: `0x${string}`;
2873
- size: bigint;
2874
- stateRoot: `0x${string}`;
2875
- timestamp: bigint;
2876
- totalDifficulty: bigint | null;
2877
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3028
+ } | {
3029
+ blockHash: `0x${string}` | null;
3030
+ blockNumber: bigint | null;
3031
+ from: `0x${string}`;
3032
+ gas: bigint;
3033
+ hash: `0x${string}`;
3034
+ input: `0x${string}`;
3035
+ nonce: number;
3036
+ r: `0x${string}`;
3037
+ s: `0x${string}`;
3038
+ to: `0x${string}` | null;
3039
+ transactionIndex: number | null;
3040
+ typeHex: `0x${string}` | null;
3041
+ v: bigint;
3042
+ value: bigint;
3043
+ gasPrice: bigint;
3044
+ maxFeePerGas?: undefined;
3045
+ maxPriorityFeePerGas?: undefined;
3046
+ accessList: import("../index.js").AccessList;
3047
+ chainId: number;
3048
+ type: "eip2930";
3049
+ isSystemTx?: undefined;
3050
+ mint?: undefined;
3051
+ sourceHash?: undefined;
3052
+ } | {
3053
+ blockHash: `0x${string}` | null;
3054
+ blockNumber: bigint | null;
3055
+ from: `0x${string}`;
3056
+ gas: bigint;
3057
+ hash: `0x${string}`;
3058
+ input: `0x${string}`;
3059
+ nonce: number;
3060
+ r: `0x${string}`;
3061
+ s: `0x${string}`;
3062
+ to: `0x${string}` | null;
3063
+ transactionIndex: number | null;
3064
+ typeHex: `0x${string}` | null;
3065
+ v: bigint;
3066
+ value: bigint;
3067
+ gasPrice: undefined;
3068
+ maxFeePerGas: bigint;
3069
+ maxPriorityFeePerGas: bigint;
3070
+ accessList: import("../index.js").AccessList;
3071
+ chainId: number;
3072
+ type: "eip1559";
2878
3073
  isSystemTx?: undefined;
2879
3074
  mint?: undefined;
2880
3075
  sourceHash?: undefined;
2881
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3076
+ } | {
3077
+ blockHash: `0x${string}` | null;
3078
+ blockNumber: bigint | null;
3079
+ from: `0x${string}`;
3080
+ gas: bigint;
3081
+ hash: `0x${string}`;
3082
+ input: `0x${string}`;
3083
+ nonce: number;
3084
+ r: `0x${string}`;
3085
+ s: `0x${string}`;
3086
+ to: `0x${string}` | null;
3087
+ transactionIndex: number | null;
3088
+ typeHex: `0x${string}` | null;
3089
+ v: bigint;
3090
+ value: bigint;
3091
+ gasPrice: undefined;
3092
+ maxFeePerGas: bigint;
3093
+ maxPriorityFeePerGas: bigint;
3094
+ accessList: import("../index.js").AccessList;
3095
+ chainId: number;
3096
+ type: "deposit";
2882
3097
  isSystemTx?: boolean | undefined;
2883
3098
  mint?: bigint | undefined;
2884
3099
  sourceHash: `0x${string}`;
3100
+ } | {
3101
+ blockHash: `0x${string}` | null;
3102
+ blockNumber: bigint | null;
3103
+ from: `0x${string}`;
3104
+ gas: bigint;
3105
+ hash: `0x${string}`;
3106
+ input: `0x${string}`;
3107
+ nonce: number;
3108
+ r: `0x${string}`;
3109
+ s: `0x${string}`;
3110
+ to: `0x${string}` | null;
3111
+ transactionIndex: number | null;
3112
+ typeHex: `0x${string}` | null;
3113
+ v: bigint;
3114
+ value: bigint;
3115
+ gasPrice: bigint;
3116
+ maxFeePerGas: undefined;
3117
+ maxPriorityFeePerGas: undefined;
3118
+ accessList: import("../index.js").AccessList;
3119
+ chainId: number;
3120
+ type: "eip2930";
3121
+ isSystemTx?: undefined;
3122
+ mint?: undefined;
3123
+ sourceHash?: undefined;
3124
+ } | {
3125
+ blockHash: `0x${string}` | null;
3126
+ blockNumber: bigint | null;
3127
+ from: `0x${string}`;
3128
+ gas: bigint;
3129
+ hash: `0x${string}`;
3130
+ input: `0x${string}`;
3131
+ nonce: number;
3132
+ r: `0x${string}`;
3133
+ s: `0x${string}`;
3134
+ to: `0x${string}` | null;
3135
+ transactionIndex: number | null;
3136
+ typeHex: `0x${string}` | null;
3137
+ v: bigint;
3138
+ value: bigint;
3139
+ gasPrice?: undefined;
3140
+ maxFeePerGas: bigint;
3141
+ maxPriorityFeePerGas: bigint;
3142
+ accessList: import("../index.js").AccessList;
3143
+ chainId: number;
3144
+ type: "eip1559";
3145
+ isSystemTx?: undefined;
3146
+ mint?: undefined;
3147
+ sourceHash?: undefined;
3148
+ } | {
3149
+ blockHash: `0x${string}` | null;
3150
+ blockNumber: bigint | null;
3151
+ from: `0x${string}`;
3152
+ gas: bigint;
3153
+ hash: `0x${string}`;
3154
+ input: `0x${string}`;
3155
+ nonce: number;
3156
+ r: `0x${string}`;
3157
+ s: `0x${string}`;
3158
+ to: `0x${string}` | null;
3159
+ transactionIndex: number | null;
3160
+ typeHex: `0x${string}` | null;
3161
+ v: bigint;
3162
+ value: bigint;
3163
+ gasPrice?: undefined;
3164
+ maxFeePerGas: bigint;
3165
+ maxPriorityFeePerGas: bigint;
3166
+ accessList: import("../index.js").AccessList;
3167
+ chainId: number;
2885
3168
  type: "deposit";
2886
- }))[];
2887
- transactionsRoot: `0x${string}`;
2888
- uncles: `0x${string}`[];
2889
- } & {
2890
- nonce: never;
2891
- difficulty: never;
2892
- gasLimit: never;
2893
- mixHash: never;
2894
- uncles: never;
2895
- };
2896
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2897
- accessList?: undefined;
2898
- chainId?: `0x${string}` | undefined;
2899
- type: "0x0";
2900
- } & {
2901
- isSystemTx?: undefined;
2902
- mint?: undefined;
2903
- sourceHash?: undefined;
2904
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
2905
- accessList: import("../index.js").AccessList;
2906
- chainId: `0x${string}`;
2907
- type: "0x1";
2908
- } & {
2909
- isSystemTx?: undefined;
2910
- mint?: undefined;
2911
- sourceHash?: undefined;
2912
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
2913
- accessList: import("../index.js").AccessList;
2914
- chainId: `0x${string}`;
2915
- type: "0x2";
2916
- } & {
2917
- isSystemTx?: undefined;
2918
- mint?: undefined;
2919
- sourceHash?: undefined;
2920
- })) => ({
2921
- blockHash: `0x${string}` | null;
2922
- blockNumber: bigint | null;
2923
- from: `0x${string}`;
2924
- gas: bigint;
2925
- hash: `0x${string}`;
2926
- input: `0x${string}`;
2927
- nonce: number;
2928
- r: `0x${string}`;
2929
- s: `0x${string}`;
2930
- to: `0x${string}` | null;
2931
- transactionIndex: number | null;
2932
- typeHex: `0x${string}` | null;
2933
- v: bigint;
2934
- value: bigint;
2935
- gasPrice: bigint;
2936
- maxFeePerGas?: undefined;
2937
- maxPriorityFeePerGas?: undefined;
2938
- accessList?: undefined;
2939
- chainId?: number | undefined;
2940
- type: "legacy";
2941
- isSystemTx?: undefined;
2942
- mint?: undefined;
2943
- sourceHash?: undefined;
2944
- } | {
2945
- blockHash: `0x${string}` | null;
2946
- blockNumber: bigint | null;
2947
- from: `0x${string}`;
2948
- gas: bigint;
2949
- hash: `0x${string}`;
2950
- input: `0x${string}`;
2951
- nonce: number;
2952
- r: `0x${string}`;
2953
- s: `0x${string}`;
2954
- to: `0x${string}` | null;
2955
- transactionIndex: number | null;
2956
- typeHex: `0x${string}` | null;
2957
- v: bigint;
2958
- value: bigint;
2959
- gasPrice: undefined;
2960
- maxFeePerGas: bigint;
2961
- maxPriorityFeePerGas: bigint;
2962
- accessList?: undefined;
2963
- chainId?: number | undefined;
2964
- type: "deposit";
2965
- isSystemTx?: boolean | undefined;
2966
- mint?: bigint | undefined;
2967
- sourceHash: `0x${string}`;
2968
- } | {
2969
- blockHash: `0x${string}` | null;
2970
- blockNumber: bigint | null;
2971
- from: `0x${string}`;
2972
- gas: bigint;
2973
- hash: `0x${string}`;
2974
- input: `0x${string}`;
2975
- nonce: number;
2976
- r: `0x${string}`;
2977
- s: `0x${string}`;
2978
- to: `0x${string}` | null;
2979
- transactionIndex: number | null;
2980
- typeHex: `0x${string}` | null;
2981
- v: bigint;
2982
- value: bigint;
2983
- gasPrice: bigint;
2984
- maxFeePerGas?: undefined;
2985
- maxPriorityFeePerGas?: undefined;
2986
- accessList: import("../index.js").AccessList;
2987
- chainId: number;
2988
- type: "eip2930";
2989
- isSystemTx?: undefined;
2990
- mint?: undefined;
2991
- sourceHash?: undefined;
2992
- } | {
2993
- blockHash: `0x${string}` | null;
2994
- blockNumber: bigint | null;
2995
- from: `0x${string}`;
2996
- gas: bigint;
2997
- hash: `0x${string}`;
2998
- input: `0x${string}`;
2999
- nonce: number;
3000
- r: `0x${string}`;
3001
- s: `0x${string}`;
3002
- to: `0x${string}` | null;
3003
- transactionIndex: number | null;
3004
- typeHex: `0x${string}` | null;
3005
- v: bigint;
3006
- value: bigint;
3007
- gasPrice: undefined;
3008
- maxFeePerGas: bigint;
3009
- maxPriorityFeePerGas: bigint;
3010
- accessList: import("../index.js").AccessList;
3011
- chainId: number;
3012
- type: "eip1559";
3013
- isSystemTx?: undefined;
3014
- mint?: undefined;
3015
- sourceHash?: undefined;
3016
- } | {
3017
- blockHash: `0x${string}` | null;
3018
- blockNumber: bigint | null;
3019
- from: `0x${string}`;
3020
- gas: bigint;
3021
- hash: `0x${string}`;
3022
- input: `0x${string}`;
3023
- nonce: number;
3024
- r: `0x${string}`;
3025
- s: `0x${string}`;
3026
- to: `0x${string}` | null;
3027
- transactionIndex: number | null;
3028
- typeHex: `0x${string}` | null;
3029
- v: bigint;
3030
- value: bigint;
3031
- gasPrice: undefined;
3032
- maxFeePerGas: bigint;
3033
- maxPriorityFeePerGas: bigint;
3034
- accessList: import("../index.js").AccessList;
3035
- chainId: number;
3036
- type: "deposit";
3037
- isSystemTx?: boolean | undefined;
3038
- mint?: bigint | undefined;
3039
- sourceHash: `0x${string}`;
3040
- } | {
3041
- blockHash: `0x${string}` | null;
3042
- blockNumber: bigint | null;
3043
- from: `0x${string}`;
3044
- gas: bigint;
3045
- hash: `0x${string}`;
3046
- input: `0x${string}`;
3047
- nonce: number;
3048
- r: `0x${string}`;
3049
- s: `0x${string}`;
3050
- to: `0x${string}` | null;
3051
- transactionIndex: number | null;
3052
- typeHex: `0x${string}` | null;
3053
- v: bigint;
3054
- value: bigint;
3055
- gasPrice: bigint;
3056
- maxFeePerGas: undefined;
3057
- maxPriorityFeePerGas: undefined;
3058
- accessList: import("../index.js").AccessList;
3059
- chainId: number;
3060
- type: "eip2930";
3061
- isSystemTx?: undefined;
3062
- mint?: undefined;
3063
- sourceHash?: undefined;
3064
- } | {
3065
- blockHash: `0x${string}` | null;
3066
- blockNumber: bigint | null;
3067
- from: `0x${string}`;
3068
- gas: bigint;
3069
- hash: `0x${string}`;
3070
- input: `0x${string}`;
3071
- nonce: number;
3072
- r: `0x${string}`;
3073
- s: `0x${string}`;
3074
- to: `0x${string}` | null;
3075
- transactionIndex: number | null;
3076
- typeHex: `0x${string}` | null;
3077
- v: bigint;
3078
- value: bigint;
3079
- gasPrice?: undefined;
3080
- maxFeePerGas: bigint;
3081
- maxPriorityFeePerGas: bigint;
3082
- accessList: import("../index.js").AccessList;
3083
- chainId: number;
3084
- type: "eip1559";
3085
- isSystemTx?: undefined;
3086
- mint?: undefined;
3087
- sourceHash?: undefined;
3088
- } | {
3089
- blockHash: `0x${string}` | null;
3090
- blockNumber: bigint | null;
3091
- from: `0x${string}`;
3092
- gas: bigint;
3093
- hash: `0x${string}`;
3094
- input: `0x${string}`;
3095
- nonce: number;
3096
- r: `0x${string}`;
3097
- s: `0x${string}`;
3098
- to: `0x${string}` | null;
3099
- transactionIndex: number | null;
3100
- typeHex: `0x${string}` | null;
3101
- v: bigint;
3102
- value: bigint;
3103
- gasPrice?: undefined;
3104
- maxFeePerGas: bigint;
3105
- maxPriorityFeePerGas: bigint;
3106
- accessList: import("../index.js").AccessList;
3107
- chainId: number;
3108
- type: "deposit";
3109
- isSystemTx?: boolean | undefined;
3110
- mint?: bigint | undefined;
3111
- sourceHash: `0x${string}`;
3112
- }) & {};
3169
+ isSystemTx?: boolean | undefined;
3170
+ mint?: bigint | undefined;
3171
+ sourceHash: `0x${string}`;
3172
+ }) & {};
3173
+ type: "transaction";
3174
+ };
3113
3175
  } | undefined;
3114
3176
  serializers: import("../index.js").Serializers<{
3115
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
3116
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3177
+ readonly block: {
3178
+ format: (args: Partial<import("../index.js").RpcBlock> & {
3179
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3180
+ isSystemTx?: undefined;
3181
+ mint?: undefined;
3182
+ sourceHash?: undefined;
3183
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
3184
+ }) => {
3185
+ baseFeePerGas: bigint | null;
3186
+ difficulty: bigint;
3187
+ extraData: `0x${string}`;
3188
+ gasLimit: bigint;
3189
+ gasUsed: bigint;
3190
+ hash: `0x${string}` | null;
3191
+ logsBloom: `0x${string}` | null;
3192
+ miner: `0x${string}`;
3193
+ mixHash: `0x${string}`;
3194
+ nonce: `0x${string}` | null;
3195
+ number: bigint | null;
3196
+ parentHash: `0x${string}`;
3197
+ receiptsRoot: `0x${string}`;
3198
+ sealFields: `0x${string}`[];
3199
+ sha3Uncles: `0x${string}`;
3200
+ size: bigint;
3201
+ stateRoot: `0x${string}`;
3202
+ timestamp: bigint;
3203
+ totalDifficulty: bigint | null;
3204
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3205
+ isSystemTx?: undefined;
3206
+ mint?: undefined;
3207
+ sourceHash?: undefined;
3208
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
3209
+ transactionsRoot: `0x${string}`;
3210
+ uncles: `0x${string}`[];
3211
+ } & {};
3212
+ type: "block";
3213
+ };
3214
+ readonly transaction: {
3215
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3216
+ accessList?: undefined;
3217
+ chainId?: `0x${string}` | undefined;
3218
+ type: "0x0";
3219
+ } & {
3117
3220
  isSystemTx?: undefined;
3118
3221
  mint?: undefined;
3119
3222
  sourceHash?: undefined;
3120
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3223
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3224
+ accessList: import("../index.js").AccessList;
3225
+ chainId: `0x${string}`;
3226
+ type: "0x1";
3227
+ } & {
3228
+ isSystemTx?: undefined;
3229
+ mint?: undefined;
3230
+ sourceHash?: undefined;
3231
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3232
+ accessList: import("../index.js").AccessList;
3233
+ chainId: `0x${string}`;
3234
+ type: "0x2";
3235
+ } & {
3236
+ isSystemTx?: undefined;
3237
+ mint?: undefined;
3238
+ sourceHash?: undefined;
3239
+ })) => ({
3240
+ blockHash: `0x${string}` | null;
3241
+ blockNumber: bigint | null;
3242
+ from: `0x${string}`;
3243
+ gas: bigint;
3244
+ hash: `0x${string}`;
3245
+ input: `0x${string}`;
3246
+ nonce: number;
3247
+ r: `0x${string}`;
3248
+ s: `0x${string}`;
3249
+ to: `0x${string}` | null;
3250
+ transactionIndex: number | null;
3251
+ typeHex: `0x${string}` | null;
3252
+ v: bigint;
3253
+ value: bigint;
3254
+ gasPrice: bigint;
3255
+ maxFeePerGas?: undefined;
3256
+ maxPriorityFeePerGas?: undefined;
3257
+ accessList?: undefined;
3258
+ chainId?: number | undefined;
3259
+ type: "legacy";
3260
+ isSystemTx?: undefined;
3261
+ mint?: undefined;
3262
+ sourceHash?: undefined;
3263
+ } | {
3264
+ blockHash: `0x${string}` | null;
3265
+ blockNumber: bigint | null;
3266
+ from: `0x${string}`;
3267
+ gas: bigint;
3268
+ hash: `0x${string}`;
3269
+ input: `0x${string}`;
3270
+ nonce: number;
3271
+ r: `0x${string}`;
3272
+ s: `0x${string}`;
3273
+ to: `0x${string}` | null;
3274
+ transactionIndex: number | null;
3275
+ typeHex: `0x${string}` | null;
3276
+ v: bigint;
3277
+ value: bigint;
3278
+ gasPrice: undefined;
3279
+ maxFeePerGas: bigint;
3280
+ maxPriorityFeePerGas: bigint;
3281
+ accessList?: undefined;
3282
+ chainId?: number | undefined;
3283
+ type: "deposit";
3121
3284
  isSystemTx?: boolean | undefined;
3122
- mint?: `0x${string}` | undefined;
3285
+ mint?: bigint | undefined;
3123
3286
  sourceHash: `0x${string}`;
3124
- type: "0x7e";
3125
- }))[];
3126
- }) => {
3127
- baseFeePerGas: bigint | null;
3128
- difficulty: bigint;
3129
- extraData: `0x${string}`;
3130
- gasLimit: bigint;
3131
- gasUsed: bigint;
3132
- hash: `0x${string}` | null;
3133
- logsBloom: `0x${string}` | null;
3134
- miner: `0x${string}`;
3135
- mixHash: `0x${string}`;
3136
- nonce: `0x${string}` | null;
3137
- number: bigint | null;
3138
- parentHash: `0x${string}`;
3139
- receiptsRoot: `0x${string}`;
3140
- sealFields: `0x${string}`[];
3141
- sha3Uncles: `0x${string}`;
3142
- size: bigint;
3143
- stateRoot: `0x${string}`;
3144
- timestamp: bigint;
3145
- totalDifficulty: bigint | null;
3146
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3287
+ } | {
3288
+ blockHash: `0x${string}` | null;
3289
+ blockNumber: bigint | null;
3290
+ from: `0x${string}`;
3291
+ gas: bigint;
3292
+ hash: `0x${string}`;
3293
+ input: `0x${string}`;
3294
+ nonce: number;
3295
+ r: `0x${string}`;
3296
+ s: `0x${string}`;
3297
+ to: `0x${string}` | null;
3298
+ transactionIndex: number | null;
3299
+ typeHex: `0x${string}` | null;
3300
+ v: bigint;
3301
+ value: bigint;
3302
+ gasPrice: bigint;
3303
+ maxFeePerGas?: undefined;
3304
+ maxPriorityFeePerGas?: undefined;
3305
+ accessList: import("../index.js").AccessList;
3306
+ chainId: number;
3307
+ type: "eip2930";
3308
+ isSystemTx?: undefined;
3309
+ mint?: undefined;
3310
+ sourceHash?: undefined;
3311
+ } | {
3312
+ blockHash: `0x${string}` | null;
3313
+ blockNumber: bigint | null;
3314
+ from: `0x${string}`;
3315
+ gas: bigint;
3316
+ hash: `0x${string}`;
3317
+ input: `0x${string}`;
3318
+ nonce: number;
3319
+ r: `0x${string}`;
3320
+ s: `0x${string}`;
3321
+ to: `0x${string}` | null;
3322
+ transactionIndex: number | null;
3323
+ typeHex: `0x${string}` | null;
3324
+ v: bigint;
3325
+ value: bigint;
3326
+ gasPrice: undefined;
3327
+ maxFeePerGas: bigint;
3328
+ maxPriorityFeePerGas: bigint;
3329
+ accessList: import("../index.js").AccessList;
3330
+ chainId: number;
3331
+ type: "eip1559";
3147
3332
  isSystemTx?: undefined;
3148
3333
  mint?: undefined;
3149
3334
  sourceHash?: undefined;
3150
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3335
+ } | {
3336
+ blockHash: `0x${string}` | null;
3337
+ blockNumber: bigint | null;
3338
+ from: `0x${string}`;
3339
+ gas: bigint;
3340
+ hash: `0x${string}`;
3341
+ input: `0x${string}`;
3342
+ nonce: number;
3343
+ r: `0x${string}`;
3344
+ s: `0x${string}`;
3345
+ to: `0x${string}` | null;
3346
+ transactionIndex: number | null;
3347
+ typeHex: `0x${string}` | null;
3348
+ v: bigint;
3349
+ value: bigint;
3350
+ gasPrice: undefined;
3351
+ maxFeePerGas: bigint;
3352
+ maxPriorityFeePerGas: bigint;
3353
+ accessList: import("../index.js").AccessList;
3354
+ chainId: number;
3355
+ type: "deposit";
3151
3356
  isSystemTx?: boolean | undefined;
3152
3357
  mint?: bigint | undefined;
3153
3358
  sourceHash: `0x${string}`;
3359
+ } | {
3360
+ blockHash: `0x${string}` | null;
3361
+ blockNumber: bigint | null;
3362
+ from: `0x${string}`;
3363
+ gas: bigint;
3364
+ hash: `0x${string}`;
3365
+ input: `0x${string}`;
3366
+ nonce: number;
3367
+ r: `0x${string}`;
3368
+ s: `0x${string}`;
3369
+ to: `0x${string}` | null;
3370
+ transactionIndex: number | null;
3371
+ typeHex: `0x${string}` | null;
3372
+ v: bigint;
3373
+ value: bigint;
3374
+ gasPrice: bigint;
3375
+ maxFeePerGas: undefined;
3376
+ maxPriorityFeePerGas: undefined;
3377
+ accessList: import("../index.js").AccessList;
3378
+ chainId: number;
3379
+ type: "eip2930";
3380
+ isSystemTx?: undefined;
3381
+ mint?: undefined;
3382
+ sourceHash?: undefined;
3383
+ } | {
3384
+ blockHash: `0x${string}` | null;
3385
+ blockNumber: bigint | null;
3386
+ from: `0x${string}`;
3387
+ gas: bigint;
3388
+ hash: `0x${string}`;
3389
+ input: `0x${string}`;
3390
+ nonce: number;
3391
+ r: `0x${string}`;
3392
+ s: `0x${string}`;
3393
+ to: `0x${string}` | null;
3394
+ transactionIndex: number | null;
3395
+ typeHex: `0x${string}` | null;
3396
+ v: bigint;
3397
+ value: bigint;
3398
+ gasPrice?: undefined;
3399
+ maxFeePerGas: bigint;
3400
+ maxPriorityFeePerGas: bigint;
3401
+ accessList: import("../index.js").AccessList;
3402
+ chainId: number;
3403
+ type: "eip1559";
3404
+ isSystemTx?: undefined;
3405
+ mint?: undefined;
3406
+ sourceHash?: undefined;
3407
+ } | {
3408
+ blockHash: `0x${string}` | null;
3409
+ blockNumber: bigint | null;
3410
+ from: `0x${string}`;
3411
+ gas: bigint;
3412
+ hash: `0x${string}`;
3413
+ input: `0x${string}`;
3414
+ nonce: number;
3415
+ r: `0x${string}`;
3416
+ s: `0x${string}`;
3417
+ to: `0x${string}` | null;
3418
+ transactionIndex: number | null;
3419
+ typeHex: `0x${string}` | null;
3420
+ v: bigint;
3421
+ value: bigint;
3422
+ gasPrice?: undefined;
3423
+ maxFeePerGas: bigint;
3424
+ maxPriorityFeePerGas: bigint;
3425
+ accessList: import("../index.js").AccessList;
3426
+ chainId: number;
3154
3427
  type: "deposit";
3155
- }))[];
3156
- transactionsRoot: `0x${string}`;
3157
- uncles: `0x${string}`[];
3158
- } & {
3159
- nonce: never;
3160
- difficulty: never;
3161
- gasLimit: never;
3162
- mixHash: never;
3163
- uncles: never;
3164
- };
3165
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3166
- accessList?: undefined;
3167
- chainId?: `0x${string}` | undefined;
3168
- type: "0x0";
3169
- } & {
3170
- isSystemTx?: undefined;
3171
- mint?: undefined;
3172
- sourceHash?: undefined;
3173
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3174
- accessList: import("../index.js").AccessList;
3175
- chainId: `0x${string}`;
3176
- type: "0x1";
3177
- } & {
3178
- isSystemTx?: undefined;
3179
- mint?: undefined;
3180
- sourceHash?: undefined;
3181
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3182
- accessList: import("../index.js").AccessList;
3183
- chainId: `0x${string}`;
3184
- type: "0x2";
3185
- } & {
3186
- isSystemTx?: undefined;
3187
- mint?: undefined;
3188
- sourceHash?: undefined;
3189
- })) => ({
3190
- blockHash: `0x${string}` | null;
3191
- blockNumber: bigint | null;
3192
- from: `0x${string}`;
3193
- gas: bigint;
3194
- hash: `0x${string}`;
3195
- input: `0x${string}`;
3196
- nonce: number;
3197
- r: `0x${string}`;
3198
- s: `0x${string}`;
3199
- to: `0x${string}` | null;
3200
- transactionIndex: number | null;
3201
- typeHex: `0x${string}` | null;
3202
- v: bigint;
3203
- value: bigint;
3204
- gasPrice: bigint;
3205
- maxFeePerGas?: undefined;
3206
- maxPriorityFeePerGas?: undefined;
3207
- accessList?: undefined;
3208
- chainId?: number | undefined;
3209
- type: "legacy";
3210
- isSystemTx?: undefined;
3211
- mint?: undefined;
3212
- sourceHash?: undefined;
3213
- } | {
3214
- blockHash: `0x${string}` | null;
3215
- blockNumber: bigint | null;
3216
- from: `0x${string}`;
3217
- gas: bigint;
3218
- hash: `0x${string}`;
3219
- input: `0x${string}`;
3220
- nonce: number;
3221
- r: `0x${string}`;
3222
- s: `0x${string}`;
3223
- to: `0x${string}` | null;
3224
- transactionIndex: number | null;
3225
- typeHex: `0x${string}` | null;
3226
- v: bigint;
3227
- value: bigint;
3228
- gasPrice: undefined;
3229
- maxFeePerGas: bigint;
3230
- maxPriorityFeePerGas: bigint;
3231
- accessList?: undefined;
3232
- chainId?: number | undefined;
3233
- type: "deposit";
3234
- isSystemTx?: boolean | undefined;
3235
- mint?: bigint | undefined;
3236
- sourceHash: `0x${string}`;
3237
- } | {
3238
- blockHash: `0x${string}` | null;
3239
- blockNumber: bigint | null;
3240
- from: `0x${string}`;
3241
- gas: bigint;
3242
- hash: `0x${string}`;
3243
- input: `0x${string}`;
3244
- nonce: number;
3245
- r: `0x${string}`;
3246
- s: `0x${string}`;
3247
- to: `0x${string}` | null;
3248
- transactionIndex: number | null;
3249
- typeHex: `0x${string}` | null;
3250
- v: bigint;
3251
- value: bigint;
3252
- gasPrice: bigint;
3253
- maxFeePerGas?: undefined;
3254
- maxPriorityFeePerGas?: undefined;
3255
- accessList: import("../index.js").AccessList;
3256
- chainId: number;
3257
- type: "eip2930";
3258
- isSystemTx?: undefined;
3259
- mint?: undefined;
3260
- sourceHash?: undefined;
3261
- } | {
3262
- blockHash: `0x${string}` | null;
3263
- blockNumber: bigint | null;
3264
- from: `0x${string}`;
3265
- gas: bigint;
3266
- hash: `0x${string}`;
3267
- input: `0x${string}`;
3268
- nonce: number;
3269
- r: `0x${string}`;
3270
- s: `0x${string}`;
3271
- to: `0x${string}` | null;
3272
- transactionIndex: number | null;
3273
- typeHex: `0x${string}` | null;
3274
- v: bigint;
3275
- value: bigint;
3276
- gasPrice: undefined;
3277
- maxFeePerGas: bigint;
3278
- maxPriorityFeePerGas: bigint;
3279
- accessList: import("../index.js").AccessList;
3280
- chainId: number;
3281
- type: "eip1559";
3282
- isSystemTx?: undefined;
3283
- mint?: undefined;
3284
- sourceHash?: undefined;
3285
- } | {
3286
- blockHash: `0x${string}` | null;
3287
- blockNumber: bigint | null;
3288
- from: `0x${string}`;
3289
- gas: bigint;
3290
- hash: `0x${string}`;
3291
- input: `0x${string}`;
3292
- nonce: number;
3293
- r: `0x${string}`;
3294
- s: `0x${string}`;
3295
- to: `0x${string}` | null;
3296
- transactionIndex: number | null;
3297
- typeHex: `0x${string}` | null;
3298
- v: bigint;
3299
- value: bigint;
3300
- gasPrice: undefined;
3301
- maxFeePerGas: bigint;
3302
- maxPriorityFeePerGas: bigint;
3303
- accessList: import("../index.js").AccessList;
3304
- chainId: number;
3305
- type: "deposit";
3306
- isSystemTx?: boolean | undefined;
3307
- mint?: bigint | undefined;
3308
- sourceHash: `0x${string}`;
3309
- } | {
3310
- blockHash: `0x${string}` | null;
3311
- blockNumber: bigint | null;
3312
- from: `0x${string}`;
3313
- gas: bigint;
3314
- hash: `0x${string}`;
3315
- input: `0x${string}`;
3316
- nonce: number;
3317
- r: `0x${string}`;
3318
- s: `0x${string}`;
3319
- to: `0x${string}` | null;
3320
- transactionIndex: number | null;
3321
- typeHex: `0x${string}` | null;
3322
- v: bigint;
3323
- value: bigint;
3324
- gasPrice: bigint;
3325
- maxFeePerGas: undefined;
3326
- maxPriorityFeePerGas: undefined;
3327
- accessList: import("../index.js").AccessList;
3328
- chainId: number;
3329
- type: "eip2930";
3330
- isSystemTx?: undefined;
3331
- mint?: undefined;
3332
- sourceHash?: undefined;
3333
- } | {
3334
- blockHash: `0x${string}` | null;
3335
- blockNumber: bigint | null;
3336
- from: `0x${string}`;
3337
- gas: bigint;
3338
- hash: `0x${string}`;
3339
- input: `0x${string}`;
3340
- nonce: number;
3341
- r: `0x${string}`;
3342
- s: `0x${string}`;
3343
- to: `0x${string}` | null;
3344
- transactionIndex: number | null;
3345
- typeHex: `0x${string}` | null;
3346
- v: bigint;
3347
- value: bigint;
3348
- gasPrice?: undefined;
3349
- maxFeePerGas: bigint;
3350
- maxPriorityFeePerGas: bigint;
3351
- accessList: import("../index.js").AccessList;
3352
- chainId: number;
3353
- type: "eip1559";
3354
- isSystemTx?: undefined;
3355
- mint?: undefined;
3356
- sourceHash?: undefined;
3357
- } | {
3358
- blockHash: `0x${string}` | null;
3359
- blockNumber: bigint | null;
3360
- from: `0x${string}`;
3361
- gas: bigint;
3362
- hash: `0x${string}`;
3363
- input: `0x${string}`;
3364
- nonce: number;
3365
- r: `0x${string}`;
3366
- s: `0x${string}`;
3367
- to: `0x${string}` | null;
3368
- transactionIndex: number | null;
3369
- typeHex: `0x${string}` | null;
3370
- v: bigint;
3371
- value: bigint;
3372
- gasPrice?: undefined;
3373
- maxFeePerGas: bigint;
3374
- maxPriorityFeePerGas: bigint;
3375
- accessList: import("../index.js").AccessList;
3376
- chainId: number;
3377
- type: "deposit";
3378
- isSystemTx?: boolean | undefined;
3379
- mint?: bigint | undefined;
3380
- sourceHash: `0x${string}`;
3381
- }) & {};
3428
+ isSystemTx?: boolean | undefined;
3429
+ mint?: bigint | undefined;
3430
+ sourceHash: `0x${string}`;
3431
+ }) & {};
3432
+ type: "transaction";
3433
+ };
3382
3434
  }> | undefined;
3383
3435
  };
3384
3436
  export declare const optimismGoerli: {
@@ -3425,542 +3477,522 @@ export declare const optimismGoerli: {
3425
3477
  readonly testnet: true;
3426
3478
  } & {
3427
3479
  formatters: {
3428
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
3429
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3480
+ readonly block: {
3481
+ format: (args: Partial<import("../index.js").RpcBlock> & {
3482
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3483
+ isSystemTx?: undefined;
3484
+ mint?: undefined;
3485
+ sourceHash?: undefined;
3486
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
3487
+ }) => {
3488
+ baseFeePerGas: bigint | null;
3489
+ difficulty: bigint;
3490
+ extraData: `0x${string}`;
3491
+ gasLimit: bigint;
3492
+ gasUsed: bigint;
3493
+ hash: `0x${string}` | null;
3494
+ logsBloom: `0x${string}` | null;
3495
+ miner: `0x${string}`;
3496
+ mixHash: `0x${string}`;
3497
+ nonce: `0x${string}` | null;
3498
+ number: bigint | null;
3499
+ parentHash: `0x${string}`;
3500
+ receiptsRoot: `0x${string}`;
3501
+ sealFields: `0x${string}`[];
3502
+ sha3Uncles: `0x${string}`;
3503
+ size: bigint;
3504
+ stateRoot: `0x${string}`;
3505
+ timestamp: bigint;
3506
+ totalDifficulty: bigint | null;
3507
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3508
+ isSystemTx?: undefined;
3509
+ mint?: undefined;
3510
+ sourceHash?: undefined;
3511
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
3512
+ transactionsRoot: `0x${string}`;
3513
+ uncles: `0x${string}`[];
3514
+ } & {};
3515
+ type: "block";
3516
+ };
3517
+ readonly transaction: {
3518
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3519
+ accessList?: undefined;
3520
+ chainId?: `0x${string}` | undefined;
3521
+ type: "0x0";
3522
+ } & {
3523
+ isSystemTx?: undefined;
3524
+ mint?: undefined;
3525
+ sourceHash?: undefined;
3526
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3527
+ accessList: import("../index.js").AccessList;
3528
+ chainId: `0x${string}`;
3529
+ type: "0x1";
3530
+ } & {
3430
3531
  isSystemTx?: undefined;
3431
3532
  mint?: undefined;
3432
3533
  sourceHash?: undefined;
3433
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3534
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3535
+ accessList: import("../index.js").AccessList;
3536
+ chainId: `0x${string}`;
3537
+ type: "0x2";
3538
+ } & {
3539
+ isSystemTx?: undefined;
3540
+ mint?: undefined;
3541
+ sourceHash?: undefined;
3542
+ })) => ({
3543
+ blockHash: `0x${string}` | null;
3544
+ blockNumber: bigint | null;
3545
+ from: `0x${string}`;
3546
+ gas: bigint;
3547
+ hash: `0x${string}`;
3548
+ input: `0x${string}`;
3549
+ nonce: number;
3550
+ r: `0x${string}`;
3551
+ s: `0x${string}`;
3552
+ to: `0x${string}` | null;
3553
+ transactionIndex: number | null;
3554
+ typeHex: `0x${string}` | null;
3555
+ v: bigint;
3556
+ value: bigint;
3557
+ gasPrice: bigint;
3558
+ maxFeePerGas?: undefined;
3559
+ maxPriorityFeePerGas?: undefined;
3560
+ accessList?: undefined;
3561
+ chainId?: number | undefined;
3562
+ type: "legacy";
3563
+ isSystemTx?: undefined;
3564
+ mint?: undefined;
3565
+ sourceHash?: undefined;
3566
+ } | {
3567
+ blockHash: `0x${string}` | null;
3568
+ blockNumber: bigint | null;
3569
+ from: `0x${string}`;
3570
+ gas: bigint;
3571
+ hash: `0x${string}`;
3572
+ input: `0x${string}`;
3573
+ nonce: number;
3574
+ r: `0x${string}`;
3575
+ s: `0x${string}`;
3576
+ to: `0x${string}` | null;
3577
+ transactionIndex: number | null;
3578
+ typeHex: `0x${string}` | null;
3579
+ v: bigint;
3580
+ value: bigint;
3581
+ gasPrice: undefined;
3582
+ maxFeePerGas: bigint;
3583
+ maxPriorityFeePerGas: bigint;
3584
+ accessList?: undefined;
3585
+ chainId?: number | undefined;
3586
+ type: "deposit";
3434
3587
  isSystemTx?: boolean | undefined;
3435
- mint?: `0x${string}` | undefined;
3588
+ mint?: bigint | undefined;
3436
3589
  sourceHash: `0x${string}`;
3437
- type: "0x7e";
3438
- }))[];
3439
- }) => {
3440
- baseFeePerGas: bigint | null;
3441
- difficulty: bigint;
3442
- extraData: `0x${string}`;
3443
- gasLimit: bigint;
3444
- gasUsed: bigint;
3445
- hash: `0x${string}` | null;
3446
- logsBloom: `0x${string}` | null;
3447
- miner: `0x${string}`;
3448
- mixHash: `0x${string}`;
3449
- nonce: `0x${string}` | null;
3450
- number: bigint | null;
3451
- parentHash: `0x${string}`;
3452
- receiptsRoot: `0x${string}`;
3453
- sealFields: `0x${string}`[];
3454
- sha3Uncles: `0x${string}`;
3455
- size: bigint;
3456
- stateRoot: `0x${string}`;
3457
- timestamp: bigint;
3458
- totalDifficulty: bigint | null;
3459
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3590
+ } | {
3591
+ blockHash: `0x${string}` | null;
3592
+ blockNumber: bigint | null;
3593
+ from: `0x${string}`;
3594
+ gas: bigint;
3595
+ hash: `0x${string}`;
3596
+ input: `0x${string}`;
3597
+ nonce: number;
3598
+ r: `0x${string}`;
3599
+ s: `0x${string}`;
3600
+ to: `0x${string}` | null;
3601
+ transactionIndex: number | null;
3602
+ typeHex: `0x${string}` | null;
3603
+ v: bigint;
3604
+ value: bigint;
3605
+ gasPrice: bigint;
3606
+ maxFeePerGas?: undefined;
3607
+ maxPriorityFeePerGas?: undefined;
3608
+ accessList: import("../index.js").AccessList;
3609
+ chainId: number;
3610
+ type: "eip2930";
3611
+ isSystemTx?: undefined;
3612
+ mint?: undefined;
3613
+ sourceHash?: undefined;
3614
+ } | {
3615
+ blockHash: `0x${string}` | null;
3616
+ blockNumber: bigint | null;
3617
+ from: `0x${string}`;
3618
+ gas: bigint;
3619
+ hash: `0x${string}`;
3620
+ input: `0x${string}`;
3621
+ nonce: number;
3622
+ r: `0x${string}`;
3623
+ s: `0x${string}`;
3624
+ to: `0x${string}` | null;
3625
+ transactionIndex: number | null;
3626
+ typeHex: `0x${string}` | null;
3627
+ v: bigint;
3628
+ value: bigint;
3629
+ gasPrice: undefined;
3630
+ maxFeePerGas: bigint;
3631
+ maxPriorityFeePerGas: bigint;
3632
+ accessList: import("../index.js").AccessList;
3633
+ chainId: number;
3634
+ type: "eip1559";
3460
3635
  isSystemTx?: undefined;
3461
3636
  mint?: undefined;
3462
3637
  sourceHash?: undefined;
3463
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3638
+ } | {
3639
+ blockHash: `0x${string}` | null;
3640
+ blockNumber: bigint | null;
3641
+ from: `0x${string}`;
3642
+ gas: bigint;
3643
+ hash: `0x${string}`;
3644
+ input: `0x${string}`;
3645
+ nonce: number;
3646
+ r: `0x${string}`;
3647
+ s: `0x${string}`;
3648
+ to: `0x${string}` | null;
3649
+ transactionIndex: number | null;
3650
+ typeHex: `0x${string}` | null;
3651
+ v: bigint;
3652
+ value: bigint;
3653
+ gasPrice: undefined;
3654
+ maxFeePerGas: bigint;
3655
+ maxPriorityFeePerGas: bigint;
3656
+ accessList: import("../index.js").AccessList;
3657
+ chainId: number;
3658
+ type: "deposit";
3464
3659
  isSystemTx?: boolean | undefined;
3465
3660
  mint?: bigint | undefined;
3466
3661
  sourceHash: `0x${string}`;
3662
+ } | {
3663
+ blockHash: `0x${string}` | null;
3664
+ blockNumber: bigint | null;
3665
+ from: `0x${string}`;
3666
+ gas: bigint;
3667
+ hash: `0x${string}`;
3668
+ input: `0x${string}`;
3669
+ nonce: number;
3670
+ r: `0x${string}`;
3671
+ s: `0x${string}`;
3672
+ to: `0x${string}` | null;
3673
+ transactionIndex: number | null;
3674
+ typeHex: `0x${string}` | null;
3675
+ v: bigint;
3676
+ value: bigint;
3677
+ gasPrice: bigint;
3678
+ maxFeePerGas: undefined;
3679
+ maxPriorityFeePerGas: undefined;
3680
+ accessList: import("../index.js").AccessList;
3681
+ chainId: number;
3682
+ type: "eip2930";
3683
+ isSystemTx?: undefined;
3684
+ mint?: undefined;
3685
+ sourceHash?: undefined;
3686
+ } | {
3687
+ blockHash: `0x${string}` | null;
3688
+ blockNumber: bigint | null;
3689
+ from: `0x${string}`;
3690
+ gas: bigint;
3691
+ hash: `0x${string}`;
3692
+ input: `0x${string}`;
3693
+ nonce: number;
3694
+ r: `0x${string}`;
3695
+ s: `0x${string}`;
3696
+ to: `0x${string}` | null;
3697
+ transactionIndex: number | null;
3698
+ typeHex: `0x${string}` | null;
3699
+ v: bigint;
3700
+ value: bigint;
3701
+ gasPrice?: undefined;
3702
+ maxFeePerGas: bigint;
3703
+ maxPriorityFeePerGas: bigint;
3704
+ accessList: import("../index.js").AccessList;
3705
+ chainId: number;
3706
+ type: "eip1559";
3707
+ isSystemTx?: undefined;
3708
+ mint?: undefined;
3709
+ sourceHash?: undefined;
3710
+ } | {
3711
+ blockHash: `0x${string}` | null;
3712
+ blockNumber: bigint | null;
3713
+ from: `0x${string}`;
3714
+ gas: bigint;
3715
+ hash: `0x${string}`;
3716
+ input: `0x${string}`;
3717
+ nonce: number;
3718
+ r: `0x${string}`;
3719
+ s: `0x${string}`;
3720
+ to: `0x${string}` | null;
3721
+ transactionIndex: number | null;
3722
+ typeHex: `0x${string}` | null;
3723
+ v: bigint;
3724
+ value: bigint;
3725
+ gasPrice?: undefined;
3726
+ maxFeePerGas: bigint;
3727
+ maxPriorityFeePerGas: bigint;
3728
+ accessList: import("../index.js").AccessList;
3729
+ chainId: number;
3467
3730
  type: "deposit";
3468
- }))[];
3469
- transactionsRoot: `0x${string}`;
3470
- uncles: `0x${string}`[];
3471
- } & {
3472
- nonce: never;
3473
- difficulty: never;
3474
- gasLimit: never;
3475
- mixHash: never;
3476
- uncles: never;
3477
- };
3478
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3479
- accessList?: undefined;
3480
- chainId?: `0x${string}` | undefined;
3481
- type: "0x0";
3482
- } & {
3483
- isSystemTx?: undefined;
3484
- mint?: undefined;
3485
- sourceHash?: undefined;
3486
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3487
- accessList: import("../index.js").AccessList;
3488
- chainId: `0x${string}`;
3489
- type: "0x1";
3490
- } & {
3491
- isSystemTx?: undefined;
3492
- mint?: undefined;
3493
- sourceHash?: undefined;
3494
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3495
- accessList: import("../index.js").AccessList;
3496
- chainId: `0x${string}`;
3497
- type: "0x2";
3498
- } & {
3499
- isSystemTx?: undefined;
3500
- mint?: undefined;
3501
- sourceHash?: undefined;
3502
- })) => ({
3503
- blockHash: `0x${string}` | null;
3504
- blockNumber: bigint | null;
3505
- from: `0x${string}`;
3506
- gas: bigint;
3507
- hash: `0x${string}`;
3508
- input: `0x${string}`;
3509
- nonce: number;
3510
- r: `0x${string}`;
3511
- s: `0x${string}`;
3512
- to: `0x${string}` | null;
3513
- transactionIndex: number | null;
3514
- typeHex: `0x${string}` | null;
3515
- v: bigint;
3516
- value: bigint;
3517
- gasPrice: bigint;
3518
- maxFeePerGas?: undefined;
3519
- maxPriorityFeePerGas?: undefined;
3520
- accessList?: undefined;
3521
- chainId?: number | undefined;
3522
- type: "legacy";
3523
- isSystemTx?: undefined;
3524
- mint?: undefined;
3525
- sourceHash?: undefined;
3526
- } | {
3527
- blockHash: `0x${string}` | null;
3528
- blockNumber: bigint | null;
3529
- from: `0x${string}`;
3530
- gas: bigint;
3531
- hash: `0x${string}`;
3532
- input: `0x${string}`;
3533
- nonce: number;
3534
- r: `0x${string}`;
3535
- s: `0x${string}`;
3536
- to: `0x${string}` | null;
3537
- transactionIndex: number | null;
3538
- typeHex: `0x${string}` | null;
3539
- v: bigint;
3540
- value: bigint;
3541
- gasPrice: undefined;
3542
- maxFeePerGas: bigint;
3543
- maxPriorityFeePerGas: bigint;
3544
- accessList?: undefined;
3545
- chainId?: number | undefined;
3546
- type: "deposit";
3547
- isSystemTx?: boolean | undefined;
3548
- mint?: bigint | undefined;
3549
- sourceHash: `0x${string}`;
3550
- } | {
3551
- blockHash: `0x${string}` | null;
3552
- blockNumber: bigint | null;
3553
- from: `0x${string}`;
3554
- gas: bigint;
3555
- hash: `0x${string}`;
3556
- input: `0x${string}`;
3557
- nonce: number;
3558
- r: `0x${string}`;
3559
- s: `0x${string}`;
3560
- to: `0x${string}` | null;
3561
- transactionIndex: number | null;
3562
- typeHex: `0x${string}` | null;
3563
- v: bigint;
3564
- value: bigint;
3565
- gasPrice: bigint;
3566
- maxFeePerGas?: undefined;
3567
- maxPriorityFeePerGas?: undefined;
3568
- accessList: import("../index.js").AccessList;
3569
- chainId: number;
3570
- type: "eip2930";
3571
- isSystemTx?: undefined;
3572
- mint?: undefined;
3573
- sourceHash?: undefined;
3574
- } | {
3575
- blockHash: `0x${string}` | null;
3576
- blockNumber: bigint | null;
3577
- from: `0x${string}`;
3578
- gas: bigint;
3579
- hash: `0x${string}`;
3580
- input: `0x${string}`;
3581
- nonce: number;
3582
- r: `0x${string}`;
3583
- s: `0x${string}`;
3584
- to: `0x${string}` | null;
3585
- transactionIndex: number | null;
3586
- typeHex: `0x${string}` | null;
3587
- v: bigint;
3588
- value: bigint;
3589
- gasPrice: undefined;
3590
- maxFeePerGas: bigint;
3591
- maxPriorityFeePerGas: bigint;
3592
- accessList: import("../index.js").AccessList;
3593
- chainId: number;
3594
- type: "eip1559";
3595
- isSystemTx?: undefined;
3596
- mint?: undefined;
3597
- sourceHash?: undefined;
3598
- } | {
3599
- blockHash: `0x${string}` | null;
3600
- blockNumber: bigint | null;
3601
- from: `0x${string}`;
3602
- gas: bigint;
3603
- hash: `0x${string}`;
3604
- input: `0x${string}`;
3605
- nonce: number;
3606
- r: `0x${string}`;
3607
- s: `0x${string}`;
3608
- to: `0x${string}` | null;
3609
- transactionIndex: number | null;
3610
- typeHex: `0x${string}` | null;
3611
- v: bigint;
3612
- value: bigint;
3613
- gasPrice: undefined;
3614
- maxFeePerGas: bigint;
3615
- maxPriorityFeePerGas: bigint;
3616
- accessList: import("../index.js").AccessList;
3617
- chainId: number;
3618
- type: "deposit";
3619
- isSystemTx?: boolean | undefined;
3620
- mint?: bigint | undefined;
3621
- sourceHash: `0x${string}`;
3622
- } | {
3623
- blockHash: `0x${string}` | null;
3624
- blockNumber: bigint | null;
3625
- from: `0x${string}`;
3626
- gas: bigint;
3627
- hash: `0x${string}`;
3628
- input: `0x${string}`;
3629
- nonce: number;
3630
- r: `0x${string}`;
3631
- s: `0x${string}`;
3632
- to: `0x${string}` | null;
3633
- transactionIndex: number | null;
3634
- typeHex: `0x${string}` | null;
3635
- v: bigint;
3636
- value: bigint;
3637
- gasPrice: bigint;
3638
- maxFeePerGas: undefined;
3639
- maxPriorityFeePerGas: undefined;
3640
- accessList: import("../index.js").AccessList;
3641
- chainId: number;
3642
- type: "eip2930";
3643
- isSystemTx?: undefined;
3644
- mint?: undefined;
3645
- sourceHash?: undefined;
3646
- } | {
3647
- blockHash: `0x${string}` | null;
3648
- blockNumber: bigint | null;
3649
- from: `0x${string}`;
3650
- gas: bigint;
3651
- hash: `0x${string}`;
3652
- input: `0x${string}`;
3653
- nonce: number;
3654
- r: `0x${string}`;
3655
- s: `0x${string}`;
3656
- to: `0x${string}` | null;
3657
- transactionIndex: number | null;
3658
- typeHex: `0x${string}` | null;
3659
- v: bigint;
3660
- value: bigint;
3661
- gasPrice?: undefined;
3662
- maxFeePerGas: bigint;
3663
- maxPriorityFeePerGas: bigint;
3664
- accessList: import("../index.js").AccessList;
3665
- chainId: number;
3666
- type: "eip1559";
3667
- isSystemTx?: undefined;
3668
- mint?: undefined;
3669
- sourceHash?: undefined;
3670
- } | {
3671
- blockHash: `0x${string}` | null;
3672
- blockNumber: bigint | null;
3673
- from: `0x${string}`;
3674
- gas: bigint;
3675
- hash: `0x${string}`;
3676
- input: `0x${string}`;
3677
- nonce: number;
3678
- r: `0x${string}`;
3679
- s: `0x${string}`;
3680
- to: `0x${string}` | null;
3681
- transactionIndex: number | null;
3682
- typeHex: `0x${string}` | null;
3683
- v: bigint;
3684
- value: bigint;
3685
- gasPrice?: undefined;
3686
- maxFeePerGas: bigint;
3687
- maxPriorityFeePerGas: bigint;
3688
- accessList: import("../index.js").AccessList;
3689
- chainId: number;
3690
- type: "deposit";
3691
- isSystemTx?: boolean | undefined;
3692
- mint?: bigint | undefined;
3693
- sourceHash: `0x${string}`;
3694
- }) & {};
3731
+ isSystemTx?: boolean | undefined;
3732
+ mint?: bigint | undefined;
3733
+ sourceHash: `0x${string}`;
3734
+ }) & {};
3735
+ type: "transaction";
3736
+ };
3695
3737
  } | undefined;
3696
3738
  serializers: import("../index.js").Serializers<{
3697
- readonly block: (args: Partial<import("../index.js").RpcBlock> & {
3698
- transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3739
+ readonly block: {
3740
+ format: (args: Partial<import("../index.js").RpcBlock> & {
3741
+ transactions: `0x${string}`[] | ((import("../index.js").RpcTransaction & {
3742
+ isSystemTx?: undefined;
3743
+ mint?: undefined;
3744
+ sourceHash?: undefined;
3745
+ }) | import("./formatters/optimism.js").RpcDepositTransaction)[];
3746
+ }) => {
3747
+ baseFeePerGas: bigint | null;
3748
+ difficulty: bigint;
3749
+ extraData: `0x${string}`;
3750
+ gasLimit: bigint;
3751
+ gasUsed: bigint;
3752
+ hash: `0x${string}` | null;
3753
+ logsBloom: `0x${string}` | null;
3754
+ miner: `0x${string}`;
3755
+ mixHash: `0x${string}`;
3756
+ nonce: `0x${string}` | null;
3757
+ number: bigint | null;
3758
+ parentHash: `0x${string}`;
3759
+ receiptsRoot: `0x${string}`;
3760
+ sealFields: `0x${string}`[];
3761
+ sha3Uncles: `0x${string}`;
3762
+ size: bigint;
3763
+ stateRoot: `0x${string}`;
3764
+ timestamp: bigint;
3765
+ totalDifficulty: bigint | null;
3766
+ transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3767
+ isSystemTx?: undefined;
3768
+ mint?: undefined;
3769
+ sourceHash?: undefined;
3770
+ }) | import("./formatters/optimism.js").DepositTransaction)[];
3771
+ transactionsRoot: `0x${string}`;
3772
+ uncles: `0x${string}`[];
3773
+ } & {};
3774
+ type: "block";
3775
+ };
3776
+ readonly transaction: {
3777
+ format: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3778
+ accessList?: undefined;
3779
+ chainId?: `0x${string}` | undefined;
3780
+ type: "0x0";
3781
+ } & {
3699
3782
  isSystemTx?: undefined;
3700
3783
  mint?: undefined;
3701
3784
  sourceHash?: undefined;
3702
- }) | (import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3785
+ }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3786
+ accessList: import("../index.js").AccessList;
3787
+ chainId: `0x${string}`;
3788
+ type: "0x1";
3789
+ } & {
3790
+ isSystemTx?: undefined;
3791
+ mint?: undefined;
3792
+ sourceHash?: undefined;
3793
+ }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3794
+ accessList: import("../index.js").AccessList;
3795
+ chainId: `0x${string}`;
3796
+ type: "0x2";
3797
+ } & {
3798
+ isSystemTx?: undefined;
3799
+ mint?: undefined;
3800
+ sourceHash?: undefined;
3801
+ })) => ({
3802
+ blockHash: `0x${string}` | null;
3803
+ blockNumber: bigint | null;
3804
+ from: `0x${string}`;
3805
+ gas: bigint;
3806
+ hash: `0x${string}`;
3807
+ input: `0x${string}`;
3808
+ nonce: number;
3809
+ r: `0x${string}`;
3810
+ s: `0x${string}`;
3811
+ to: `0x${string}` | null;
3812
+ transactionIndex: number | null;
3813
+ typeHex: `0x${string}` | null;
3814
+ v: bigint;
3815
+ value: bigint;
3816
+ gasPrice: bigint;
3817
+ maxFeePerGas?: undefined;
3818
+ maxPriorityFeePerGas?: undefined;
3819
+ accessList?: undefined;
3820
+ chainId?: number | undefined;
3821
+ type: "legacy";
3822
+ isSystemTx?: undefined;
3823
+ mint?: undefined;
3824
+ sourceHash?: undefined;
3825
+ } | {
3826
+ blockHash: `0x${string}` | null;
3827
+ blockNumber: bigint | null;
3828
+ from: `0x${string}`;
3829
+ gas: bigint;
3830
+ hash: `0x${string}`;
3831
+ input: `0x${string}`;
3832
+ nonce: number;
3833
+ r: `0x${string}`;
3834
+ s: `0x${string}`;
3835
+ to: `0x${string}` | null;
3836
+ transactionIndex: number | null;
3837
+ typeHex: `0x${string}` | null;
3838
+ v: bigint;
3839
+ value: bigint;
3840
+ gasPrice: undefined;
3841
+ maxFeePerGas: bigint;
3842
+ maxPriorityFeePerGas: bigint;
3843
+ accessList?: undefined;
3844
+ chainId?: number | undefined;
3845
+ type: "deposit";
3703
3846
  isSystemTx?: boolean | undefined;
3704
- mint?: `0x${string}` | undefined;
3847
+ mint?: bigint | undefined;
3705
3848
  sourceHash: `0x${string}`;
3706
- type: "0x7e";
3707
- }))[];
3708
- }) => {
3709
- baseFeePerGas: bigint | null;
3710
- difficulty: bigint;
3711
- extraData: `0x${string}`;
3712
- gasLimit: bigint;
3713
- gasUsed: bigint;
3714
- hash: `0x${string}` | null;
3715
- logsBloom: `0x${string}` | null;
3716
- miner: `0x${string}`;
3717
- mixHash: `0x${string}`;
3718
- nonce: `0x${string}` | null;
3719
- number: bigint | null;
3720
- parentHash: `0x${string}`;
3721
- receiptsRoot: `0x${string}`;
3722
- sealFields: `0x${string}`[];
3723
- sha3Uncles: `0x${string}`;
3724
- size: bigint;
3725
- stateRoot: `0x${string}`;
3726
- timestamp: bigint;
3727
- totalDifficulty: bigint | null;
3728
- transactions: `0x${string}`[] | ((import("../index.js").Transaction & {
3849
+ } | {
3850
+ blockHash: `0x${string}` | null;
3851
+ blockNumber: bigint | null;
3852
+ from: `0x${string}`;
3853
+ gas: bigint;
3854
+ hash: `0x${string}`;
3855
+ input: `0x${string}`;
3856
+ nonce: number;
3857
+ r: `0x${string}`;
3858
+ s: `0x${string}`;
3859
+ to: `0x${string}` | null;
3860
+ transactionIndex: number | null;
3861
+ typeHex: `0x${string}` | null;
3862
+ v: bigint;
3863
+ value: bigint;
3864
+ gasPrice: bigint;
3865
+ maxFeePerGas?: undefined;
3866
+ maxPriorityFeePerGas?: undefined;
3867
+ accessList: import("../index.js").AccessList;
3868
+ chainId: number;
3869
+ type: "eip2930";
3870
+ isSystemTx?: undefined;
3871
+ mint?: undefined;
3872
+ sourceHash?: undefined;
3873
+ } | {
3874
+ blockHash: `0x${string}` | null;
3875
+ blockNumber: bigint | null;
3876
+ from: `0x${string}`;
3877
+ gas: bigint;
3878
+ hash: `0x${string}`;
3879
+ input: `0x${string}`;
3880
+ nonce: number;
3881
+ r: `0x${string}`;
3882
+ s: `0x${string}`;
3883
+ to: `0x${string}` | null;
3884
+ transactionIndex: number | null;
3885
+ typeHex: `0x${string}` | null;
3886
+ v: bigint;
3887
+ value: bigint;
3888
+ gasPrice: undefined;
3889
+ maxFeePerGas: bigint;
3890
+ maxPriorityFeePerGas: bigint;
3891
+ accessList: import("../index.js").AccessList;
3892
+ chainId: number;
3893
+ type: "eip1559";
3729
3894
  isSystemTx?: undefined;
3730
3895
  mint?: undefined;
3731
3896
  sourceHash?: undefined;
3732
- }) | (import("../index.js").TransactionBase & import("../index.js").FeeValuesEIP1559 & {
3897
+ } | {
3898
+ blockHash: `0x${string}` | null;
3899
+ blockNumber: bigint | null;
3900
+ from: `0x${string}`;
3901
+ gas: bigint;
3902
+ hash: `0x${string}`;
3903
+ input: `0x${string}`;
3904
+ nonce: number;
3905
+ r: `0x${string}`;
3906
+ s: `0x${string}`;
3907
+ to: `0x${string}` | null;
3908
+ transactionIndex: number | null;
3909
+ typeHex: `0x${string}` | null;
3910
+ v: bigint;
3911
+ value: bigint;
3912
+ gasPrice: undefined;
3913
+ maxFeePerGas: bigint;
3914
+ maxPriorityFeePerGas: bigint;
3915
+ accessList: import("../index.js").AccessList;
3916
+ chainId: number;
3917
+ type: "deposit";
3733
3918
  isSystemTx?: boolean | undefined;
3734
3919
  mint?: bigint | undefined;
3735
3920
  sourceHash: `0x${string}`;
3921
+ } | {
3922
+ blockHash: `0x${string}` | null;
3923
+ blockNumber: bigint | null;
3924
+ from: `0x${string}`;
3925
+ gas: bigint;
3926
+ hash: `0x${string}`;
3927
+ input: `0x${string}`;
3928
+ nonce: number;
3929
+ r: `0x${string}`;
3930
+ s: `0x${string}`;
3931
+ to: `0x${string}` | null;
3932
+ transactionIndex: number | null;
3933
+ typeHex: `0x${string}` | null;
3934
+ v: bigint;
3935
+ value: bigint;
3936
+ gasPrice: bigint;
3937
+ maxFeePerGas: undefined;
3938
+ maxPriorityFeePerGas: undefined;
3939
+ accessList: import("../index.js").AccessList;
3940
+ chainId: number;
3941
+ type: "eip2930";
3942
+ isSystemTx?: undefined;
3943
+ mint?: undefined;
3944
+ sourceHash?: undefined;
3945
+ } | {
3946
+ blockHash: `0x${string}` | null;
3947
+ blockNumber: bigint | null;
3948
+ from: `0x${string}`;
3949
+ gas: bigint;
3950
+ hash: `0x${string}`;
3951
+ input: `0x${string}`;
3952
+ nonce: number;
3953
+ r: `0x${string}`;
3954
+ s: `0x${string}`;
3955
+ to: `0x${string}` | null;
3956
+ transactionIndex: number | null;
3957
+ typeHex: `0x${string}` | null;
3958
+ v: bigint;
3959
+ value: bigint;
3960
+ gasPrice?: undefined;
3961
+ maxFeePerGas: bigint;
3962
+ maxPriorityFeePerGas: bigint;
3963
+ accessList: import("../index.js").AccessList;
3964
+ chainId: number;
3965
+ type: "eip1559";
3966
+ isSystemTx?: undefined;
3967
+ mint?: undefined;
3968
+ sourceHash?: undefined;
3969
+ } | {
3970
+ blockHash: `0x${string}` | null;
3971
+ blockNumber: bigint | null;
3972
+ from: `0x${string}`;
3973
+ gas: bigint;
3974
+ hash: `0x${string}`;
3975
+ input: `0x${string}`;
3976
+ nonce: number;
3977
+ r: `0x${string}`;
3978
+ s: `0x${string}`;
3979
+ to: `0x${string}` | null;
3980
+ transactionIndex: number | null;
3981
+ typeHex: `0x${string}` | null;
3982
+ v: bigint;
3983
+ value: bigint;
3984
+ gasPrice?: undefined;
3985
+ maxFeePerGas: bigint;
3986
+ maxPriorityFeePerGas: bigint;
3987
+ accessList: import("../index.js").AccessList;
3988
+ chainId: number;
3736
3989
  type: "deposit";
3737
- }))[];
3738
- transactionsRoot: `0x${string}`;
3739
- uncles: `0x${string}`[];
3740
- } & {
3741
- nonce: never;
3742
- difficulty: never;
3743
- gasLimit: never;
3744
- mixHash: never;
3745
- uncles: never;
3746
- };
3747
- readonly transaction: (args: (Partial<import("../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, "0x0">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3748
- accessList?: undefined;
3749
- chainId?: `0x${string}` | undefined;
3750
- type: "0x0";
3751
- } & {
3752
- isSystemTx?: undefined;
3753
- mint?: undefined;
3754
- sourceHash?: undefined;
3755
- }) | (Partial<import("../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, "0x1">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesLegacy<`0x${string}`> & {
3756
- accessList: import("../index.js").AccessList;
3757
- chainId: `0x${string}`;
3758
- type: "0x1";
3759
- } & {
3760
- isSystemTx?: undefined;
3761
- mint?: undefined;
3762
- sourceHash?: undefined;
3763
- }) | (Partial<import("../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, "0x2">> & import("../index.js").TransactionBase<`0x${string}`, `0x${string}`> & import("../index.js").FeeValuesEIP1559<`0x${string}`> & {
3764
- accessList: import("../index.js").AccessList;
3765
- chainId: `0x${string}`;
3766
- type: "0x2";
3767
- } & {
3768
- isSystemTx?: undefined;
3769
- mint?: undefined;
3770
- sourceHash?: undefined;
3771
- })) => ({
3772
- blockHash: `0x${string}` | null;
3773
- blockNumber: bigint | null;
3774
- from: `0x${string}`;
3775
- gas: bigint;
3776
- hash: `0x${string}`;
3777
- input: `0x${string}`;
3778
- nonce: number;
3779
- r: `0x${string}`;
3780
- s: `0x${string}`;
3781
- to: `0x${string}` | null;
3782
- transactionIndex: number | null;
3783
- typeHex: `0x${string}` | null;
3784
- v: bigint;
3785
- value: bigint;
3786
- gasPrice: bigint;
3787
- maxFeePerGas?: undefined;
3788
- maxPriorityFeePerGas?: undefined;
3789
- accessList?: undefined;
3790
- chainId?: number | undefined;
3791
- type: "legacy";
3792
- isSystemTx?: undefined;
3793
- mint?: undefined;
3794
- sourceHash?: undefined;
3795
- } | {
3796
- blockHash: `0x${string}` | null;
3797
- blockNumber: bigint | null;
3798
- from: `0x${string}`;
3799
- gas: bigint;
3800
- hash: `0x${string}`;
3801
- input: `0x${string}`;
3802
- nonce: number;
3803
- r: `0x${string}`;
3804
- s: `0x${string}`;
3805
- to: `0x${string}` | null;
3806
- transactionIndex: number | null;
3807
- typeHex: `0x${string}` | null;
3808
- v: bigint;
3809
- value: bigint;
3810
- gasPrice: undefined;
3811
- maxFeePerGas: bigint;
3812
- maxPriorityFeePerGas: bigint;
3813
- accessList?: undefined;
3814
- chainId?: number | undefined;
3815
- type: "deposit";
3816
- isSystemTx?: boolean | undefined;
3817
- mint?: bigint | undefined;
3818
- sourceHash: `0x${string}`;
3819
- } | {
3820
- blockHash: `0x${string}` | null;
3821
- blockNumber: bigint | null;
3822
- from: `0x${string}`;
3823
- gas: bigint;
3824
- hash: `0x${string}`;
3825
- input: `0x${string}`;
3826
- nonce: number;
3827
- r: `0x${string}`;
3828
- s: `0x${string}`;
3829
- to: `0x${string}` | null;
3830
- transactionIndex: number | null;
3831
- typeHex: `0x${string}` | null;
3832
- v: bigint;
3833
- value: bigint;
3834
- gasPrice: bigint;
3835
- maxFeePerGas?: undefined;
3836
- maxPriorityFeePerGas?: undefined;
3837
- accessList: import("../index.js").AccessList;
3838
- chainId: number;
3839
- type: "eip2930";
3840
- isSystemTx?: undefined;
3841
- mint?: undefined;
3842
- sourceHash?: undefined;
3843
- } | {
3844
- blockHash: `0x${string}` | null;
3845
- blockNumber: bigint | null;
3846
- from: `0x${string}`;
3847
- gas: bigint;
3848
- hash: `0x${string}`;
3849
- input: `0x${string}`;
3850
- nonce: number;
3851
- r: `0x${string}`;
3852
- s: `0x${string}`;
3853
- to: `0x${string}` | null;
3854
- transactionIndex: number | null;
3855
- typeHex: `0x${string}` | null;
3856
- v: bigint;
3857
- value: bigint;
3858
- gasPrice: undefined;
3859
- maxFeePerGas: bigint;
3860
- maxPriorityFeePerGas: bigint;
3861
- accessList: import("../index.js").AccessList;
3862
- chainId: number;
3863
- type: "eip1559";
3864
- isSystemTx?: undefined;
3865
- mint?: undefined;
3866
- sourceHash?: undefined;
3867
- } | {
3868
- blockHash: `0x${string}` | null;
3869
- blockNumber: bigint | null;
3870
- from: `0x${string}`;
3871
- gas: bigint;
3872
- hash: `0x${string}`;
3873
- input: `0x${string}`;
3874
- nonce: number;
3875
- r: `0x${string}`;
3876
- s: `0x${string}`;
3877
- to: `0x${string}` | null;
3878
- transactionIndex: number | null;
3879
- typeHex: `0x${string}` | null;
3880
- v: bigint;
3881
- value: bigint;
3882
- gasPrice: undefined;
3883
- maxFeePerGas: bigint;
3884
- maxPriorityFeePerGas: bigint;
3885
- accessList: import("../index.js").AccessList;
3886
- chainId: number;
3887
- type: "deposit";
3888
- isSystemTx?: boolean | undefined;
3889
- mint?: bigint | undefined;
3890
- sourceHash: `0x${string}`;
3891
- } | {
3892
- blockHash: `0x${string}` | null;
3893
- blockNumber: bigint | null;
3894
- from: `0x${string}`;
3895
- gas: bigint;
3896
- hash: `0x${string}`;
3897
- input: `0x${string}`;
3898
- nonce: number;
3899
- r: `0x${string}`;
3900
- s: `0x${string}`;
3901
- to: `0x${string}` | null;
3902
- transactionIndex: number | null;
3903
- typeHex: `0x${string}` | null;
3904
- v: bigint;
3905
- value: bigint;
3906
- gasPrice: bigint;
3907
- maxFeePerGas: undefined;
3908
- maxPriorityFeePerGas: undefined;
3909
- accessList: import("../index.js").AccessList;
3910
- chainId: number;
3911
- type: "eip2930";
3912
- isSystemTx?: undefined;
3913
- mint?: undefined;
3914
- sourceHash?: undefined;
3915
- } | {
3916
- blockHash: `0x${string}` | null;
3917
- blockNumber: bigint | null;
3918
- from: `0x${string}`;
3919
- gas: bigint;
3920
- hash: `0x${string}`;
3921
- input: `0x${string}`;
3922
- nonce: number;
3923
- r: `0x${string}`;
3924
- s: `0x${string}`;
3925
- to: `0x${string}` | null;
3926
- transactionIndex: number | null;
3927
- typeHex: `0x${string}` | null;
3928
- v: bigint;
3929
- value: bigint;
3930
- gasPrice?: undefined;
3931
- maxFeePerGas: bigint;
3932
- maxPriorityFeePerGas: bigint;
3933
- accessList: import("../index.js").AccessList;
3934
- chainId: number;
3935
- type: "eip1559";
3936
- isSystemTx?: undefined;
3937
- mint?: undefined;
3938
- sourceHash?: undefined;
3939
- } | {
3940
- blockHash: `0x${string}` | null;
3941
- blockNumber: bigint | null;
3942
- from: `0x${string}`;
3943
- gas: bigint;
3944
- hash: `0x${string}`;
3945
- input: `0x${string}`;
3946
- nonce: number;
3947
- r: `0x${string}`;
3948
- s: `0x${string}`;
3949
- to: `0x${string}` | null;
3950
- transactionIndex: number | null;
3951
- typeHex: `0x${string}` | null;
3952
- v: bigint;
3953
- value: bigint;
3954
- gasPrice?: undefined;
3955
- maxFeePerGas: bigint;
3956
- maxPriorityFeePerGas: bigint;
3957
- accessList: import("../index.js").AccessList;
3958
- chainId: number;
3959
- type: "deposit";
3960
- isSystemTx?: boolean | undefined;
3961
- mint?: bigint | undefined;
3962
- sourceHash: `0x${string}`;
3963
- }) & {};
3990
+ isSystemTx?: boolean | undefined;
3991
+ mint?: bigint | undefined;
3992
+ sourceHash: `0x${string}`;
3993
+ }) & {};
3994
+ type: "transaction";
3995
+ };
3964
3996
  }> | undefined;
3965
3997
  };
3966
3998
  export declare const polygon: {