@ledgerhq/coin-evm 16.2.4 → 16.4.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 (110) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/adapters/blockscoutV2.d.ts +40 -0
  3. package/lib/adapters/blockscoutV2.d.ts.map +1 -0
  4. package/lib/adapters/blockscoutV2.js +177 -0
  5. package/lib/adapters/blockscoutV2.js.map +1 -0
  6. package/lib/adapters/index.d.ts +1 -0
  7. package/lib/adapters/index.d.ts.map +1 -1
  8. package/lib/adapters/index.js +1 -0
  9. package/lib/adapters/index.js.map +1 -1
  10. package/lib/chains.d.ts +1 -1
  11. package/lib/chains.js +1 -1
  12. package/lib/chains.js.map +1 -1
  13. package/lib/config.d.ts +1499 -0
  14. package/lib/config.d.ts.map +1 -1
  15. package/lib/config.js +968 -1
  16. package/lib/config.js.map +1 -1
  17. package/lib/logic/internalTransactionsFetcher.d.ts.map +1 -1
  18. package/lib/logic/internalTransactionsFetcher.js +13 -2
  19. package/lib/logic/internalTransactionsFetcher.js.map +1 -1
  20. package/lib/network/blockscoutV2.d.ts +35 -0
  21. package/lib/network/blockscoutV2.d.ts.map +1 -0
  22. package/lib/network/blockscoutV2.js +311 -0
  23. package/lib/network/blockscoutV2.js.map +1 -0
  24. package/lib/network/explorer/etherscan.d.ts.map +1 -1
  25. package/lib/network/explorer/etherscan.js +11 -28
  26. package/lib/network/explorer/etherscan.js.map +1 -1
  27. package/lib/network/explorer/index.d.ts.map +1 -1
  28. package/lib/network/explorer/index.js +5 -0
  29. package/lib/network/explorer/index.js.map +1 -1
  30. package/lib/network/explorer/types.d.ts +6 -0
  31. package/lib/network/explorer/types.d.ts.map +1 -1
  32. package/lib/network/explorer/types.js +8 -1
  33. package/lib/network/explorer/types.js.map +1 -1
  34. package/lib/network/rewards.d.ts +11 -0
  35. package/lib/network/rewards.d.ts.map +1 -0
  36. package/lib/network/rewards.js +32 -0
  37. package/lib/network/rewards.js.map +1 -0
  38. package/lib/types/blockscoutV2.d.ts +80 -0
  39. package/lib/types/blockscoutV2.d.ts.map +1 -0
  40. package/lib/types/blockscoutV2.js +5 -0
  41. package/lib/types/blockscoutV2.js.map +1 -0
  42. package/lib/types/index.d.ts +1 -0
  43. package/lib/types/index.d.ts.map +1 -1
  44. package/lib/types/index.js +1 -0
  45. package/lib/types/index.js.map +1 -1
  46. package/lib-es/adapters/blockscoutV2.d.ts +40 -0
  47. package/lib-es/adapters/blockscoutV2.d.ts.map +1 -0
  48. package/lib-es/adapters/blockscoutV2.js +168 -0
  49. package/lib-es/adapters/blockscoutV2.js.map +1 -0
  50. package/lib-es/adapters/index.d.ts +1 -0
  51. package/lib-es/adapters/index.d.ts.map +1 -1
  52. package/lib-es/adapters/index.js +1 -0
  53. package/lib-es/adapters/index.js.map +1 -1
  54. package/lib-es/chains.d.ts +1 -1
  55. package/lib-es/chains.js +1 -1
  56. package/lib-es/chains.js.map +1 -1
  57. package/lib-es/config.d.ts +1499 -0
  58. package/lib-es/config.d.ts.map +1 -1
  59. package/lib-es/config.js +967 -0
  60. package/lib-es/config.js.map +1 -1
  61. package/lib-es/logic/internalTransactionsFetcher.d.ts.map +1 -1
  62. package/lib-es/logic/internalTransactionsFetcher.js +14 -3
  63. package/lib-es/logic/internalTransactionsFetcher.js.map +1 -1
  64. package/lib-es/network/blockscoutV2.d.ts +35 -0
  65. package/lib-es/network/blockscoutV2.d.ts.map +1 -0
  66. package/lib-es/network/blockscoutV2.js +271 -0
  67. package/lib-es/network/blockscoutV2.js.map +1 -0
  68. package/lib-es/network/explorer/etherscan.d.ts.map +1 -1
  69. package/lib-es/network/explorer/etherscan.js +2 -19
  70. package/lib-es/network/explorer/etherscan.js.map +1 -1
  71. package/lib-es/network/explorer/index.d.ts.map +1 -1
  72. package/lib-es/network/explorer/index.js +5 -0
  73. package/lib-es/network/explorer/index.js.map +1 -1
  74. package/lib-es/network/explorer/types.d.ts +6 -0
  75. package/lib-es/network/explorer/types.d.ts.map +1 -1
  76. package/lib-es/network/explorer/types.js +6 -0
  77. package/lib-es/network/explorer/types.js.map +1 -1
  78. package/lib-es/network/rewards.d.ts +11 -0
  79. package/lib-es/network/rewards.d.ts.map +1 -0
  80. package/lib-es/network/rewards.js +29 -0
  81. package/lib-es/network/rewards.js.map +1 -0
  82. package/lib-es/types/blockscoutV2.d.ts +80 -0
  83. package/lib-es/types/blockscoutV2.d.ts.map +1 -0
  84. package/lib-es/types/blockscoutV2.js +4 -0
  85. package/lib-es/types/blockscoutV2.js.map +1 -0
  86. package/lib-es/types/index.d.ts +1 -0
  87. package/lib-es/types/index.d.ts.map +1 -1
  88. package/lib-es/types/index.js +1 -0
  89. package/lib-es/types/index.js.map +1 -1
  90. package/package.json +1 -1
  91. package/src/adapters/blockscoutV2.test.ts +296 -0
  92. package/src/adapters/blockscoutV2.ts +244 -0
  93. package/src/adapters/index.ts +1 -0
  94. package/src/api/tests/index.alpen_testnet.integ.test.ts +73 -0
  95. package/src/api/tests/index.integ.test.ts +4 -2
  96. package/src/api/tests/index.scroll.integ.test.ts +168 -0
  97. package/src/api/tests/index.shape.integ.test.ts +34 -0
  98. package/src/chains.ts +1 -1
  99. package/src/config.ts +993 -0
  100. package/src/logic/internalTransactionsFetcher.ts +20 -3
  101. package/src/logic/tests/internalTransactionsFetcher.test.ts +51 -0
  102. package/src/network/blockscoutV2.ts +460 -0
  103. package/src/network/explorer/etherscan.ts +2 -29
  104. package/src/network/explorer/index.ts +5 -0
  105. package/src/network/explorer/types.ts +9 -0
  106. package/src/network/rewards.ts +47 -0
  107. package/src/network/tests/blockscoutV2.test.ts +565 -0
  108. package/src/network/tests/explorer/index.test.ts +21 -0
  109. package/src/types/blockscoutV2.ts +85 -0
  110. package/src/types/index.ts +1 -0
package/src/config.ts CHANGED
@@ -48,6 +48,12 @@ export type EvmConfig = {
48
48
  explorer:
49
49
  | {
50
50
  type: 'etherscan' | 'blockscout' | 'teloscan' | 'klaytnfinder' | 'corescan' | 'cronos'
51
+ /**
52
+ * Disable the explorer response cache. By default, identical `getOperations` and
53
+ * `discoverTokenAssets` calls (same chain, address, block range, cursor, limit and order)
54
+ * made within 5 seconds share one explorer request; a failed request is not cached.
55
+ * Set to `true` to always send a new request.
56
+ */
51
57
  noCache?: boolean | undefined
52
58
  /**
53
59
  * Optional cap applied to the requested operation `limit` before the internal `limit + 1` probe.
@@ -66,6 +72,25 @@ export type EvmConfig = {
66
72
  /** Number of retries for explorer API calls. Defaults to 8 if not set. Set to 0 for no retries. */
67
73
  retries?: number
68
74
  }
75
+ | {
76
+ /**
77
+ * Blockscout v2 REST API. Unlike the Etherscan-compatible v1 API (`type: 'blockscout'`), it
78
+ * reports the fee actually paid, including the L1 data fee of rollups.
79
+ * Only serves operations in descending order.
80
+ */
81
+ type: 'blockscout-v2'
82
+ /** Base URI of the v2 API, e.g. `https://proxyblockscout.api.live.ledger.com/534352/api/v2` */
83
+ uri: string
84
+ /**
85
+ * Disable the explorer response cache. By default, identical `getOperations` and
86
+ * `discoverTokenAssets` calls (same chain, address, block range, cursor, limit and order)
87
+ * made within 5 seconds share one explorer request; a failed request is not cached.
88
+ * Set to `true` to always send a new request.
89
+ */
90
+ noCache?: boolean | undefined
91
+ /** Number of retries for explorer API calls. Defaults to 8 if not set. Set to 0 for no retries. */
92
+ retries?: number
93
+ }
69
94
  | {
70
95
  type: 'ledger'
71
96
  explorerId: string
@@ -174,3 +199,971 @@ export type EvmCoinConfig = {
174
199
  * The {@link Context} threaded through the coin-evm public API (ADR-019).
175
200
  */
176
201
  export type EvmContext = Context<EvmConfigInfo>
202
+
203
+ export const evmDefaults = {
204
+ avalanche_c_chain: {
205
+ status: {
206
+ type: 'active',
207
+ features: [{ id: 'blockchain_txs', status: 'active' }],
208
+ },
209
+ chainId: 43114,
210
+ name: 'Avalanche C-Chain',
211
+ unit: { name: 'AVAX', code: 'AVAX', magnitude: 18 },
212
+ node: {
213
+ type: 'ledger',
214
+ explorerId: 'avax',
215
+ },
216
+ explorer: {
217
+ type: 'ledger',
218
+ explorerId: 'avax',
219
+ },
220
+ gasTracker: {
221
+ type: 'ledger',
222
+ explorerId: 'avax',
223
+ },
224
+ },
225
+ avalanche_c_chain_fuji: {
226
+ status: {
227
+ type: 'active',
228
+ features: [{ id: 'blockchain_txs', status: 'active' }],
229
+ },
230
+ chainId: 43113,
231
+ name: 'Avalanche C-Chain Fuji',
232
+ unit: { name: 'AVAX', code: 'AVAX', magnitude: 18 },
233
+ node: {
234
+ type: 'external',
235
+ uri: 'https://api.avax-test.network/ext/bc/C/rpc',
236
+ },
237
+ explorer: {
238
+ type: 'etherscan',
239
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/43113',
240
+ },
241
+ },
242
+ bitlayer: {
243
+ status: {
244
+ type: 'active',
245
+ features: [{ id: 'blockchain_txs', status: 'active' }],
246
+ },
247
+ chainId: 200901,
248
+ name: 'Bitlayer',
249
+ unit: { name: 'BTC', code: 'BTC', magnitude: 18 },
250
+ node: {
251
+ type: 'external',
252
+ uri: 'https://rpc.bitlayer.org',
253
+ },
254
+ explorer: {
255
+ type: 'none',
256
+ },
257
+ },
258
+ bsc: {
259
+ status: {
260
+ type: 'active',
261
+ features: [{ id: 'blockchain_txs', status: 'active' }],
262
+ },
263
+ chainId: 56,
264
+ name: 'BNB Smart Chain',
265
+ unit: { name: 'BNB', code: 'BNB', magnitude: 18 },
266
+ node: {
267
+ type: 'ledger',
268
+ explorerId: 'bnb',
269
+ },
270
+ explorer: {
271
+ type: 'ledger',
272
+ explorerId: 'bnb',
273
+ },
274
+ gasTracker: {
275
+ type: 'ledger',
276
+ explorerId: 'bnb',
277
+ },
278
+ },
279
+ ethereum: {
280
+ status: {
281
+ type: 'active',
282
+ features: [{ id: 'blockchain_txs', status: 'active' }],
283
+ },
284
+ chainId: 1,
285
+ name: 'Ethereum',
286
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
287
+ gasTracker: {
288
+ type: 'ledger',
289
+ explorerId: 'eth',
290
+ },
291
+ node: {
292
+ type: 'ledger',
293
+ explorerId: 'eth',
294
+ },
295
+ explorer: {
296
+ type: 'ledger',
297
+ explorerId: 'eth',
298
+ },
299
+ },
300
+ sonic: {
301
+ status: { type: 'active' },
302
+ chainId: 146,
303
+ name: 'Sonic',
304
+ unit: { name: 'S', code: 'S', magnitude: 18 },
305
+ node: {
306
+ type: 'external',
307
+ uri: 'https://sonic.coin.ledger.com',
308
+ },
309
+ explorer: {
310
+ type: 'etherscan',
311
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/146',
312
+ },
313
+ },
314
+ ethereum_classic: {
315
+ status: {
316
+ type: 'active',
317
+ features: [{ id: 'blockchain_txs', status: 'active' }],
318
+ },
319
+ chainId: 61,
320
+ name: 'Ethereum Classic',
321
+ unit: { name: 'ETC', code: 'ETC', magnitude: 18 },
322
+ node: {
323
+ type: 'ledger',
324
+ explorerId: 'etc',
325
+ },
326
+ explorer: {
327
+ type: 'ledger',
328
+ explorerId: 'etc',
329
+ },
330
+ gasTracker: {
331
+ type: 'ledger',
332
+ explorerId: 'etc',
333
+ },
334
+ },
335
+ polygon: {
336
+ status: {
337
+ type: 'active',
338
+ features: [{ id: 'blockchain_txs', status: 'active' }],
339
+ },
340
+ chainId: 137,
341
+ name: 'Polygon',
342
+ unit: { name: 'POL', code: 'POL', magnitude: 18 },
343
+ node: {
344
+ type: 'ledger',
345
+ explorerId: 'matic',
346
+ },
347
+ explorer: {
348
+ type: 'ledger',
349
+ explorerId: 'matic',
350
+ batchSize: 10,
351
+ },
352
+ gasTracker: {
353
+ type: 'ledger',
354
+ explorerId: 'matic',
355
+ },
356
+ minGasPrice: '25000000000',
357
+ },
358
+ arbitrum: {
359
+ status: {
360
+ type: 'active',
361
+ features: [{ id: 'blockchain_txs', status: 'active' }],
362
+ },
363
+ chainId: 42161,
364
+ name: 'Arbitrum',
365
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
366
+ node: {
367
+ type: 'external',
368
+ uri: 'https://arbitrum.coin.ledger.com',
369
+ },
370
+ explorer: {
371
+ type: 'etherscan',
372
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/42161',
373
+ },
374
+ },
375
+ cronos: {
376
+ status: {
377
+ type: 'active',
378
+ features: [{ id: 'blockchain_txs', status: 'active' }],
379
+ },
380
+ chainId: 25,
381
+ name: 'Cronos',
382
+ unit: { name: 'CRO', code: 'CRO', magnitude: 18 },
383
+ node: {
384
+ type: 'external',
385
+ uri: 'https://cronos.coin.ledger.com',
386
+ },
387
+ explorer: {
388
+ type: 'cronos',
389
+ uri: 'https://proxycronosexplorer.api.live.ledger.com/explorer/api',
390
+ },
391
+ // Cronos rejects txs below a global min fee of 375 gwei/gas, which eth_feeHistory doesn't reflect
392
+ minGasPrice: '375000000000',
393
+ },
394
+ core: {
395
+ status: {
396
+ type: 'active',
397
+ features: [{ id: 'blockchain_txs', status: 'active' }],
398
+ },
399
+ chainId: 1116,
400
+ name: 'Core',
401
+ unit: { name: 'CORE', code: 'CORE', magnitude: 18 },
402
+ node: {
403
+ type: 'external',
404
+ uri: 'https://core.coin.ledger.com',
405
+ },
406
+ explorer: {
407
+ type: 'none',
408
+ },
409
+ },
410
+ flare: {
411
+ status: {
412
+ type: 'active',
413
+ features: [{ id: 'blockchain_txs', status: 'active' }],
414
+ },
415
+ chainId: 14,
416
+ name: 'Flare',
417
+ unit: { name: 'FLR', code: 'FLR', magnitude: 18 },
418
+ node: {
419
+ type: 'external',
420
+ uri: 'https://flare.coin.ledger.com/ext/bc/C/rpc',
421
+ },
422
+ explorer: {
423
+ type: 'blockscout',
424
+ uri: 'https://flare-explorer.flare.network/api',
425
+ },
426
+ },
427
+ songbird: {
428
+ status: {
429
+ type: 'active',
430
+ features: [{ id: 'blockchain_txs', status: 'active' }],
431
+ },
432
+ chainId: 19,
433
+ name: 'Songbird',
434
+ unit: { name: 'SGB', code: 'SGB', magnitude: 18 },
435
+ node: {
436
+ type: 'external',
437
+ uri: 'https://songbird-api.flare.network/ext/C/rpc',
438
+ },
439
+ explorer: {
440
+ type: 'blockscout',
441
+ uri: 'https://songbird-explorer.flare.network/api',
442
+ },
443
+ },
444
+ rsk: {
445
+ status: {
446
+ type: 'active',
447
+ features: [{ id: 'blockchain_txs', status: 'active' }],
448
+ },
449
+ chainId: 30,
450
+ name: 'Rootstock',
451
+ unit: { name: 'RBTC', code: 'RBTC', magnitude: 18 },
452
+ node: {
453
+ type: 'external',
454
+ uri: 'https://rsk.coin.ledger.com',
455
+ },
456
+ explorer: {
457
+ type: 'blockscout',
458
+ uri: 'https://rootstock.blockscout.com/api',
459
+ },
460
+ },
461
+ bittorrent: {
462
+ status: {
463
+ type: 'active',
464
+ features: [{ id: 'blockchain_txs', status: 'active' }],
465
+ },
466
+ chainId: 199,
467
+ name: 'Bittorent Chain',
468
+ unit: { name: 'BTT', code: 'BTT', magnitude: 18 },
469
+ node: {
470
+ type: 'external',
471
+ uri: 'https://bittorrent.coin.ledger.com',
472
+ },
473
+ explorer: {
474
+ type: 'etherscan',
475
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/199',
476
+ },
477
+ },
478
+ optimism: {
479
+ status: {
480
+ type: 'active',
481
+ features: [{ id: 'blockchain_txs', status: 'active' }],
482
+ },
483
+ chainId: 10,
484
+ name: 'OP Mainnet',
485
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
486
+ node: {
487
+ type: 'external',
488
+ uri: 'https://optimism.coin.ledger.com',
489
+ },
490
+ explorer: {
491
+ type: 'blockscout',
492
+ uri: 'https://proxyblockscout.api.live.ledger.com/10/api',
493
+ },
494
+ },
495
+ optimism_sepolia: {
496
+ status: {
497
+ type: 'active',
498
+ features: [{ id: 'blockchain_txs', status: 'active' }],
499
+ },
500
+ chainId: 11155420,
501
+ name: 'OP Sepolia',
502
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
503
+ node: { type: 'external', uri: 'https://optimism-sepolia.coin.ledger.com' },
504
+ explorer: { type: 'blockscout', uri: 'https://optimism-sepolia.blockscout.com/api' },
505
+ },
506
+ energy_web: {
507
+ status: {
508
+ type: 'active',
509
+ features: [{ id: 'blockchain_txs', status: 'active' }],
510
+ },
511
+ chainId: 246,
512
+ name: 'Energy Web',
513
+ unit: { name: 'EWT', code: 'EWT', magnitude: 18 },
514
+ node: {
515
+ type: 'external',
516
+ uri: 'https://rpc.energyweb.org',
517
+ },
518
+ explorer: {
519
+ type: 'blockscout',
520
+ uri: 'https://explorer.energyweb.org/api',
521
+ },
522
+ },
523
+ astar: {
524
+ status: {
525
+ type: 'active',
526
+ features: [{ id: 'blockchain_txs', status: 'active' }],
527
+ },
528
+ chainId: 592,
529
+ name: 'Astar',
530
+ unit: { name: 'ASTR', code: 'ASTR', magnitude: 18 },
531
+ node: {
532
+ type: 'external',
533
+ uri: 'https://astar.coin.ledger.com',
534
+ },
535
+ explorer: {
536
+ type: 'blockscout',
537
+ uri: 'https://astar.blockscout.com/api',
538
+ },
539
+ },
540
+ metis: {
541
+ status: {
542
+ type: 'active',
543
+ features: [{ id: 'blockchain_txs', status: 'active' }],
544
+ },
545
+ chainId: 1088,
546
+ name: 'Metis',
547
+ unit: { name: 'METIS', code: 'METIS', magnitude: 18 },
548
+ node: {
549
+ type: 'external',
550
+ uri: 'https://metis.coin.ledger.com',
551
+ },
552
+ explorer: {
553
+ type: 'none',
554
+ },
555
+ },
556
+ mantle: {
557
+ status: {
558
+ type: 'active',
559
+ features: [{ id: 'blockchain_txs', status: 'active' }],
560
+ },
561
+ chainId: 5000,
562
+ name: 'Mantle',
563
+ unit: { name: 'MNT', code: 'MNT', magnitude: 18 },
564
+ node: {
565
+ type: 'external',
566
+ uri: 'https://rpc.mantle.xyz',
567
+ },
568
+ explorer: {
569
+ type: 'blockscout',
570
+ uri: 'https://explorer.mantle.xyz/api',
571
+ },
572
+ },
573
+ mantle_sepolia: {
574
+ status: {
575
+ type: 'active',
576
+ features: [{ id: 'blockchain_txs', status: 'active' }],
577
+ },
578
+ chainId: 5003,
579
+ name: 'Mantle Sepolia',
580
+ unit: { name: 'MNT', code: 'MNT', magnitude: 18 },
581
+ node: {
582
+ type: 'external',
583
+ uri: 'https://rpc.sepolia.mantle.xyz',
584
+ },
585
+ explorer: {
586
+ type: 'blockscout',
587
+ uri: 'https://explorer.sepolia.mantle.xyz/api',
588
+ },
589
+ },
590
+ boba: {
591
+ status: {
592
+ type: 'active',
593
+ features: [{ id: 'blockchain_txs', status: 'active' }],
594
+ },
595
+ chainId: 288,
596
+ name: 'Boba',
597
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
598
+ node: {
599
+ type: 'external',
600
+ uri: 'https://boba.coin.ledger.com',
601
+ },
602
+ explorer: {
603
+ type: 'etherscan',
604
+ uri: 'https://api.routescan.io/v2/network/mainnet/evm/288/etherscan',
605
+ },
606
+ },
607
+ syscoin: {
608
+ status: {
609
+ type: 'active',
610
+ features: [{ id: 'blockchain_txs', status: 'active' }],
611
+ },
612
+ chainId: 57,
613
+ name: 'Syscoin',
614
+ unit: { name: 'SYS', code: 'SYS', magnitude: 18 },
615
+ node: {
616
+ type: 'external',
617
+ uri: 'https://syscoin.coin.ledger.com',
618
+ },
619
+ explorer: {
620
+ type: 'blockscout',
621
+ uri: 'https://explorer.syscoin.org/api',
622
+ },
623
+ },
624
+ telos_evm: {
625
+ status: {
626
+ type: 'active',
627
+ features: [{ id: 'blockchain_txs', status: 'active' }],
628
+ },
629
+ chainId: 40,
630
+ name: 'Telos',
631
+ unit: { name: 'TLOS', code: 'TLOS', magnitude: 18 },
632
+ node: {
633
+ type: 'external',
634
+ uri: 'https://telos-evm.coin.ledger.com',
635
+ },
636
+ explorer: {
637
+ type: 'teloscan',
638
+ uri: 'https://api.teloscan.io/api',
639
+ },
640
+ },
641
+ sei_evm: {
642
+ status: {
643
+ type: 'active',
644
+ features: [{ id: 'blockchain_txs', status: 'active' }],
645
+ },
646
+ chainId: 1329,
647
+ name: 'SEI Network (EVM)',
648
+ unit: { name: 'SEI', code: 'SEI', magnitude: 18 },
649
+ node: {
650
+ type: 'external',
651
+ uri: 'https://sei-evm.coin.ledger.com',
652
+ },
653
+ explorer: {
654
+ type: 'etherscan',
655
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/1329',
656
+ },
657
+ },
658
+ berachain: {
659
+ status: {
660
+ type: 'active',
661
+ features: [{ id: 'blockchain_txs', status: 'active' }],
662
+ },
663
+ chainId: 80094,
664
+ name: 'Berachain',
665
+ unit: { name: 'BERA', code: 'BERA', magnitude: 18 },
666
+ node: {
667
+ type: 'external',
668
+ uri: 'https://berachain.coin.ledger.com',
669
+ },
670
+ explorer: {
671
+ type: 'etherscan',
672
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/80094',
673
+ },
674
+ },
675
+ hyperevm: {
676
+ status: {
677
+ type: 'active',
678
+ features: [{ id: 'blockchain_txs', status: 'active' }],
679
+ },
680
+ chainId: 999,
681
+ name: 'HyperEVM',
682
+ unit: { name: 'HYPE', code: 'HYPE', magnitude: 18 },
683
+ node: {
684
+ type: 'external',
685
+ uri: 'https://hyperliquid.coin.ledger.com',
686
+ },
687
+ explorer: {
688
+ type: 'etherscan',
689
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/999',
690
+ },
691
+ },
692
+ polygon_zk_evm: {
693
+ status: {
694
+ type: 'active',
695
+ features: [{ id: 'blockchain_txs', status: 'active' }],
696
+ },
697
+ chainId: 1101,
698
+ name: 'Polygon zkEVM',
699
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
700
+ node: {
701
+ type: 'external',
702
+ uri: 'https://polygon-zkevm.coin.ledger.com',
703
+ },
704
+ explorer: {
705
+ type: 'etherscan',
706
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/1101',
707
+ },
708
+ },
709
+ base: {
710
+ status: {
711
+ type: 'active',
712
+ features: [{ id: 'blockchain_txs', status: 'active' }],
713
+ },
714
+ chainId: 8453,
715
+ name: 'Base',
716
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
717
+ node: {
718
+ type: 'external',
719
+ uri: 'https://base.coin.ledger.com',
720
+ },
721
+ explorer: {
722
+ type: 'etherscan',
723
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/8453',
724
+ },
725
+ },
726
+ klaytn: {
727
+ status: {
728
+ type: 'active',
729
+ features: [{ id: 'blockchain_txs', status: 'active' }],
730
+ },
731
+ chainId: 8217,
732
+ name: 'Klaytn',
733
+ unit: { name: 'KLAY', code: 'KLAY', magnitude: 18 },
734
+ node: {
735
+ type: 'external',
736
+ uri: 'https://kaia.coin.ledger.com',
737
+ },
738
+ explorer: {
739
+ type: 'klaytnfinder',
740
+ uri: 'https://cypress-oapi.klaytnfinder.io/api',
741
+ },
742
+ },
743
+ klaytn_baobab: {
744
+ status: {
745
+ type: 'active',
746
+ features: [{ id: 'blockchain_txs', status: 'active' }],
747
+ },
748
+ chainId: 1001,
749
+ name: 'Klaytn Baobab',
750
+ unit: { name: 'KLAY', code: 'KLAY', magnitude: 18 },
751
+ node: {
752
+ type: 'external',
753
+ uri: 'https://api.baobab.klaytn.net:8651',
754
+ },
755
+ explorer: {
756
+ type: 'klaytnfinder',
757
+ uri: 'https://baobab-oapi.klaytnfinder.io/api',
758
+ },
759
+ },
760
+ neon_evm: {
761
+ status: {
762
+ type: 'active',
763
+ features: [{ id: 'blockchain_txs', status: 'active' }],
764
+ },
765
+ chainId: 245022934,
766
+ name: 'Neon EVM',
767
+ unit: { name: 'NEON', code: 'NEON', magnitude: 18 },
768
+ node: {
769
+ type: 'external',
770
+ uri: 'https://neon-evm.coin.ledger.com',
771
+ },
772
+ explorer: {
773
+ type: 'blockscout',
774
+ uri: 'https://neon.blockscout.com/api',
775
+ },
776
+ },
777
+ lukso: {
778
+ status: {
779
+ type: 'active',
780
+ features: [{ id: 'blockchain_txs', status: 'active' }],
781
+ },
782
+ chainId: 42,
783
+ name: 'Lukso',
784
+ unit: { name: 'LYX', code: 'LYX', magnitude: 18 },
785
+ node: {
786
+ type: 'external',
787
+ uri: 'https://lukso.coin.ledger.com',
788
+ },
789
+ explorer: {
790
+ type: 'blockscout',
791
+ uri: 'https://explorer.execution.mainnet.lukso.network/api/v1/',
792
+ },
793
+ },
794
+ linea: {
795
+ status: {
796
+ type: 'active',
797
+ features: [{ id: 'blockchain_txs', status: 'active' }],
798
+ },
799
+ chainId: 59144,
800
+ name: 'Linea',
801
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
802
+ node: {
803
+ type: 'external',
804
+ uri: 'https://linea.coin.ledger.com',
805
+ },
806
+ explorer: {
807
+ type: 'etherscan',
808
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/59144',
809
+ },
810
+ },
811
+ // testnets
812
+ ethereum_sepolia: {
813
+ status: {
814
+ type: 'active',
815
+ features: [{ id: 'blockchain_txs', status: 'active' }],
816
+ },
817
+ chainId: 11155111,
818
+ name: 'Ethereum Sepolia',
819
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
820
+ node: { type: 'ledger', explorerId: 'eth_sepolia' },
821
+ explorer: { type: 'ledger', explorerId: 'eth_sepolia' },
822
+ gasTracker: { type: 'ledger', explorerId: 'eth_sepolia' },
823
+ },
824
+ ethereum_hoodi: {
825
+ status: {
826
+ type: 'active',
827
+ features: [{ id: 'blockchain_txs', status: 'active' }],
828
+ },
829
+ chainId: 560048,
830
+ name: 'Ethereum Hoodi',
831
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
832
+ node: { type: 'ledger', explorerId: 'eth_hoodi' },
833
+ explorer: { type: 'ledger', explorerId: 'eth_hoodi' },
834
+ gasTracker: { type: 'ledger', explorerId: 'eth_hoodi' },
835
+ },
836
+ polygon_amoy: {
837
+ status: {
838
+ type: 'active',
839
+ features: [{ id: 'blockchain_txs', status: 'active' }],
840
+ },
841
+ chainId: 80002,
842
+ name: 'Polygon Amoy',
843
+ unit: { name: 'POL', code: 'POL', magnitude: 18 },
844
+ node: { type: 'ledger', explorerId: 'matic_amoy' },
845
+ explorer: { type: 'ledger', explorerId: 'matic_amoy' },
846
+ gasTracker: { type: 'ledger', explorerId: 'matic_amoy' },
847
+ },
848
+ arbitrum_sepolia: {
849
+ status: { type: 'active' },
850
+ chainId: 421614,
851
+ name: 'Arbitrum Sepolia',
852
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
853
+ node: { type: 'external', uri: 'https://arbitrum-sepolia.coin.ledger.com' },
854
+ explorer: {
855
+ type: 'etherscan',
856
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/421614',
857
+ },
858
+ },
859
+ polygon_zk_evm_testnet: {
860
+ status: {
861
+ type: 'active',
862
+ features: [{ id: 'blockchain_txs', status: 'active' }],
863
+ },
864
+ chainId: 1442,
865
+ name: 'Polygon zkEVM Testnet',
866
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
867
+ node: { type: 'external', uri: 'https://polygon-zkevm-cardona.coin.ledger.com' },
868
+ explorer: {
869
+ type: 'etherscan',
870
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/1442',
871
+ },
872
+ },
873
+ base_sepolia: {
874
+ status: {
875
+ type: 'active',
876
+ features: [{ id: 'blockchain_txs', status: 'active' }],
877
+ },
878
+ chainId: 84532,
879
+ name: 'Base Sepolia',
880
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
881
+ node: { type: 'external', uri: 'https://base-sepolia.coin.ledger.com' },
882
+ explorer: { type: 'blockscout', uri: 'https://base-sepolia.blockscout.com/api' },
883
+ },
884
+ linea_sepolia: {
885
+ status: {
886
+ type: 'active',
887
+ features: [{ id: 'blockchain_txs', status: 'active' }],
888
+ },
889
+ chainId: 59141,
890
+ name: 'Linea Sepolia',
891
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
892
+ node: { type: 'external', uri: 'https://linea-sepolia.coin.ledger.com' },
893
+ explorer: {
894
+ type: 'etherscan',
895
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/59141',
896
+ },
897
+ },
898
+ scroll: {
899
+ status: {
900
+ type: 'active',
901
+ features: [{ id: 'blockchain_txs', status: 'active' }],
902
+ },
903
+ chainId: 534352,
904
+ name: 'Scroll',
905
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
906
+ node: { type: 'external', uri: 'https://scroll.coin.ledger.com' },
907
+ explorer: {
908
+ type: 'blockscout',
909
+ uri: 'https://proxyblockscout.api.live.ledger.com/534352/api',
910
+ },
911
+ },
912
+ shape: {
913
+ status: {
914
+ type: 'active',
915
+ features: [{ id: 'blockchain_txs', status: 'active' }],
916
+ },
917
+ chainId: 360,
918
+ name: 'Shape',
919
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
920
+ node: { type: 'external', uri: 'https://mainnet.shape.network' },
921
+ explorer: { type: 'blockscout', uri: 'https://shapescan.xyz/api' },
922
+ },
923
+ story: {
924
+ status: {
925
+ type: 'active',
926
+ features: [{ id: 'blockchain_txs', status: 'active' }],
927
+ },
928
+ chainId: 1514,
929
+ name: 'Story',
930
+ unit: { name: 'IP', code: 'IP', magnitude: 18 },
931
+ node: { type: 'external', uri: 'https://story.coin.ledger.com' },
932
+ explorer: {
933
+ type: 'blockscout',
934
+ uri: 'https://proxyblockscout.api.live.ledger.com/1514/api',
935
+ },
936
+ },
937
+ etherlink: {
938
+ status: {
939
+ type: 'active',
940
+ features: [{ id: 'blockchain_txs', status: 'active' }],
941
+ },
942
+ chainId: 42793,
943
+ name: 'Etherlink',
944
+ unit: { name: 'XTZ', code: 'XTZ', magnitude: 18 },
945
+ node: { type: 'external', uri: 'https://node.mainnet.etherlink.com' },
946
+ explorer: { type: 'blockscout', uri: 'https://explorer.etherlink.com/api' },
947
+ },
948
+ zksync: {
949
+ status: {
950
+ type: 'active',
951
+ features: [{ id: 'blockchain_txs', status: 'active' }],
952
+ },
953
+ chainId: 324,
954
+ name: 'ZKsync',
955
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
956
+ node: { type: 'external', uri: 'https://zksync.coin.ledger.com' },
957
+ explorer: { type: 'blockscout', uri: 'https://proxyblockscout.api.live.ledger.com/324/api' },
958
+ },
959
+ zksync_sepolia: {
960
+ status: {
961
+ type: 'active',
962
+ features: [{ id: 'blockchain_txs', status: 'active' }],
963
+ },
964
+ chainId: 300,
965
+ name: 'ZKsync Sepolia',
966
+ unit: { name: 'ETH', code: 'ETH', magnitude: 18 },
967
+ node: { type: 'external', uri: 'https://zksync-sepolia.coin.ledger.com' },
968
+ explorer: { type: 'blockscout', uri: 'https://zksync-sepolia.blockscout.com/api' },
969
+ },
970
+ monad: {
971
+ status: {
972
+ type: 'active',
973
+ features: [{ id: 'blockchain_txs', status: 'active' }],
974
+ },
975
+ chainId: 143,
976
+ name: 'Monad',
977
+ unit: { name: 'MON', code: 'MON', magnitude: 18 },
978
+ node: {
979
+ type: 'external',
980
+ uri: 'https://monad.coin.ledger.com',
981
+ },
982
+ explorer: {
983
+ type: 'etherscan',
984
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/143',
985
+ },
986
+ },
987
+ monad_testnet: {
988
+ status: {
989
+ type: 'active',
990
+ features: [{ id: 'blockchain_txs', status: 'active' }],
991
+ },
992
+ chainId: 10143,
993
+ name: 'Monad Testnet',
994
+ unit: { name: 'MON', code: 'MON', magnitude: 18 },
995
+ node: {
996
+ type: 'external',
997
+ uri: 'https://monad-testnet.coin.ledger.com',
998
+ },
999
+ explorer: {
1000
+ type: 'etherscan',
1001
+ uri: 'https://proxyetherscan.api.live.ledger.com/v2/api/10143',
1002
+ },
1003
+ },
1004
+ somnia: {
1005
+ status: {
1006
+ type: 'active',
1007
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1008
+ },
1009
+ chainId: 5031,
1010
+ name: 'Somnia',
1011
+ unit: { name: 'SOMI', code: 'SOMI', magnitude: 18 },
1012
+ node: {
1013
+ type: 'external',
1014
+ uri: 'https://somnia-rpc.publicnode.com',
1015
+ },
1016
+ explorer: {
1017
+ type: 'blockscout',
1018
+ uri: 'https://mainnet.somnia.w3us.site/api',
1019
+ },
1020
+ },
1021
+ zero_gravity: {
1022
+ status: {
1023
+ type: 'active',
1024
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1025
+ },
1026
+ chainId: 16661,
1027
+ name: '0G',
1028
+ unit: { name: '0G', code: '0G', magnitude: 18 },
1029
+ node: {
1030
+ type: 'external',
1031
+ uri: 'https://zero-gravity.coin.ledger.com',
1032
+ },
1033
+ explorer: {
1034
+ type: 'blockscout',
1035
+ uri: 'https://chainscan.0g.ai/open/api',
1036
+ maxLimit: 99,
1037
+ },
1038
+ minGasPrice: '2000000000',
1039
+ },
1040
+ adi: {
1041
+ status: {
1042
+ type: 'active',
1043
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1044
+ },
1045
+ chainId: 36900,
1046
+ name: 'Adi',
1047
+ unit: { name: 'ADI', code: 'ADI', magnitude: 18 },
1048
+ node: {
1049
+ type: 'external',
1050
+ uri: 'https://rpc.adifoundation.ai',
1051
+ },
1052
+ explorer: {
1053
+ type: 'blockscout',
1054
+ uri: 'https://explorer-bls.adifoundation.ai/api',
1055
+ },
1056
+ },
1057
+ unichain: {
1058
+ status: {
1059
+ type: 'active',
1060
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1061
+ },
1062
+ chainId: 130,
1063
+ name: 'Unichain',
1064
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
1065
+ node: {
1066
+ type: 'external',
1067
+ uri: 'https://unichain.coin.ledger.com',
1068
+ },
1069
+ explorer: {
1070
+ type: 'blockscout',
1071
+ uri: 'https://proxyblockscout.api.live.ledger.com/130/api',
1072
+ },
1073
+ },
1074
+ unichain_sepolia: {
1075
+ status: {
1076
+ type: 'active',
1077
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1078
+ },
1079
+ chainId: 1301,
1080
+ name: 'Unichain Sepolia',
1081
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
1082
+ node: { type: 'external', uri: 'https://unichain-sepolia-rpc.publicnode.com' },
1083
+ explorer: { type: 'blockscout', uri: 'https://unichain-sepolia.blockscout.com/api' },
1084
+ },
1085
+ arc: {
1086
+ status: {
1087
+ type: 'active',
1088
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1089
+ },
1090
+ chainId: 5042,
1091
+ name: 'Arc',
1092
+ unit: { name: 'USDC', code: 'USDC', magnitude: 18 },
1093
+ node: {
1094
+ type: 'external',
1095
+ uri: 'https://arc.coin.ledger.com',
1096
+ },
1097
+ explorer: {
1098
+ type: 'blockscout',
1099
+ uri: 'https://proxyblockscout.api.live.ledger.com/5042/api',
1100
+ },
1101
+ nativeContracts: ['0x3600000000000000000000000000000000000000'],
1102
+ feeHistoryBlockCount: 1024,
1103
+ feeHistoryRewardPercentile: 60,
1104
+ },
1105
+ arc_testnet: {
1106
+ status: {
1107
+ type: 'active',
1108
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1109
+ },
1110
+ chainId: 5042002,
1111
+ name: 'Arc Testnet',
1112
+ unit: { name: 'USDC', code: 'USDC', magnitude: 18 },
1113
+ node: { type: 'external', uri: 'https://rpc.testnet.arc.network' },
1114
+ explorer: {
1115
+ type: 'blockscout',
1116
+ uri: 'https://proxyblockscout.api.live.ledger.com/5042002/api',
1117
+ },
1118
+ nativeContracts: ['0x3600000000000000000000000000000000000000'],
1119
+ feeHistoryBlockCount: 1024,
1120
+ feeHistoryRewardPercentile: 60,
1121
+ },
1122
+ robinhood: {
1123
+ status: {
1124
+ type: 'active',
1125
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1126
+ },
1127
+ chainId: 4663,
1128
+ name: 'Robinhood Chain',
1129
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
1130
+ node: { type: 'external', uri: 'https://robinhood.coin.ledger.com' },
1131
+ explorer: {
1132
+ type: 'blockscout',
1133
+ uri: 'https://proxyblockscout.api.live.ledger.com/4663/api',
1134
+ },
1135
+ },
1136
+ robinhood_testnet: {
1137
+ status: {
1138
+ type: 'active',
1139
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1140
+ },
1141
+ chainId: 46630,
1142
+ name: 'Robinhood Chain Testnet',
1143
+ unit: { name: 'ether', code: 'ETH', magnitude: 18 },
1144
+ node: { type: 'external', uri: 'https://rpc.testnet.chain.robinhood.com' },
1145
+ explorer: {
1146
+ type: 'none',
1147
+ },
1148
+ },
1149
+ alpen_testnet: {
1150
+ status: {
1151
+ type: 'active',
1152
+ features: [{ id: 'blockchain_txs', status: 'active' }],
1153
+ },
1154
+ chainId: 20310,
1155
+ name: 'Alpen Testnet',
1156
+ unit: { name: 'BTC', code: 'BTC', magnitude: 18 },
1157
+ node: { type: 'external', uri: 'https://alpen.testnet.alpen.org' },
1158
+ explorer: {
1159
+ type: 'blockscout',
1160
+ uri: 'https://explorer.testnet.alpen.org/api',
1161
+ },
1162
+ // Alpen's fee market is sparse: the base fee holds at 0.000875-0.001 gwei and
1163
+ // eth_feeHistory reports no tips, so EIP-1559 estimation falls back to a 1 gwei tip
1164
+ // (~1000x the real cost). Zero-tip transactions are included, so price as legacy from
1165
+ // eth_gasPrice with a 2x-base-fee floor. Re-measure after a regenesis and at mainnet.
1166
+ forceLegacyTransactions: true,
1167
+ minGasPrice: '2000000',
1168
+ },
1169
+ } satisfies Record<string, EvmConfigInfo>