web3-tools-mcp 3.1.0 → 3.2.0

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 (48) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +23 -11
  3. package/dist/chains.d.ts +609 -65
  4. package/dist/chains.d.ts.map +1 -1
  5. package/dist/chains.js +89 -28
  6. package/dist/chains.js.map +1 -1
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +2 -4
  9. package/dist/client.js.map +1 -1
  10. package/dist/http-server.d.ts +1 -1
  11. package/dist/http-server.d.ts.map +1 -1
  12. package/dist/http-server.js +3 -2
  13. package/dist/http-server.js.map +1 -1
  14. package/dist/index.js +0 -5
  15. package/dist/index.js.map +1 -1
  16. package/dist/tools/index.d.ts.map +1 -1
  17. package/dist/tools/index.js +2 -0
  18. package/dist/tools/index.js.map +1 -1
  19. package/dist/tools/read/advanced.d.ts +16 -16
  20. package/dist/tools/read/balance.d.ts +6 -6
  21. package/dist/tools/read/contract-info.d.ts +12 -12
  22. package/dist/tools/read/contract.d.ts +10 -10
  23. package/dist/tools/read/defi.d.ts +86 -0
  24. package/dist/tools/read/defi.d.ts.map +1 -0
  25. package/dist/tools/read/defi.js +210 -0
  26. package/dist/tools/read/defi.js.map +1 -0
  27. package/dist/tools/read/gas.d.ts +16 -16
  28. package/dist/tools/read/logs.d.ts +4 -4
  29. package/dist/tools/sign/transactions.d.ts +12 -12
  30. package/dist/tools/sign/wallet.d.ts +4 -4
  31. package/dist/types.d.ts +0 -1
  32. package/dist/types.d.ts.map +1 -1
  33. package/dist/utils.d.ts.map +1 -1
  34. package/dist/utils.js +1 -2
  35. package/dist/utils.js.map +1 -1
  36. package/dist/wallet-client.d.ts.map +1 -1
  37. package/dist/wallet-client.js +2 -2
  38. package/dist/wallet-client.js.map +1 -1
  39. package/package.json +2 -2
  40. package/src/chains.ts +101 -31
  41. package/src/client.ts +2 -3
  42. package/src/http-server.ts +3 -3
  43. package/src/index.ts +0 -5
  44. package/src/tools/index.ts +2 -0
  45. package/src/tools/read/defi.ts +287 -0
  46. package/src/types.ts +0 -1
  47. package/src/utils.ts +1 -2
  48. package/src/wallet-client.ts +9 -2
package/dist/chains.d.ts CHANGED
@@ -8,13 +8,18 @@ interface ChainInfo {
8
8
  chain: Chain;
9
9
  /** Subdomain under g.alchemy.com; absent where Alchemy has no endpoint. */
10
10
  alchemy?: string;
11
- /** Subdomain under infura.io; absent where Infura has no endpoint. */
12
- infura?: string;
13
- /** Used when no provider key is configured. */
11
+ /** False where Alchemy serves the RPC but not its token API, which `get_portfolio` needs. */
12
+ alchemyTokenApi?: false;
13
+ /** Used when no Alchemy key is configured, or Alchemy has no endpoint. */
14
14
  fallback: string;
15
15
  /** Block explorer domain, for links. Absent where there is nothing to link to. */
16
16
  explorer?: string;
17
17
  hypersync?: string;
18
+ /** DefiLlama's two names for the chain: the prefix of a coin id, and the `chain` of a yield pool. */
19
+ llama?: {
20
+ coins: string;
21
+ yields: string;
22
+ };
18
23
  }
19
24
  declare const TABLE: {
20
25
  readonly mainnet: {
@@ -71,10 +76,13 @@ declare const TABLE: {
71
76
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
72
77
  };
73
78
  readonly alchemy: "eth-mainnet";
74
- readonly infura: "mainnet";
75
79
  readonly fallback: "https://ethereum-rpc.publicnode.com";
76
80
  readonly explorer: "etherscan.io";
77
81
  readonly hypersync: "https://eth.hypersync.xyz";
82
+ readonly llama: {
83
+ readonly coins: "ethereum";
84
+ readonly yields: "Ethereum";
85
+ };
78
86
  };
79
87
  readonly arbitrum: {
80
88
  readonly chain: {
@@ -126,10 +134,13 @@ declare const TABLE: {
126
134
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
127
135
  };
128
136
  readonly alchemy: "arb-mainnet";
129
- readonly infura: "arbitrum-mainnet";
130
137
  readonly fallback: "https://arb1.arbitrum.io/rpc";
131
138
  readonly explorer: "arbiscan.io";
132
139
  readonly hypersync: "https://arbitrum.hypersync.xyz";
140
+ readonly llama: {
141
+ readonly coins: "arbitrum";
142
+ readonly yields: "Arbitrum";
143
+ };
133
144
  };
134
145
  readonly avalanche: {
135
146
  readonly chain: {
@@ -181,10 +192,13 @@ declare const TABLE: {
181
192
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
182
193
  };
183
194
  readonly alchemy: "avax-mainnet";
184
- readonly infura: "avalanche-mainnet";
185
195
  readonly fallback: "https://api.avax.network/ext/bc/C/rpc";
186
196
  readonly explorer: "snowtrace.io";
187
197
  readonly hypersync: "https://avalanche.hypersync.xyz";
198
+ readonly llama: {
199
+ readonly coins: "avax";
200
+ readonly yields: "Avalanche";
201
+ };
188
202
  };
189
203
  readonly base: {
190
204
  readonly chain: {
@@ -297,6 +311,10 @@ declare const TABLE: {
297
311
  readonly fallback: "https://mainnet.base.org";
298
312
  readonly explorer: "basescan.org";
299
313
  readonly hypersync: "https://base.hypersync.xyz";
314
+ readonly llama: {
315
+ readonly coins: "base";
316
+ readonly yields: "Base";
317
+ };
300
318
  };
301
319
  readonly bnb: {
302
320
  readonly chain: {
@@ -348,10 +366,13 @@ declare const TABLE: {
348
366
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
349
367
  };
350
368
  readonly alchemy: "bnb-mainnet";
351
- readonly infura: "bsc-mainnet";
352
369
  readonly fallback: "https://bsc-dataseed.bnbchain.org";
353
370
  readonly explorer: "bscscan.com";
354
371
  readonly hypersync: "https://bsc.hypersync.xyz";
372
+ readonly llama: {
373
+ readonly coins: "bsc";
374
+ readonly yields: "BSC";
375
+ };
355
376
  };
356
377
  readonly gnosis: {
357
378
  readonly chain: {
@@ -407,59 +428,10 @@ declare const TABLE: {
407
428
  readonly fallback: "https://rpc.gnosischain.com";
408
429
  readonly explorer: "gnosisscan.io";
409
430
  readonly hypersync: "https://gnosis.hypersync.xyz";
410
- };
411
- readonly sonic: {
412
- readonly chain: {
413
- blockExplorers: {
414
- readonly default: {
415
- readonly name: "Sonic Explorer";
416
- readonly url: "https://sonicscan.org";
417
- };
418
- };
419
- blockTime: 630;
420
- contracts: {
421
- readonly multicall3: {
422
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
423
- readonly blockCreated: 60;
424
- };
425
- };
426
- ensTlds?: readonly string[] | undefined;
427
- id: 146;
428
- name: "Sonic";
429
- nativeCurrency: {
430
- readonly decimals: 18;
431
- readonly name: "Sonic";
432
- readonly symbol: "S";
433
- };
434
- experimental_preconfirmationTime?: number | undefined | undefined;
435
- rpcUrls: {
436
- readonly default: {
437
- readonly http: readonly ["https://rpc.soniclabs.com"];
438
- };
439
- };
440
- sourceId?: number | undefined | undefined;
441
- supportsTransactionReplacementDetection?: boolean | undefined | undefined;
442
- testnet: false;
443
- custom?: Record<string, unknown> | undefined;
444
- extendSchema?: Record<string, unknown> | undefined;
445
- fees?: import("viem").ChainFees<undefined> | undefined;
446
- formatters?: undefined;
447
- prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
448
- client: import("viem").Client;
449
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
450
- }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
451
- client: import("viem").Client;
452
- phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
453
- }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
454
- runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
455
- }] | undefined;
456
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
457
- verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
431
+ readonly llama: {
432
+ readonly coins: "xdai";
433
+ readonly yields: "Gnosis";
458
434
  };
459
- readonly alchemy: "sonic-mainnet";
460
- readonly fallback: "https://rpc.soniclabs.com";
461
- readonly explorer: "sonicscan.org";
462
- readonly hypersync: "https://sonic.hypersync.xyz";
463
435
  };
464
436
  readonly optimism: {
465
437
  readonly chain: {
@@ -567,10 +539,13 @@ declare const TABLE: {
567
539
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
568
540
  };
569
541
  readonly alchemy: "opt-mainnet";
570
- readonly infura: "optimism-mainnet";
571
542
  readonly fallback: "https://mainnet.optimism.io";
572
543
  readonly explorer: "optimistic.etherscan.io";
573
544
  readonly hypersync: "https://optimism.hypersync.xyz";
545
+ readonly llama: {
546
+ readonly coins: "optimism";
547
+ readonly yields: "OP Mainnet";
548
+ };
574
549
  };
575
550
  readonly polygon: {
576
551
  readonly chain: {
@@ -622,10 +597,13 @@ declare const TABLE: {
622
597
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
623
598
  };
624
599
  readonly alchemy: "polygon-mainnet";
625
- readonly infura: "polygon-mainnet";
626
600
  readonly fallback: "https://polygon-bor-rpc.publicnode.com";
627
601
  readonly explorer: "polygonscan.com";
628
602
  readonly hypersync: "https://polygon.hypersync.xyz";
603
+ readonly llama: {
604
+ readonly coins: "polygon";
605
+ readonly yields: "Polygon";
606
+ };
629
607
  };
630
608
  readonly zksync: {
631
609
  readonly chain: {
@@ -714,10 +692,13 @@ declare const TABLE: {
714
692
  readonly network: "zksync-era";
715
693
  };
716
694
  readonly alchemy: "zksync-mainnet";
717
- readonly infura: "zksync-mainnet";
718
695
  readonly fallback: "https://mainnet.era.zksync.io";
719
696
  readonly explorer: "era.zksync.network";
720
697
  readonly hypersync: "https://zksync.hypersync.xyz";
698
+ readonly llama: {
699
+ readonly coins: "era";
700
+ readonly yields: "ZKsync Era";
701
+ };
721
702
  };
722
703
  readonly linea: {
723
704
  readonly chain: {
@@ -781,10 +762,13 @@ declare const TABLE: {
781
762
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
782
763
  };
783
764
  readonly alchemy: "linea-mainnet";
784
- readonly infura: "linea-mainnet";
785
765
  readonly fallback: "https://rpc.linea.build";
786
766
  readonly explorer: "lineascan.build";
787
767
  readonly hypersync: "https://linea.hypersync.xyz";
768
+ readonly llama: {
769
+ readonly coins: "linea";
770
+ readonly yields: "Linea";
771
+ };
788
772
  };
789
773
  readonly unichain: {
790
774
  readonly chain: {
@@ -887,10 +871,568 @@ declare const TABLE: {
887
871
  verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
888
872
  };
889
873
  readonly alchemy: "unichain-mainnet";
890
- readonly infura: "unichain-mainnet";
891
874
  readonly fallback: "https://mainnet.unichain.org";
892
875
  readonly explorer: "uniscan.xyz";
893
876
  readonly hypersync: "https://unichain.hypersync.xyz";
877
+ readonly llama: {
878
+ readonly coins: "unichain";
879
+ readonly yields: "Unichain";
880
+ };
881
+ };
882
+ readonly monad: {
883
+ readonly chain: {
884
+ blockExplorers: {
885
+ readonly default: {
886
+ readonly name: "Monadscan";
887
+ readonly url: "https://monadscan.com";
888
+ readonly apiUrl: "https://api.etherscan.io/v2/api?chainid=143";
889
+ };
890
+ readonly monadvision: {
891
+ readonly name: "MonadVision";
892
+ readonly url: "https://monadvision.com";
893
+ };
894
+ };
895
+ blockTime: 400;
896
+ contracts: {
897
+ readonly multicall3: {
898
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
899
+ readonly blockCreated: 9248132;
900
+ };
901
+ };
902
+ ensTlds?: readonly string[] | undefined;
903
+ id: 143;
904
+ name: "Monad";
905
+ nativeCurrency: {
906
+ readonly name: "Monad";
907
+ readonly symbol: "MON";
908
+ readonly decimals: 18;
909
+ };
910
+ experimental_preconfirmationTime?: number | undefined | undefined;
911
+ rpcUrls: {
912
+ readonly default: {
913
+ readonly http: readonly ["https://rpc.monad.xyz", "https://rpc1.monad.xyz"];
914
+ readonly webSocket: readonly ["wss://rpc.monad.xyz", "wss://rpc1.monad.xyz"];
915
+ };
916
+ };
917
+ sourceId?: number | undefined | undefined;
918
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
919
+ testnet: false;
920
+ custom?: Record<string, unknown> | undefined;
921
+ extendSchema?: Record<string, unknown> | undefined;
922
+ fees?: import("viem").ChainFees<undefined> | undefined;
923
+ formatters?: undefined;
924
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
925
+ client: import("viem").Client;
926
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
927
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
928
+ client: import("viem").Client;
929
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
930
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
931
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
932
+ }] | undefined;
933
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
934
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
935
+ };
936
+ readonly alchemy: "monad-mainnet";
937
+ readonly fallback: "https://rpc.monad.xyz";
938
+ readonly explorer: "monadscan.com";
939
+ readonly hypersync: "https://monad.hypersync.xyz";
940
+ readonly llama: {
941
+ readonly coins: "monad";
942
+ readonly yields: "Monad";
943
+ };
944
+ };
945
+ readonly robinhood: {
946
+ readonly chain: {
947
+ blockExplorers: {
948
+ readonly default: {
949
+ readonly name: "Blockscout";
950
+ readonly url: "https://robinhoodchain.blockscout.com";
951
+ readonly apiUrl: "https://robinhoodchain.blockscout.com/api";
952
+ };
953
+ };
954
+ blockTime: 100;
955
+ contracts: {
956
+ readonly multicall3: {
957
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
958
+ };
959
+ };
960
+ ensTlds?: readonly string[] | undefined;
961
+ id: 4663;
962
+ name: "Robinhood Chain";
963
+ nativeCurrency: {
964
+ readonly name: "Ether";
965
+ readonly symbol: "ETH";
966
+ readonly decimals: 18;
967
+ };
968
+ experimental_preconfirmationTime?: number | undefined | undefined;
969
+ rpcUrls: {
970
+ readonly default: {
971
+ readonly http: readonly ["https://rpc.mainnet.chain.robinhood.com", "https://rpc.ordofi.network"];
972
+ readonly webSocket: readonly ["wss://rpc.ordofi.network"];
973
+ };
974
+ };
975
+ sourceId?: number | undefined | undefined;
976
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
977
+ testnet?: boolean | undefined | undefined;
978
+ custom?: Record<string, unknown> | undefined;
979
+ extendSchema?: Record<string, unknown> | undefined;
980
+ fees?: import("viem").ChainFees<undefined> | undefined;
981
+ formatters?: undefined;
982
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
983
+ client: import("viem").Client;
984
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
985
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
986
+ client: import("viem").Client;
987
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
988
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
989
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
990
+ }] | undefined;
991
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
992
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
993
+ };
994
+ readonly alchemy: "robinhood-mainnet";
995
+ readonly fallback: "https://rpc.mainnet.chain.robinhood.com";
996
+ readonly explorer: "robinhoodchain.blockscout.com";
997
+ readonly hypersync: "https://robinhood.hypersync.xyz";
998
+ readonly llama: {
999
+ readonly coins: "robinhood";
1000
+ readonly yields: "Robinhood Chain";
1001
+ };
1002
+ };
1003
+ readonly arc: {
1004
+ readonly chain: {
1005
+ blockExplorers: {
1006
+ readonly default: {
1007
+ readonly name: "Arc Explorer";
1008
+ readonly url: "https://explorer.arc.io";
1009
+ readonly apiUrl: "https://explorer.arc.io/api/v2";
1010
+ };
1011
+ };
1012
+ blockTime?: number | undefined | undefined;
1013
+ contracts: {
1014
+ readonly multicall3: {
1015
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
1016
+ readonly blockCreated: 0;
1017
+ };
1018
+ };
1019
+ ensTlds?: readonly string[] | undefined;
1020
+ id: 5042;
1021
+ name: "Arc";
1022
+ nativeCurrency: {
1023
+ readonly name: "USDC";
1024
+ readonly symbol: "USDC";
1025
+ readonly decimals: 18;
1026
+ };
1027
+ experimental_preconfirmationTime?: number | undefined | undefined;
1028
+ rpcUrls: {
1029
+ readonly default: {
1030
+ readonly http: readonly ["https://rpc.mainnet.arc.io", "https://rpc.blockdaemon.mainnet.arc.io", "https://rpc.drpc.mainnet.arc.io", "https://rpc.quicknode.mainnet.arc.io"];
1031
+ };
1032
+ };
1033
+ sourceId?: number | undefined | undefined;
1034
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
1035
+ testnet?: boolean | undefined | undefined;
1036
+ custom?: Record<string, unknown> | undefined;
1037
+ extendSchema?: Record<string, unknown> | undefined;
1038
+ fees?: import("viem").ChainFees<undefined> | undefined;
1039
+ formatters?: undefined;
1040
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1041
+ client: import("viem").Client;
1042
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1043
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1044
+ client: import("viem").Client;
1045
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1046
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
1047
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
1048
+ }] | undefined;
1049
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1050
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
1051
+ };
1052
+ readonly alchemy: "arc-mainnet";
1053
+ readonly fallback: "https://rpc.mainnet.arc.io";
1054
+ readonly explorer: "explorer.arc.io";
1055
+ readonly hypersync: "https://arc.hypersync.xyz";
1056
+ readonly llama: {
1057
+ readonly coins: "arc";
1058
+ readonly yields: "Arc";
1059
+ };
1060
+ };
1061
+ readonly plasma: {
1062
+ readonly chain: {
1063
+ blockExplorers: {
1064
+ readonly default: {
1065
+ readonly name: "PlasmaScan";
1066
+ readonly url: "https://plasmascan.to";
1067
+ };
1068
+ };
1069
+ blockTime: 1000;
1070
+ contracts: {
1071
+ readonly multicall3: {
1072
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
1073
+ readonly blockCreated: 0;
1074
+ };
1075
+ };
1076
+ ensTlds?: readonly string[] | undefined;
1077
+ id: 9745;
1078
+ name: "Plasma";
1079
+ nativeCurrency: {
1080
+ readonly name: "Plasma";
1081
+ readonly symbol: "XPL";
1082
+ readonly decimals: 18;
1083
+ };
1084
+ experimental_preconfirmationTime?: number | undefined | undefined;
1085
+ rpcUrls: {
1086
+ readonly default: {
1087
+ readonly http: readonly ["https://rpc.plasma.to"];
1088
+ };
1089
+ };
1090
+ sourceId?: number | undefined | undefined;
1091
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
1092
+ testnet?: boolean | undefined | undefined;
1093
+ custom?: Record<string, unknown> | undefined;
1094
+ extendSchema?: Record<string, unknown> | undefined;
1095
+ fees?: import("viem").ChainFees<undefined> | undefined;
1096
+ formatters?: undefined;
1097
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1098
+ client: import("viem").Client;
1099
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1100
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1101
+ client: import("viem").Client;
1102
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1103
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
1104
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
1105
+ }] | undefined;
1106
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1107
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
1108
+ };
1109
+ readonly alchemy: "plasma-mainnet";
1110
+ readonly alchemyTokenApi: false;
1111
+ readonly fallback: "https://rpc.plasma.to";
1112
+ readonly explorer: "plasmascan.to";
1113
+ readonly hypersync: "https://plasma.hypersync.xyz";
1114
+ readonly llama: {
1115
+ readonly coins: "plasma";
1116
+ readonly yields: "Plasma";
1117
+ };
1118
+ };
1119
+ readonly ink: {
1120
+ readonly chain: {
1121
+ blockExplorers: {
1122
+ readonly default: {
1123
+ readonly name: "Blockscout";
1124
+ readonly url: "https://explorer.inkonchain.com";
1125
+ readonly apiUrl: "https://explorer.inkonchain.com/api/v2";
1126
+ };
1127
+ };
1128
+ blockTime: 2000;
1129
+ contracts: {
1130
+ readonly disputeGameFactory: {
1131
+ readonly 1: {
1132
+ readonly address: "0x10d7b35078d3baabb96dd45a9143b94be65b12cd";
1133
+ };
1134
+ };
1135
+ readonly portal: {
1136
+ readonly 1: {
1137
+ readonly address: "0x5d66c1782664115999c47c9fa5cd031f495d3e4f";
1138
+ };
1139
+ };
1140
+ readonly l1StandardBridge: {
1141
+ readonly 1: {
1142
+ readonly address: "0x88ff1e5b602916615391f55854588efcbb7663f0";
1143
+ };
1144
+ };
1145
+ readonly gasPriceOracle: {
1146
+ readonly address: "0x420000000000000000000000000000000000000F";
1147
+ };
1148
+ readonly l1Block: {
1149
+ readonly address: "0x4200000000000000000000000000000000000015";
1150
+ };
1151
+ readonly l2CrossDomainMessenger: {
1152
+ readonly address: "0x4200000000000000000000000000000000000007";
1153
+ };
1154
+ readonly l2Erc721Bridge: {
1155
+ readonly address: "0x4200000000000000000000000000000000000014";
1156
+ };
1157
+ readonly l2StandardBridge: {
1158
+ readonly address: "0x4200000000000000000000000000000000000010";
1159
+ };
1160
+ readonly l2ToL1MessagePasser: {
1161
+ readonly address: "0x4200000000000000000000000000000000000016";
1162
+ };
1163
+ readonly multicall3: {
1164
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
1165
+ readonly blockCreated: 0;
1166
+ };
1167
+ };
1168
+ ensTlds?: readonly string[] | undefined;
1169
+ id: 57073;
1170
+ name: "Ink";
1171
+ nativeCurrency: {
1172
+ readonly name: "Ether";
1173
+ readonly symbol: "ETH";
1174
+ readonly decimals: 18;
1175
+ };
1176
+ experimental_preconfirmationTime?: number | undefined | undefined;
1177
+ rpcUrls: {
1178
+ readonly default: {
1179
+ readonly http: readonly ["https://rpc-gel.inkonchain.com", "https://rpc-qnd.inkonchain.com"];
1180
+ readonly webSocket: readonly ["wss://rpc-gel.inkonchain.com", "wss://rpc-qnd.inkonchain.com"];
1181
+ };
1182
+ };
1183
+ sourceId: 1;
1184
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
1185
+ testnet: false;
1186
+ custom?: Record<string, unknown> | undefined;
1187
+ extendSchema?: Record<string, unknown> | undefined;
1188
+ fees?: import("viem").ChainFees<undefined> | undefined;
1189
+ formatters: {
1190
+ readonly block: {
1191
+ exclude: [] | undefined;
1192
+ format: (args: import("viem/chains").OpStackRpcBlock, action?: string | undefined) => import("viem/chains").OpStackBlock;
1193
+ type: "block";
1194
+ };
1195
+ readonly transaction: {
1196
+ exclude: [] | undefined;
1197
+ format: (args: import("viem/chains").OpStackRpcTransaction, action?: string | undefined) => import("viem/chains").OpStackTransaction;
1198
+ type: "transaction";
1199
+ };
1200
+ readonly transactionReceipt: {
1201
+ exclude: [] | undefined;
1202
+ format: (args: import("viem/chains").OpStackRpcTransactionReceipt, action?: string | undefined) => import("viem/chains").OpStackTransactionReceipt;
1203
+ type: "transactionReceipt";
1204
+ };
1205
+ };
1206
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1207
+ client: import("viem").Client;
1208
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1209
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1210
+ client: import("viem").Client;
1211
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1212
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
1213
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
1214
+ }] | undefined;
1215
+ serializers: {
1216
+ readonly transaction: typeof import("viem/chains").serializeTransactionOpStack;
1217
+ };
1218
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
1219
+ };
1220
+ readonly alchemy: "ink-mainnet";
1221
+ readonly fallback: "https://rpc-gel.inkonchain.com";
1222
+ readonly explorer: "explorer.inkonchain.com";
1223
+ readonly hypersync: "https://ink.hypersync.xyz";
1224
+ readonly llama: {
1225
+ readonly coins: "ink";
1226
+ readonly yields: "Ink";
1227
+ };
1228
+ };
1229
+ readonly mantle: {
1230
+ readonly chain: {
1231
+ blockExplorers: {
1232
+ readonly default: {
1233
+ readonly name: "Mantle Explorer";
1234
+ readonly url: "https://mantlescan.xyz/";
1235
+ readonly apiUrl: "https://api.mantlescan.xyz/api";
1236
+ };
1237
+ };
1238
+ blockTime?: number | undefined | undefined;
1239
+ contracts: {
1240
+ readonly multicall3: {
1241
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
1242
+ readonly blockCreated: 304717;
1243
+ };
1244
+ };
1245
+ ensTlds?: readonly string[] | undefined;
1246
+ id: 5000;
1247
+ name: "Mantle";
1248
+ nativeCurrency: {
1249
+ readonly decimals: 18;
1250
+ readonly name: "MNT";
1251
+ readonly symbol: "MNT";
1252
+ };
1253
+ experimental_preconfirmationTime?: number | undefined | undefined;
1254
+ rpcUrls: {
1255
+ readonly default: {
1256
+ readonly http: readonly ["https://rpc.mantle.xyz"];
1257
+ };
1258
+ };
1259
+ sourceId?: number | undefined | undefined;
1260
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
1261
+ testnet?: boolean | undefined | undefined;
1262
+ custom?: Record<string, unknown> | undefined;
1263
+ extendSchema?: Record<string, unknown> | undefined;
1264
+ fees?: import("viem").ChainFees<undefined> | undefined;
1265
+ formatters?: undefined;
1266
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1267
+ client: import("viem").Client;
1268
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1269
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1270
+ client: import("viem").Client;
1271
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1272
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
1273
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
1274
+ }] | undefined;
1275
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1276
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
1277
+ };
1278
+ readonly alchemy: "mantle-mainnet";
1279
+ readonly alchemyTokenApi: false;
1280
+ readonly fallback: "https://rpc.mantle.xyz";
1281
+ readonly explorer: "mantlescan.xyz";
1282
+ readonly hypersync: "https://mantle.hypersync.xyz";
1283
+ readonly llama: {
1284
+ readonly coins: "mantle";
1285
+ readonly yields: "Mantle";
1286
+ };
1287
+ };
1288
+ readonly celo: {
1289
+ readonly chain: {
1290
+ blockExplorers: {
1291
+ readonly default: {
1292
+ readonly name: "Celo Explorer";
1293
+ readonly url: "https://celoscan.io";
1294
+ readonly apiUrl: "https://api.celoscan.io/api";
1295
+ };
1296
+ };
1297
+ blockTime: 1000;
1298
+ contracts: {
1299
+ readonly multicall3: {
1300
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
1301
+ readonly blockCreated: 13112599;
1302
+ };
1303
+ };
1304
+ ensTlds?: readonly string[] | undefined;
1305
+ id: 42220;
1306
+ name: "Celo";
1307
+ nativeCurrency: {
1308
+ readonly decimals: 18;
1309
+ readonly name: "CELO";
1310
+ readonly symbol: "CELO";
1311
+ };
1312
+ experimental_preconfirmationTime?: number | undefined | undefined;
1313
+ rpcUrls: {
1314
+ readonly default: {
1315
+ readonly http: readonly ["https://forno.celo.org"];
1316
+ };
1317
+ };
1318
+ sourceId?: number | undefined | undefined;
1319
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
1320
+ testnet: false;
1321
+ custom?: Record<string, unknown> | undefined;
1322
+ extendSchema?: Record<string, unknown> | undefined;
1323
+ fees: import("viem").ChainFees<{
1324
+ readonly block: {
1325
+ exclude: [] | undefined;
1326
+ format: (args: import("viem/chains").CeloRpcBlock, action?: string | undefined) => import("viem/chains").CeloBlock;
1327
+ type: "block";
1328
+ };
1329
+ readonly transaction: {
1330
+ exclude: [] | undefined;
1331
+ format: (args: import("viem/chains").CeloRpcTransaction, action?: string | undefined) => import("viem/chains").CeloTransaction;
1332
+ type: "transaction";
1333
+ };
1334
+ readonly transactionRequest: {
1335
+ exclude: [] | undefined;
1336
+ format: (args: import("viem/chains").CeloTransactionRequest, action?: string | undefined) => import("viem/chains").CeloRpcTransactionRequest;
1337
+ type: "transactionRequest";
1338
+ };
1339
+ }>;
1340
+ formatters: {
1341
+ readonly block: {
1342
+ exclude: [] | undefined;
1343
+ format: (args: import("viem/chains").CeloRpcBlock, action?: string | undefined) => import("viem/chains").CeloBlock;
1344
+ type: "block";
1345
+ };
1346
+ readonly transaction: {
1347
+ exclude: [] | undefined;
1348
+ format: (args: import("viem/chains").CeloRpcTransaction, action?: string | undefined) => import("viem/chains").CeloTransaction;
1349
+ type: "transaction";
1350
+ };
1351
+ readonly transactionRequest: {
1352
+ exclude: [] | undefined;
1353
+ format: (args: import("viem/chains").CeloTransactionRequest, action?: string | undefined) => import("viem/chains").CeloRpcTransactionRequest;
1354
+ type: "transactionRequest";
1355
+ };
1356
+ };
1357
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1358
+ client: import("viem").Client;
1359
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1360
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1361
+ client: import("viem").Client;
1362
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1363
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
1364
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
1365
+ }] | undefined;
1366
+ serializers: {
1367
+ readonly transaction: typeof import("viem/chains").serializeTransactionCelo;
1368
+ };
1369
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
1370
+ };
1371
+ readonly alchemy: "celo-mainnet";
1372
+ readonly fallback: "https://forno.celo.org";
1373
+ readonly explorer: "celoscan.io";
1374
+ readonly hypersync: "https://celo.hypersync.xyz";
1375
+ readonly llama: {
1376
+ readonly coins: "celo";
1377
+ readonly yields: "Celo";
1378
+ };
1379
+ };
1380
+ readonly hyperevm: {
1381
+ readonly chain: {
1382
+ blockExplorers: {
1383
+ readonly default: {
1384
+ readonly name: "HyperEVMScan";
1385
+ readonly url: "https://hyperevmscan.io";
1386
+ };
1387
+ };
1388
+ blockTime?: number | undefined | undefined;
1389
+ contracts: {
1390
+ readonly multicall3: {
1391
+ readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
1392
+ readonly blockCreated: 13051;
1393
+ };
1394
+ };
1395
+ ensTlds?: readonly string[] | undefined;
1396
+ id: 999;
1397
+ name: "HyperEVM";
1398
+ nativeCurrency: {
1399
+ readonly name: "HYPE";
1400
+ readonly symbol: "HYPE";
1401
+ readonly decimals: 18;
1402
+ };
1403
+ experimental_preconfirmationTime?: number | undefined | undefined;
1404
+ rpcUrls: {
1405
+ readonly default: {
1406
+ readonly http: readonly ["https://rpc.hyperliquid.xyz/evm"];
1407
+ };
1408
+ };
1409
+ sourceId?: number | undefined | undefined;
1410
+ supportsTransactionReplacementDetection?: boolean | undefined | undefined;
1411
+ testnet: false;
1412
+ custom?: Record<string, unknown> | undefined;
1413
+ extendSchema?: Record<string, unknown> | undefined;
1414
+ fees?: import("viem").ChainFees<undefined> | undefined;
1415
+ formatters?: undefined;
1416
+ prepareTransactionRequest?: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1417
+ client: import("viem").Client;
1418
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1419
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | [fn: ((args: import("viem").PrepareTransactionRequestParameters, options: {
1420
+ client: import("viem").Client;
1421
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
1422
+ }) => Promise<import("viem").PrepareTransactionRequestParameters>) | undefined, options: {
1423
+ runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
1424
+ }] | undefined;
1425
+ serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
1426
+ verifyHash?: ((client: import("viem").Client, parameters: import("viem").VerifyHashActionParameters) => Promise<import("viem").VerifyHashActionReturnType>) | undefined;
1427
+ };
1428
+ readonly alchemy: "hyperliquid-mainnet";
1429
+ readonly fallback: "https://rpc.hyperliquid.xyz/evm";
1430
+ readonly explorer: "hyperevmscan.io";
1431
+ readonly hypersync: "https://hyperliquid.hypersync.xyz";
1432
+ readonly llama: {
1433
+ readonly coins: "hyperliquid";
1434
+ readonly yields: "Hyperliquid L1";
1435
+ };
894
1436
  };
895
1437
  readonly localhost: {
896
1438
  readonly chain: {
@@ -912,7 +1454,9 @@ declare const TABLE: {
912
1454
  [sourceId: number]: import("viem").ChainContract | undefined;
913
1455
  } | undefined;
914
1456
  ensRegistry?: import("viem").ChainContract | undefined;
915
- ensUniversalResolver?: import("viem").ChainContract | undefined;
1457
+ ensUniversalResolver
1458
+ /** False where Alchemy serves the RPC but not its token API, which `get_portfolio` needs. */
1459
+ ? /** False where Alchemy serves the RPC but not its token API, which `get_portfolio` needs. */: import("viem").ChainContract | undefined;
916
1460
  multicall3?: import("viem").ChainContract | undefined;
917
1461
  erc6492Verifier?: import("viem").ChainContract | undefined;
918
1462
  } | undefined;