@talken/talkenkit 2.8.4 → 2.8.6
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.
- package/dist/{abcWallet-4PXYWHYM.js → abcWallet-RPQPYWWR.js} +22 -25
- package/dist/{chunk-ZISAJ7BZ.js → chunk-GS4L4ZIS.js} +3354 -1012
- package/dist/config/networks.d.ts +12 -0
- package/dist/gasless/index.d.ts +1 -1
- package/dist/gasless/services/GaslessTransferService.d.ts +2 -1
- package/dist/gasless/signer/AbcWaasSigner.d.ts +9 -0
- package/dist/gasless/signer/GaslessSigner.d.ts +10 -0
- package/dist/gasless/signer/WagmiSigner.d.ts +40 -0
- package/dist/gasless/signer/index.d.ts +1 -1
- package/dist/gasless/utils/delegationGuard.d.ts +11 -11
- package/dist/gasless/utils/revokeDelegation.d.ts +23 -23
- package/dist/hooks/useMultiChainBalances.d.ts +2 -0
- package/dist/index.css +17 -15
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1287 -586
- package/dist/services/AbcAuthService.d.ts +12 -1
- package/dist/solana/clusterIdentity.d.ts +5 -0
- package/dist/utils/amount.d.ts +17 -0
- package/dist/wallets/walletConnectors/abcWallet/AbcCredentialManager.d.ts +0 -1
- package/dist/wallets/walletConnectors/abcWallet/AbcCredentialManager.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +5 -5
- package/dist/wallets/walletConnectors/abcWallet/AbstractChainProvider.d.ts +11 -0
- package/dist/wallets/walletConnectors/abcWallet/AbstractChainProvider.js +5 -2
- package/dist/wallets/walletConnectors/abcWallet/ProviderError.d.ts +7 -0
- package/dist/wallets/walletConnectors/abcWallet/StorageService.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.d.ts +2 -0
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +8 -6
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.d.ts +1 -0
- package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +16 -6
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +24 -21
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +4 -4
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +13 -9
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +28 -24
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.d.ts +3 -0
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +183 -62
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.d.ts +2 -1
- package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +16 -6
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +25 -22
- package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.d.ts +19 -1
- package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.js +20 -8
- package/dist/wallets/walletConnectors/abcWallet/api/AccessKeySessionBinding.d.ts +10 -0
- package/dist/wallets/walletConnectors/abcWallet/api/AccessKeySessionBinding.js +13 -0
- package/dist/wallets/walletConnectors/abcWallet/api/ConfigApi.js +5 -2
- package/dist/wallets/walletConnectors/abcWallet/api/GasApi.js +5 -1
- package/dist/wallets/walletConnectors/abcWallet/api/SolanaApi.js +5 -1
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.d.ts +34 -12
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +20 -16
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.d.ts +6 -0
- package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiSingleton.js +10 -1
- package/dist/wallets/walletConnectors/abcWallet/api/TokenApi.js +5 -2
- package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +13 -3
- package/dist/wallets/walletConnectors/abcWallet/api/index.js +29 -25
- package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.d.ts +20 -10
- package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.d.ts +16 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.js +12 -9
- package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.d.ts +20 -4
- package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.js +11 -8
- package/dist/wallets/walletConnectors/abcWallet/api/modules/executeBodies.d.ts +79 -0
- package/dist/wallets/walletConnectors/abcWallet/api/modules/executeBodies.js +33 -0
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.d.ts +4 -1
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.js +7 -3
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.d.ts +6 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.js +7 -6
- package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.d.ts +9 -3
- package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.js +7 -5
- package/dist/wallets/walletConnectors/abcWallet/api/modules/tron.d.ts +10 -4
- package/dist/wallets/walletConnectors/abcWallet/api/modules/tron.js +15 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/wallet.d.ts +2 -1
- package/dist/wallets/walletConnectors/abcWallet/api/modules/wallet.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/walletscan.js +2 -2
- package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.d.ts +13 -3
- package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.js +15 -2
- package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +17 -5
- package/dist/wallets/walletConnectors/abcWallet/constants.js +3 -1
- package/dist/wallets/walletConnectors/abcWallet/index.d.ts +1 -0
- package/dist/wallets/walletConnectors/abcWallet/index.js +49 -45
- package/dist/wallets/walletConnectors/abcWallet/sendFailure.d.ts +10 -0
- package/dist/wallets/walletConnectors/abcWallet/sendFailure.js +7 -0
- package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +11 -3
- package/dist/wallets/walletConnectors/abcWallet/types/api.types.d.ts +76 -1
- package/dist/wallets/walletConnectors/abcWallet/types/auth.types.d.ts +75 -0
- package/dist/wallets/walletConnectors/abcWallet/types/config.types.d.ts +4 -0
- package/dist/wallets/walletConnectors/abcWallet/types/error.types.d.ts +16 -1
- package/dist/wallets/walletConnectors/abcWallet/types/error.types.js +5 -3
- package/dist/wallets/walletConnectors/abcWallet/types.js +8 -6
- package/dist/wallets/walletConnectors/abcWallet/utils.js +5 -5
- package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +7 -6
- package/dist/wallets/walletConnectors/berasigWallet/berasigWallet.js +2 -2
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/binanceWallet/binanceWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/chunk-4K2V7RCL.js +96 -0
- package/dist/wallets/walletConnectors/{chunk-CCUNTMLD.js → chunk-4MCD2P7Q.js} +79 -30
- package/dist/wallets/walletConnectors/chunk-4UMY2AY7.js +414 -0
- package/dist/wallets/walletConnectors/{chunk-YECMDMEA.js → chunk-5IY2JM5V.js} +3 -3
- package/dist/wallets/walletConnectors/chunk-5KPLYJOO.js +820 -0
- package/dist/wallets/walletConnectors/chunk-64X6Z6JH.js +390 -0
- package/dist/wallets/walletConnectors/chunk-74OE3YZX.js +739 -0
- package/dist/wallets/walletConnectors/chunk-76M232IF.js +101 -0
- package/dist/wallets/walletConnectors/chunk-CEOJSQAI.js +66 -0
- package/dist/wallets/walletConnectors/chunk-CMSHILRF.js +71 -0
- package/dist/wallets/walletConnectors/chunk-CNKRIZ6T.js +246 -0
- package/dist/wallets/walletConnectors/{chunk-5SHN7JNR.js → chunk-CO5DIPSI.js} +4 -5
- package/dist/wallets/walletConnectors/chunk-CTAFZ5RQ.js +71 -0
- package/dist/wallets/walletConnectors/chunk-DHWJ3552.js +93 -0
- package/dist/wallets/walletConnectors/{chunk-6HR6CEOY.js → chunk-DMZ3PH25.js} +7 -3
- package/dist/wallets/walletConnectors/{chunk-ZTIRW7TR.js → chunk-DUEQONAP.js} +3 -1
- package/dist/wallets/walletConnectors/{chunk-CIAVEXOY.js → chunk-EJWP6MEK.js} +527 -955
- package/dist/wallets/walletConnectors/{chunk-5E7TNMON.js → chunk-EMNOGQO2.js} +18 -7
- package/dist/wallets/walletConnectors/{chunk-6LPMWYFM.js → chunk-EUHXX2SF.js} +151 -83
- package/dist/wallets/walletConnectors/{chunk-OTLZVWY7.js → chunk-EZVOMG73.js} +3 -1
- package/dist/wallets/walletConnectors/{chunk-HXYOWG5P.js → chunk-F2OS4PE2.js} +58 -7
- package/dist/wallets/walletConnectors/chunk-FE2BFYJB.js +73 -0
- package/dist/wallets/walletConnectors/chunk-FGYJTUYV.js +94 -0
- package/dist/wallets/walletConnectors/chunk-FVA6H2VF.js +95 -0
- package/dist/wallets/walletConnectors/chunk-GNF5CHDQ.js +102 -0
- package/dist/wallets/walletConnectors/{chunk-TXB6KXPR.js → chunk-GOUMVJSK.js} +101 -63
- package/dist/wallets/walletConnectors/{chunk-DPYQH3WE.js → chunk-GUXCFLV3.js} +130 -72
- package/dist/wallets/walletConnectors/chunk-GZPGNUNF.js +94 -0
- package/dist/wallets/walletConnectors/chunk-H63QJV3U.js +84 -0
- package/dist/wallets/walletConnectors/chunk-HALTGRQW.js +87 -0
- package/dist/wallets/walletConnectors/{chunk-F6EG7H2O.js → chunk-ICDXVAE5.js} +72 -20
- package/dist/wallets/walletConnectors/{chunk-75H6DQT6.js → chunk-KHBX3RMO.js} +4 -2
- package/dist/wallets/walletConnectors/chunk-KNNHGFKJ.js +98 -0
- package/dist/wallets/walletConnectors/chunk-KQDFRZT4.js +65 -0
- package/dist/wallets/walletConnectors/chunk-KQROIRBW.js +27 -0
- package/dist/wallets/walletConnectors/chunk-LKNK2KKU.js +76 -0
- package/dist/wallets/walletConnectors/{chunk-HFW2XV2R.js → chunk-LS4W2YJJ.js} +28 -7
- package/dist/wallets/walletConnectors/chunk-NM7YUGLV.js +186 -0
- package/dist/wallets/walletConnectors/chunk-NVJA6FA7.js +79 -0
- package/dist/wallets/walletConnectors/chunk-NXLLPSM4.js +53 -0
- package/dist/wallets/walletConnectors/{chunk-HMMEOZDT.js → chunk-PGV5K26R.js} +6 -4
- package/dist/wallets/walletConnectors/{chunk-F6AHT6K4.js → chunk-PL56SINL.js} +1 -1
- package/dist/wallets/walletConnectors/{chunk-YUBS7MJ6.js → chunk-Q66E4NTB.js} +53 -14
- package/dist/wallets/walletConnectors/chunk-QRU6XFHH.js +110 -0
- package/dist/wallets/walletConnectors/{chunk-FWKMNVWU.js → chunk-RVLR562W.js} +39 -9
- package/dist/wallets/walletConnectors/{chunk-XQTK7NGN.js → chunk-SUMQUG76.js} +35 -10
- package/dist/wallets/walletConnectors/chunk-TA4DDCKN.js +96 -0
- package/dist/wallets/walletConnectors/chunk-TWVKSPTP.js +91 -0
- package/dist/wallets/walletConnectors/chunk-U5UPCM5V.js +66 -0
- package/dist/wallets/walletConnectors/{chunk-BUAWEYGV.js → chunk-UVPRZEPJ.js} +10 -2
- package/dist/wallets/walletConnectors/chunk-V5LGED4F.js +103 -0
- package/dist/wallets/walletConnectors/{chunk-ZITVWA4X.js → chunk-V6R6WDOQ.js} +1 -1
- package/dist/wallets/walletConnectors/chunk-WBVDGWKA.js +60 -0
- package/dist/wallets/walletConnectors/{chunk-RQYBKCWA.js → chunk-WMDTUVBI.js} +4 -2
- package/dist/wallets/walletConnectors/{chunk-OEZE4GBQ.js → chunk-WXLW3QUZ.js} +66 -12
- package/dist/wallets/walletConnectors/chunk-WZMFQQ6R.js +108 -0
- package/dist/wallets/walletConnectors/{chunk-QTBJ6WNZ.js → chunk-X3P74Y3M.js} +110 -59
- package/dist/wallets/walletConnectors/{chunk-7GBAUSQJ.js → chunk-XPZCOEQL.js} +13 -6
- package/dist/wallets/walletConnectors/chunk-XS6GJRRA.js +98 -0
- package/dist/wallets/walletConnectors/{chunk-2OHHFQQ7.js → chunk-XSH5KJQV.js} +3 -1
- package/dist/wallets/walletConnectors/chunk-XSJUQHR7.js +95 -0
- package/dist/wallets/walletConnectors/chunk-XSX5EECZ.js +96 -0
- package/dist/wallets/walletConnectors/chunk-Z66ETAKN.js +20 -0
- package/dist/wallets/walletConnectors/{chunk-UNLWNVSN.js → chunk-ZJCV4QR4.js} +40 -11
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +94 -91
- package/dist/wallets/walletConnectors/iopayWallet/iopayWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaiaWallet/kaiaWallet.js +2 -2
- package/dist/wallets/walletConnectors/kaikasWallet/kaikasWallet.js +2 -2
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zealWallet/zealWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +1 -1
- package/dist/AbcCredentialManager-QM2BNLSR.js +0 -7
- package/dist/TalkenApiSingleton-TECFDCT4.js +0 -9
- package/dist/chunk-PS5CBMY5.js +0 -453
- package/dist/chunk-R6ZE7JAZ.js +0 -15
- package/dist/wallets/walletConnectors/chunk-3DHUDD4U.js +0 -132
- package/dist/wallets/walletConnectors/chunk-6BHMNR5X.js +0 -46
- package/dist/wallets/walletConnectors/chunk-FLBJ7T4Q.js +0 -44
- package/dist/wallets/walletConnectors/chunk-KX3IFHJQ.js +0 -370
- package/dist/wallets/walletConnectors/chunk-R6ZE7JAZ.js +0 -15
|
@@ -0,0 +1,820 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/config/networks.ts
|
|
4
|
+
var NETWORK_CONFIGS = {
|
|
5
|
+
// Ethereum Mainnet
|
|
6
|
+
1: {
|
|
7
|
+
chainId: 1,
|
|
8
|
+
network: "ethereum",
|
|
9
|
+
name: "Ethereum",
|
|
10
|
+
type: "EVM" /* EVM */,
|
|
11
|
+
isTestnet: false,
|
|
12
|
+
explorer: "https://etherscan.io",
|
|
13
|
+
website: "https://ethereum.org",
|
|
14
|
+
nativeCurrency: {
|
|
15
|
+
name: "Ether",
|
|
16
|
+
symbol: "ETH",
|
|
17
|
+
decimals: 18
|
|
18
|
+
},
|
|
19
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
20
|
+
signSupport: { legacy: true, eip1559: true }
|
|
21
|
+
},
|
|
22
|
+
// Ethereum Sepolia Testnet
|
|
23
|
+
11155111: {
|
|
24
|
+
chainId: 11155111,
|
|
25
|
+
network: "ethereum_sepolia",
|
|
26
|
+
name: "Ethereum Sepolia",
|
|
27
|
+
type: "EVM" /* EVM */,
|
|
28
|
+
isTestnet: true,
|
|
29
|
+
explorer: "https://sepolia.etherscan.io",
|
|
30
|
+
website: "https://ethereum.org",
|
|
31
|
+
nativeCurrency: {
|
|
32
|
+
name: "Sepolia Ether",
|
|
33
|
+
symbol: "ETH",
|
|
34
|
+
decimals: 18
|
|
35
|
+
},
|
|
36
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
37
|
+
signSupport: { legacy: true, eip1559: true }
|
|
38
|
+
},
|
|
39
|
+
// Ethereum Holesky Testnet
|
|
40
|
+
17e3: {
|
|
41
|
+
chainId: 17e3,
|
|
42
|
+
network: "ethereum_holesky",
|
|
43
|
+
name: "Ethereum Holesky",
|
|
44
|
+
type: "EVM" /* EVM */,
|
|
45
|
+
isTestnet: true,
|
|
46
|
+
explorer: "https://holesky.etherscan.io",
|
|
47
|
+
website: "https://ethereum.org",
|
|
48
|
+
nativeCurrency: {
|
|
49
|
+
name: "Holesky Ether",
|
|
50
|
+
symbol: "ETH",
|
|
51
|
+
decimals: 18
|
|
52
|
+
},
|
|
53
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
54
|
+
signSupport: { legacy: true, eip1559: true }
|
|
55
|
+
},
|
|
56
|
+
// Kaia Mainnet (formerly Klaytn)
|
|
57
|
+
8217: {
|
|
58
|
+
chainId: 8217,
|
|
59
|
+
network: "kaia",
|
|
60
|
+
name: "Kaia Mainnet",
|
|
61
|
+
type: "EVM" /* EVM */,
|
|
62
|
+
isTestnet: false,
|
|
63
|
+
explorer: "https://kaiascan.io",
|
|
64
|
+
website: "https://kaia.io",
|
|
65
|
+
nativeCurrency: {
|
|
66
|
+
name: "Kaia",
|
|
67
|
+
symbol: "KAIA",
|
|
68
|
+
decimals: 18
|
|
69
|
+
},
|
|
70
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
71
|
+
signSupport: { legacy: true, eip1559: true }
|
|
72
|
+
},
|
|
73
|
+
// Kaia Kairos Testnet
|
|
74
|
+
1001: {
|
|
75
|
+
chainId: 1001,
|
|
76
|
+
network: "kaia_kairos",
|
|
77
|
+
name: "Kaia Kairos Testnet",
|
|
78
|
+
type: "EVM" /* EVM */,
|
|
79
|
+
isTestnet: true,
|
|
80
|
+
explorer: "https://kairos.kaiascan.io",
|
|
81
|
+
website: "https://kaia.io",
|
|
82
|
+
nativeCurrency: {
|
|
83
|
+
name: "Kaia",
|
|
84
|
+
symbol: "KAIA",
|
|
85
|
+
decimals: 18
|
|
86
|
+
},
|
|
87
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
88
|
+
signSupport: { legacy: true, eip1559: true }
|
|
89
|
+
},
|
|
90
|
+
// Polygon Mainnet
|
|
91
|
+
137: {
|
|
92
|
+
chainId: 137,
|
|
93
|
+
network: "polygon",
|
|
94
|
+
name: "Polygon",
|
|
95
|
+
type: "EVM" /* EVM */,
|
|
96
|
+
isTestnet: false,
|
|
97
|
+
explorer: "https://polygonscan.com",
|
|
98
|
+
website: "https://polygon.technology",
|
|
99
|
+
nativeCurrency: {
|
|
100
|
+
name: "MATIC",
|
|
101
|
+
symbol: "MATIC",
|
|
102
|
+
decimals: 18
|
|
103
|
+
},
|
|
104
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
105
|
+
signSupport: { legacy: true, eip1559: true }
|
|
106
|
+
},
|
|
107
|
+
// Polygon Amoy Testnet
|
|
108
|
+
80002: {
|
|
109
|
+
chainId: 80002,
|
|
110
|
+
network: "polygon_amoy",
|
|
111
|
+
name: "Polygon Amoy Testnet",
|
|
112
|
+
type: "EVM" /* EVM */,
|
|
113
|
+
isTestnet: true,
|
|
114
|
+
explorer: "https://amoy.polygonscan.com",
|
|
115
|
+
website: "https://polygon.technology",
|
|
116
|
+
nativeCurrency: {
|
|
117
|
+
name: "MATIC",
|
|
118
|
+
symbol: "MATIC",
|
|
119
|
+
decimals: 18
|
|
120
|
+
},
|
|
121
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
122
|
+
signSupport: { legacy: true, eip1559: true }
|
|
123
|
+
},
|
|
124
|
+
// Binance Smart Chain Mainnet
|
|
125
|
+
56: {
|
|
126
|
+
chainId: 56,
|
|
127
|
+
network: "binance",
|
|
128
|
+
name: "Binance Smart Chain Mainnet",
|
|
129
|
+
type: "EVM" /* EVM */,
|
|
130
|
+
isTestnet: false,
|
|
131
|
+
explorer: "https://bscscan.com",
|
|
132
|
+
website: "https://www.bnbchain.org/en/bnb-smart-chain",
|
|
133
|
+
nativeCurrency: {
|
|
134
|
+
name: "BNB",
|
|
135
|
+
symbol: "BNB",
|
|
136
|
+
decimals: 18
|
|
137
|
+
},
|
|
138
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
139
|
+
signSupport: { legacy: true, eip1559: true }
|
|
140
|
+
},
|
|
141
|
+
// Binance Smart Chain Testnet
|
|
142
|
+
97: {
|
|
143
|
+
chainId: 97,
|
|
144
|
+
network: "binance_testnet",
|
|
145
|
+
name: "Binance Smart Chain Testnet",
|
|
146
|
+
type: "EVM" /* EVM */,
|
|
147
|
+
isTestnet: true,
|
|
148
|
+
explorer: "https://testnet.bscscan.com",
|
|
149
|
+
website: "https://www.bnbchain.org/en/bnb-smart-chain",
|
|
150
|
+
nativeCurrency: {
|
|
151
|
+
name: "BNB",
|
|
152
|
+
symbol: "BNB",
|
|
153
|
+
decimals: 18
|
|
154
|
+
},
|
|
155
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
156
|
+
signSupport: { legacy: true, eip1559: true }
|
|
157
|
+
},
|
|
158
|
+
// Arbitrum One
|
|
159
|
+
42161: {
|
|
160
|
+
chainId: 42161,
|
|
161
|
+
network: "arbitrum",
|
|
162
|
+
name: "Arbitrum One",
|
|
163
|
+
type: "EVM" /* EVM */,
|
|
164
|
+
isTestnet: false,
|
|
165
|
+
explorer: "https://arbiscan.io",
|
|
166
|
+
website: "https://arbitrum.io",
|
|
167
|
+
nativeCurrency: {
|
|
168
|
+
name: "Ether",
|
|
169
|
+
symbol: "ETH",
|
|
170
|
+
decimals: 18
|
|
171
|
+
},
|
|
172
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
173
|
+
signSupport: { legacy: true, eip1559: true }
|
|
174
|
+
},
|
|
175
|
+
// Arbitrum Sepolia
|
|
176
|
+
421614: {
|
|
177
|
+
chainId: 421614,
|
|
178
|
+
network: "arbitrum_sepolia",
|
|
179
|
+
name: "Arbitrum Sepolia",
|
|
180
|
+
type: "EVM" /* EVM */,
|
|
181
|
+
isTestnet: true,
|
|
182
|
+
explorer: "https://sepolia.arbiscan.io",
|
|
183
|
+
website: "https://arbitrum.io",
|
|
184
|
+
nativeCurrency: {
|
|
185
|
+
name: "Ether",
|
|
186
|
+
symbol: "ETH",
|
|
187
|
+
decimals: 18
|
|
188
|
+
},
|
|
189
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
190
|
+
signSupport: { legacy: true, eip1559: true }
|
|
191
|
+
},
|
|
192
|
+
// Optimism Mainnet
|
|
193
|
+
10: {
|
|
194
|
+
chainId: 10,
|
|
195
|
+
network: "optimism",
|
|
196
|
+
name: "Optimism",
|
|
197
|
+
type: "EVM" /* EVM */,
|
|
198
|
+
isTestnet: false,
|
|
199
|
+
explorer: "https://optimistic.etherscan.io",
|
|
200
|
+
website: "https://optimism.io",
|
|
201
|
+
nativeCurrency: {
|
|
202
|
+
name: "Ether",
|
|
203
|
+
symbol: "ETH",
|
|
204
|
+
decimals: 18
|
|
205
|
+
},
|
|
206
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
207
|
+
signSupport: { legacy: true, eip1559: true }
|
|
208
|
+
},
|
|
209
|
+
// Optimism Sepolia
|
|
210
|
+
420: {
|
|
211
|
+
chainId: 420,
|
|
212
|
+
network: "optimism_sepolia",
|
|
213
|
+
name: "Optimism Sepolia",
|
|
214
|
+
type: "EVM" /* EVM */,
|
|
215
|
+
isTestnet: true,
|
|
216
|
+
explorer: "https://sepolia-optimism.etherscan.io",
|
|
217
|
+
website: "https://optimism.io",
|
|
218
|
+
nativeCurrency: {
|
|
219
|
+
name: "Ether",
|
|
220
|
+
symbol: "ETH",
|
|
221
|
+
decimals: 18
|
|
222
|
+
},
|
|
223
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
224
|
+
signSupport: { legacy: true, eip1559: true }
|
|
225
|
+
},
|
|
226
|
+
// Avalanche C-Chain
|
|
227
|
+
43114: {
|
|
228
|
+
chainId: 43114,
|
|
229
|
+
network: "avalanche",
|
|
230
|
+
name: "Avalanche C-Chain",
|
|
231
|
+
type: "EVM" /* EVM */,
|
|
232
|
+
isTestnet: false,
|
|
233
|
+
explorer: "https://avascan.info/blockchain/c/home",
|
|
234
|
+
website: "https://avax.network",
|
|
235
|
+
nativeCurrency: {
|
|
236
|
+
name: "Avalanche",
|
|
237
|
+
symbol: "AVAX",
|
|
238
|
+
decimals: 18
|
|
239
|
+
},
|
|
240
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
241
|
+
signSupport: { legacy: true, eip1559: true }
|
|
242
|
+
},
|
|
243
|
+
// Avalanche Fuji Testnet
|
|
244
|
+
43113: {
|
|
245
|
+
chainId: 43113,
|
|
246
|
+
network: "avalanche_fuji",
|
|
247
|
+
name: "Avalanche Fuji Testnet",
|
|
248
|
+
type: "EVM" /* EVM */,
|
|
249
|
+
isTestnet: true,
|
|
250
|
+
explorer: "https://testnet.avascan.info",
|
|
251
|
+
website: "https://avax.network",
|
|
252
|
+
nativeCurrency: {
|
|
253
|
+
name: "Avalanche",
|
|
254
|
+
symbol: "AVAX",
|
|
255
|
+
decimals: 18
|
|
256
|
+
},
|
|
257
|
+
apiSupport: { tokens: false, nft: false, transactions: false },
|
|
258
|
+
signSupport: { legacy: true, eip1559: true }
|
|
259
|
+
},
|
|
260
|
+
// Mantle Mainnet
|
|
261
|
+
5e3: {
|
|
262
|
+
chainId: 5e3,
|
|
263
|
+
network: "mantle",
|
|
264
|
+
name: "Mantle Mainnet",
|
|
265
|
+
type: "EVM" /* EVM */,
|
|
266
|
+
isTestnet: false,
|
|
267
|
+
explorer: "https://explorer.mantle.xyz",
|
|
268
|
+
website: "https://www.mantle.xyz",
|
|
269
|
+
nativeCurrency: {
|
|
270
|
+
name: "Mantle",
|
|
271
|
+
symbol: "MNT",
|
|
272
|
+
decimals: 18
|
|
273
|
+
},
|
|
274
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
275
|
+
signSupport: { legacy: true, eip1559: true }
|
|
276
|
+
},
|
|
277
|
+
// Mantle Testnet
|
|
278
|
+
5001: {
|
|
279
|
+
chainId: 5001,
|
|
280
|
+
network: "mantle_testnet",
|
|
281
|
+
name: "Mantle Testnet",
|
|
282
|
+
type: "EVM" /* EVM */,
|
|
283
|
+
isTestnet: true,
|
|
284
|
+
explorer: "https://sepolia.mantlescan.xyz",
|
|
285
|
+
website: "https://www.mantle.xyz",
|
|
286
|
+
nativeCurrency: {
|
|
287
|
+
name: "Mantle",
|
|
288
|
+
symbol: "MNT",
|
|
289
|
+
decimals: 18
|
|
290
|
+
},
|
|
291
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
292
|
+
signSupport: { legacy: true, eip1559: true }
|
|
293
|
+
},
|
|
294
|
+
// Moonbeam
|
|
295
|
+
1284: {
|
|
296
|
+
chainId: 1284,
|
|
297
|
+
network: "moonbeam",
|
|
298
|
+
name: "Moonbeam",
|
|
299
|
+
type: "EVM" /* EVM */,
|
|
300
|
+
isTestnet: false,
|
|
301
|
+
explorer: "https://moonbeam.moonscan.io",
|
|
302
|
+
website: "https://moonbeam.network",
|
|
303
|
+
nativeCurrency: {
|
|
304
|
+
name: "Glimmer",
|
|
305
|
+
symbol: "GLMR",
|
|
306
|
+
decimals: 18
|
|
307
|
+
},
|
|
308
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
309
|
+
signSupport: { legacy: true, eip1559: true }
|
|
310
|
+
},
|
|
311
|
+
// Moonriver
|
|
312
|
+
1285: {
|
|
313
|
+
chainId: 1285,
|
|
314
|
+
network: "moonriver",
|
|
315
|
+
name: "Moonriver",
|
|
316
|
+
type: "EVM" /* EVM */,
|
|
317
|
+
isTestnet: false,
|
|
318
|
+
explorer: "https://moonriver.moonscan.io",
|
|
319
|
+
website: "https://moonbeam.network/networks/moonriver",
|
|
320
|
+
nativeCurrency: {
|
|
321
|
+
name: "Moonriver",
|
|
322
|
+
symbol: "MOVR",
|
|
323
|
+
decimals: 18
|
|
324
|
+
},
|
|
325
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
326
|
+
signSupport: { legacy: true, eip1559: true }
|
|
327
|
+
},
|
|
328
|
+
// Scroll Mainnet
|
|
329
|
+
534352: {
|
|
330
|
+
chainId: 534352,
|
|
331
|
+
network: "scroll",
|
|
332
|
+
name: "Scroll",
|
|
333
|
+
type: "EVM" /* EVM */,
|
|
334
|
+
isTestnet: false,
|
|
335
|
+
explorer: "https://scrollscan.co",
|
|
336
|
+
website: "https://scroll.io",
|
|
337
|
+
nativeCurrency: {
|
|
338
|
+
name: "Ether",
|
|
339
|
+
symbol: "ETH",
|
|
340
|
+
decimals: 18
|
|
341
|
+
},
|
|
342
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
343
|
+
signSupport: { legacy: true, eip1559: true }
|
|
344
|
+
},
|
|
345
|
+
// Scroll Testnet
|
|
346
|
+
534351: {
|
|
347
|
+
chainId: 534351,
|
|
348
|
+
network: "scroll_testnet",
|
|
349
|
+
name: "Scroll Testnet",
|
|
350
|
+
type: "EVM" /* EVM */,
|
|
351
|
+
isTestnet: true,
|
|
352
|
+
explorer: "https://sepolia.scrollscan.com",
|
|
353
|
+
website: "https://scroll.io",
|
|
354
|
+
nativeCurrency: {
|
|
355
|
+
name: "Ether",
|
|
356
|
+
symbol: "ETH",
|
|
357
|
+
decimals: 18
|
|
358
|
+
},
|
|
359
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
360
|
+
signSupport: { legacy: true, eip1559: true }
|
|
361
|
+
},
|
|
362
|
+
// Silicon Mainnet
|
|
363
|
+
2355: {
|
|
364
|
+
chainId: 2355,
|
|
365
|
+
network: "silicon",
|
|
366
|
+
name: "Silicon",
|
|
367
|
+
type: "EVM" /* EVM */,
|
|
368
|
+
isTestnet: false,
|
|
369
|
+
explorer: "https://scope.silicon.network",
|
|
370
|
+
website: "https://silicon.network",
|
|
371
|
+
nativeCurrency: {
|
|
372
|
+
name: "Ether",
|
|
373
|
+
symbol: "ETH",
|
|
374
|
+
decimals: 18
|
|
375
|
+
},
|
|
376
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
377
|
+
signSupport: { legacy: true, eip1559: true }
|
|
378
|
+
},
|
|
379
|
+
// Silicon Sepolia
|
|
380
|
+
1722641160: {
|
|
381
|
+
chainId: 1722641160,
|
|
382
|
+
network: "silicon_sepolia",
|
|
383
|
+
name: "Silicon Sepolia",
|
|
384
|
+
type: "EVM" /* EVM */,
|
|
385
|
+
isTestnet: true,
|
|
386
|
+
explorer: "https://scope-sepolia.silicon.network",
|
|
387
|
+
website: "https://silicon.network",
|
|
388
|
+
nativeCurrency: {
|
|
389
|
+
name: "Ether",
|
|
390
|
+
symbol: "ETH",
|
|
391
|
+
decimals: 18
|
|
392
|
+
},
|
|
393
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
394
|
+
signSupport: { legacy: true, eip1559: true }
|
|
395
|
+
},
|
|
396
|
+
// Six Protocol
|
|
397
|
+
98: {
|
|
398
|
+
chainId: 98,
|
|
399
|
+
network: "six_evm",
|
|
400
|
+
name: "Six Protocol",
|
|
401
|
+
type: "EVM" /* EVM */,
|
|
402
|
+
isTestnet: false,
|
|
403
|
+
explorer: "https://v2.sixscan.io",
|
|
404
|
+
website: "https://www.six.network",
|
|
405
|
+
nativeCurrency: {
|
|
406
|
+
name: "SIX",
|
|
407
|
+
symbol: "SIX",
|
|
408
|
+
decimals: 18
|
|
409
|
+
},
|
|
410
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
411
|
+
signSupport: { legacy: true, eip1559: false }
|
|
412
|
+
},
|
|
413
|
+
// Six Protocol Testnet
|
|
414
|
+
150: {
|
|
415
|
+
chainId: 150,
|
|
416
|
+
network: "six_evm_testnet",
|
|
417
|
+
name: "Six Protocol Testnet",
|
|
418
|
+
type: "EVM" /* EVM */,
|
|
419
|
+
isTestnet: true,
|
|
420
|
+
explorer: "https://v2.fivenet.sixscan.io",
|
|
421
|
+
website: "https://www.six.network",
|
|
422
|
+
nativeCurrency: {
|
|
423
|
+
name: "SIX",
|
|
424
|
+
symbol: "SIX",
|
|
425
|
+
decimals: 18
|
|
426
|
+
},
|
|
427
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
428
|
+
signSupport: { legacy: true, eip1559: false }
|
|
429
|
+
},
|
|
430
|
+
// Wemix Mainnet
|
|
431
|
+
1111: {
|
|
432
|
+
chainId: 1111,
|
|
433
|
+
network: "wemix",
|
|
434
|
+
name: "Wemix3.0 Mainnet",
|
|
435
|
+
type: "EVM" /* EVM */,
|
|
436
|
+
isTestnet: false,
|
|
437
|
+
explorer: "https://explorer.wemix.com",
|
|
438
|
+
website: "https://wemix.com",
|
|
439
|
+
nativeCurrency: {
|
|
440
|
+
name: "WEMIX",
|
|
441
|
+
symbol: "WEMIX",
|
|
442
|
+
decimals: 18
|
|
443
|
+
},
|
|
444
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
445
|
+
signSupport: { legacy: true, eip1559: true }
|
|
446
|
+
},
|
|
447
|
+
// Wemix Testnet
|
|
448
|
+
1112: {
|
|
449
|
+
chainId: 1112,
|
|
450
|
+
network: "wemix_testnet",
|
|
451
|
+
name: "Wemix3.0 Testnet",
|
|
452
|
+
type: "EVM" /* EVM */,
|
|
453
|
+
isTestnet: true,
|
|
454
|
+
explorer: "https://explorer.test.wemix.com",
|
|
455
|
+
website: "https://wemix.com",
|
|
456
|
+
nativeCurrency: {
|
|
457
|
+
name: "WEMIX",
|
|
458
|
+
symbol: "WEMIX",
|
|
459
|
+
decimals: 18
|
|
460
|
+
},
|
|
461
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
462
|
+
signSupport: { legacy: true, eip1559: true }
|
|
463
|
+
},
|
|
464
|
+
// Taiko Mainnet
|
|
465
|
+
167e3: {
|
|
466
|
+
chainId: 167e3,
|
|
467
|
+
network: "taiko",
|
|
468
|
+
name: "Taiko Mainnet",
|
|
469
|
+
type: "EVM" /* EVM */,
|
|
470
|
+
isTestnet: false,
|
|
471
|
+
explorer: "https://taikoscan.io",
|
|
472
|
+
website: "https://taiko.xyz",
|
|
473
|
+
nativeCurrency: {
|
|
474
|
+
name: "Ether",
|
|
475
|
+
symbol: "ETH",
|
|
476
|
+
decimals: 18
|
|
477
|
+
},
|
|
478
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
479
|
+
signSupport: { legacy: true, eip1559: true }
|
|
480
|
+
},
|
|
481
|
+
// Taiko Hekla Testnet
|
|
482
|
+
167009: {
|
|
483
|
+
chainId: 167009,
|
|
484
|
+
network: "taiko_hekla",
|
|
485
|
+
name: "Taiko Hekla Testnet",
|
|
486
|
+
type: "EVM" /* EVM */,
|
|
487
|
+
isTestnet: true,
|
|
488
|
+
explorer: "https://hekla.taikoscan.io",
|
|
489
|
+
website: "https://taiko.xyz",
|
|
490
|
+
nativeCurrency: {
|
|
491
|
+
name: "Ether",
|
|
492
|
+
symbol: "ETH",
|
|
493
|
+
decimals: 18
|
|
494
|
+
},
|
|
495
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
496
|
+
signSupport: { legacy: true, eip1559: true }
|
|
497
|
+
},
|
|
498
|
+
// Base Mainnet
|
|
499
|
+
8453: {
|
|
500
|
+
chainId: 8453,
|
|
501
|
+
network: "base",
|
|
502
|
+
name: "Base",
|
|
503
|
+
type: "EVM" /* EVM */,
|
|
504
|
+
isTestnet: false,
|
|
505
|
+
explorer: "https://basescan.org",
|
|
506
|
+
website: "https://base.org",
|
|
507
|
+
nativeCurrency: {
|
|
508
|
+
name: "Ether",
|
|
509
|
+
symbol: "ETH",
|
|
510
|
+
decimals: 18
|
|
511
|
+
},
|
|
512
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
513
|
+
signSupport: { legacy: true, eip1559: true }
|
|
514
|
+
},
|
|
515
|
+
// Base Sepolia Testnet
|
|
516
|
+
84532: {
|
|
517
|
+
chainId: 84532,
|
|
518
|
+
network: "base_sepolia",
|
|
519
|
+
name: "Base Sepolia",
|
|
520
|
+
type: "EVM" /* EVM */,
|
|
521
|
+
isTestnet: true,
|
|
522
|
+
explorer: "https://sepolia.basescan.org",
|
|
523
|
+
website: "https://base.org",
|
|
524
|
+
nativeCurrency: {
|
|
525
|
+
name: "Ether",
|
|
526
|
+
symbol: "ETH",
|
|
527
|
+
decimals: 18
|
|
528
|
+
},
|
|
529
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
530
|
+
signSupport: { legacy: true, eip1559: true }
|
|
531
|
+
},
|
|
532
|
+
// ChainBounty Mainnet
|
|
533
|
+
51828: {
|
|
534
|
+
chainId: 51828,
|
|
535
|
+
network: "chainbounty",
|
|
536
|
+
name: "ChainBounty Mainnet",
|
|
537
|
+
type: "EVM" /* EVM */,
|
|
538
|
+
isTestnet: false,
|
|
539
|
+
explorer: "https://scan.chainbounty.io",
|
|
540
|
+
website: "https://chainbounty.io",
|
|
541
|
+
nativeCurrency: {
|
|
542
|
+
name: "ChainBounty",
|
|
543
|
+
symbol: "CBY",
|
|
544
|
+
decimals: 18
|
|
545
|
+
},
|
|
546
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
547
|
+
signSupport: { legacy: true, eip1559: true }
|
|
548
|
+
},
|
|
549
|
+
// ChainBounty Testnet
|
|
550
|
+
56580: {
|
|
551
|
+
chainId: 56580,
|
|
552
|
+
network: "chainbounty_testnet",
|
|
553
|
+
name: "ChainBounty Testnet",
|
|
554
|
+
type: "EVM" /* EVM */,
|
|
555
|
+
isTestnet: true,
|
|
556
|
+
explorer: "https://test.scan.chainbounty.io",
|
|
557
|
+
website: "https://chainbounty.io",
|
|
558
|
+
nativeCurrency: {
|
|
559
|
+
name: "ChainBounty",
|
|
560
|
+
symbol: "CBY",
|
|
561
|
+
decimals: 18
|
|
562
|
+
},
|
|
563
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
564
|
+
signSupport: { legacy: true, eip1559: true }
|
|
565
|
+
},
|
|
566
|
+
// Aptos Mainnet (Non-EVM)
|
|
567
|
+
aptos: {
|
|
568
|
+
chainId: null,
|
|
569
|
+
network: "aptos",
|
|
570
|
+
name: "Aptos",
|
|
571
|
+
type: "Non-EVM" /* NON_EVM */,
|
|
572
|
+
isTestnet: false,
|
|
573
|
+
explorer: "https://explorer.aptoslabs.com/?network=mainnet",
|
|
574
|
+
website: "https://aptos.dev",
|
|
575
|
+
nativeCurrency: {
|
|
576
|
+
name: "Aptos",
|
|
577
|
+
symbol: "APT",
|
|
578
|
+
decimals: 8
|
|
579
|
+
},
|
|
580
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
581
|
+
signSupport: { legacy: true, eip1559: false }
|
|
582
|
+
},
|
|
583
|
+
// Aptos Testnet (Non-EVM)
|
|
584
|
+
aptos_testnet: {
|
|
585
|
+
chainId: null,
|
|
586
|
+
network: "aptos_testnet",
|
|
587
|
+
name: "Aptos Testnet",
|
|
588
|
+
type: "Non-EVM" /* NON_EVM */,
|
|
589
|
+
isTestnet: true,
|
|
590
|
+
explorer: "https://explorer.aptoslabs.com/?network=testnet",
|
|
591
|
+
website: "https://aptos.dev",
|
|
592
|
+
nativeCurrency: {
|
|
593
|
+
name: "Aptos",
|
|
594
|
+
symbol: "APT",
|
|
595
|
+
decimals: 8
|
|
596
|
+
},
|
|
597
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
598
|
+
signSupport: { legacy: true, eip1559: false }
|
|
599
|
+
},
|
|
600
|
+
// Bitcoin Mainnet
|
|
601
|
+
bitcoin: {
|
|
602
|
+
chainId: null,
|
|
603
|
+
network: "bitcoin",
|
|
604
|
+
name: "Bitcoin Mainnet",
|
|
605
|
+
type: "Bitcoin" /* BITCOIN */,
|
|
606
|
+
isTestnet: false,
|
|
607
|
+
explorer: "https://blockstream.info",
|
|
608
|
+
website: "https://bitcoin.org",
|
|
609
|
+
nativeCurrency: {
|
|
610
|
+
name: "Bitcoin",
|
|
611
|
+
symbol: "BTC",
|
|
612
|
+
decimals: 8
|
|
613
|
+
},
|
|
614
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
615
|
+
signSupport: { legacy: true, eip1559: false }
|
|
616
|
+
},
|
|
617
|
+
// Bitcoin Testnet
|
|
618
|
+
bitcoin_testnet: {
|
|
619
|
+
chainId: null,
|
|
620
|
+
network: "bitcoin_testnet",
|
|
621
|
+
name: "Bitcoin Testnet",
|
|
622
|
+
type: "Bitcoin" /* BITCOIN */,
|
|
623
|
+
isTestnet: true,
|
|
624
|
+
explorer: "https://blockstream.info/testnet",
|
|
625
|
+
website: "https://bitcoin.org",
|
|
626
|
+
nativeCurrency: {
|
|
627
|
+
name: "Bitcoin",
|
|
628
|
+
symbol: "BTC",
|
|
629
|
+
decimals: 8
|
|
630
|
+
},
|
|
631
|
+
apiSupport: { tokens: true, nft: false, transactions: true },
|
|
632
|
+
signSupport: { legacy: true, eip1559: false }
|
|
633
|
+
},
|
|
634
|
+
// Tron Mainnet
|
|
635
|
+
tron: {
|
|
636
|
+
chainId: null,
|
|
637
|
+
network: "tron",
|
|
638
|
+
name: "Tron Mainnet",
|
|
639
|
+
type: "TRX" /* TRON */,
|
|
640
|
+
isTestnet: false,
|
|
641
|
+
explorer: "https://tronscan.org",
|
|
642
|
+
website: "https://tron.network",
|
|
643
|
+
nativeCurrency: {
|
|
644
|
+
name: "Tronix",
|
|
645
|
+
symbol: "TRX",
|
|
646
|
+
decimals: 6
|
|
647
|
+
},
|
|
648
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
649
|
+
signSupport: { legacy: true, eip1559: true }
|
|
650
|
+
},
|
|
651
|
+
// Tron Nile Testnet
|
|
652
|
+
tron_nile: {
|
|
653
|
+
chainId: null,
|
|
654
|
+
network: "tron_nile",
|
|
655
|
+
name: "Tron Nile Testnet",
|
|
656
|
+
type: "TRX" /* TRON */,
|
|
657
|
+
isTestnet: true,
|
|
658
|
+
explorer: "https://nile.tronscan.org",
|
|
659
|
+
website: "https://tron.network",
|
|
660
|
+
nativeCurrency: {
|
|
661
|
+
name: "Tronix",
|
|
662
|
+
symbol: "TRX",
|
|
663
|
+
decimals: 6
|
|
664
|
+
},
|
|
665
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
666
|
+
signSupport: { legacy: true, eip1559: true }
|
|
667
|
+
},
|
|
668
|
+
// ICP Mainnet
|
|
669
|
+
icp: {
|
|
670
|
+
chainId: null,
|
|
671
|
+
network: "icp",
|
|
672
|
+
name: "Internet Computer",
|
|
673
|
+
type: "ICP" /* ICP */,
|
|
674
|
+
isTestnet: false,
|
|
675
|
+
explorer: "https://dashboard.internetcomputer.org",
|
|
676
|
+
website: "https://internetcomputer.org",
|
|
677
|
+
nativeCurrency: {
|
|
678
|
+
name: "ICP",
|
|
679
|
+
symbol: "ICP",
|
|
680
|
+
decimals: 8
|
|
681
|
+
},
|
|
682
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
683
|
+
signSupport: { legacy: true, eip1559: true }
|
|
684
|
+
},
|
|
685
|
+
// XRP
|
|
686
|
+
xrpl: {
|
|
687
|
+
chainId: null,
|
|
688
|
+
network: "xrpl",
|
|
689
|
+
name: "XRP",
|
|
690
|
+
type: "XRPL" /* XRPL */,
|
|
691
|
+
isTestnet: false,
|
|
692
|
+
explorer: "https://xrpscan.com",
|
|
693
|
+
website: "https://xrpl.org",
|
|
694
|
+
nativeCurrency: {
|
|
695
|
+
name: "XRP",
|
|
696
|
+
symbol: "XRP",
|
|
697
|
+
decimals: 6
|
|
698
|
+
},
|
|
699
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
700
|
+
signSupport: { legacy: true, eip1559: false }
|
|
701
|
+
},
|
|
702
|
+
// XRP Testnet
|
|
703
|
+
xrpl_testnet: {
|
|
704
|
+
chainId: null,
|
|
705
|
+
network: "xrpl_testnet",
|
|
706
|
+
name: "XRP Testnet",
|
|
707
|
+
type: "XRPL" /* XRPL */,
|
|
708
|
+
isTestnet: true,
|
|
709
|
+
explorer: "https://testnet.xrpscan.com",
|
|
710
|
+
website: "https://xrpl.org",
|
|
711
|
+
nativeCurrency: {
|
|
712
|
+
name: "XRP",
|
|
713
|
+
symbol: "XRP",
|
|
714
|
+
decimals: 6
|
|
715
|
+
},
|
|
716
|
+
apiSupport: { tokens: true, nft: true, transactions: true },
|
|
717
|
+
signSupport: { legacy: true, eip1559: false }
|
|
718
|
+
}
|
|
719
|
+
};
|
|
720
|
+
var NETWORK_BY_PARAM = Object.values(
|
|
721
|
+
NETWORK_CONFIGS
|
|
722
|
+
).reduce(
|
|
723
|
+
(acc, config) => {
|
|
724
|
+
acc[config.network] = config;
|
|
725
|
+
return acc;
|
|
726
|
+
},
|
|
727
|
+
{}
|
|
728
|
+
);
|
|
729
|
+
function getNetworkByChainId(chainId) {
|
|
730
|
+
return NETWORK_CONFIGS[chainId];
|
|
731
|
+
}
|
|
732
|
+
function getNetworkByParam(network) {
|
|
733
|
+
return NETWORK_BY_PARAM[network];
|
|
734
|
+
}
|
|
735
|
+
function getNetworkName(chainId, fallback = "ethereum") {
|
|
736
|
+
return NETWORK_CONFIGS[chainId]?.network ?? fallback;
|
|
737
|
+
}
|
|
738
|
+
var CHAIN_ID_TO_KEY = {
|
|
739
|
+
// Mainnet
|
|
740
|
+
1: "ethereum",
|
|
741
|
+
42161: "arbitrum",
|
|
742
|
+
8217: "kaia",
|
|
743
|
+
56: "bsc",
|
|
744
|
+
8453: "base",
|
|
745
|
+
137: "polygon",
|
|
746
|
+
43114: "avalanche",
|
|
747
|
+
5e3: "mantle",
|
|
748
|
+
51828: "chainbounty",
|
|
749
|
+
// Testnet
|
|
750
|
+
11155111: "sepolia",
|
|
751
|
+
421614: "arbitrumSepolia",
|
|
752
|
+
1001: "kaiaKairos",
|
|
753
|
+
97: "bscTestnet",
|
|
754
|
+
84532: "baseSepolia",
|
|
755
|
+
80002: "polygonAmoy",
|
|
756
|
+
43113: "avalancheFuji",
|
|
757
|
+
5003: "mantleSepolia",
|
|
758
|
+
56580: "chainbountyTestnet",
|
|
759
|
+
998: "hyperevmTestnet"
|
|
760
|
+
};
|
|
761
|
+
var NON_EVM_CHAIN_KEY = {
|
|
762
|
+
solana: "solana",
|
|
763
|
+
solana_devnet: "solanaDevnet",
|
|
764
|
+
bitcoin: "bitcoin",
|
|
765
|
+
bitcoin_testnet: "bitcoinTestnet",
|
|
766
|
+
tron: "tron",
|
|
767
|
+
tron_nile: "tronNile",
|
|
768
|
+
xrpl: "xrpl",
|
|
769
|
+
xrpl_testnet: "xrplTestnet"
|
|
770
|
+
};
|
|
771
|
+
function getChainKey(chainId) {
|
|
772
|
+
const key = CHAIN_ID_TO_KEY[chainId];
|
|
773
|
+
if (!key) {
|
|
774
|
+
throw new Error(`Unsupported chainId for tx endpoint: ${chainId}`);
|
|
775
|
+
}
|
|
776
|
+
return key;
|
|
777
|
+
}
|
|
778
|
+
function networkNameToChainKey(network) {
|
|
779
|
+
if (NON_EVM_CHAIN_KEY[network])
|
|
780
|
+
return NON_EVM_CHAIN_KEY[network];
|
|
781
|
+
const chainId = NETWORK_BY_PARAM[network]?.chainId;
|
|
782
|
+
if (chainId == null)
|
|
783
|
+
return network;
|
|
784
|
+
return CHAIN_ID_TO_KEY[chainId] ?? network;
|
|
785
|
+
}
|
|
786
|
+
function getNetworkType(network) {
|
|
787
|
+
const byParam = NETWORK_BY_PARAM[network];
|
|
788
|
+
if (byParam)
|
|
789
|
+
return byParam.type;
|
|
790
|
+
const nonEvmParam = Object.keys(NON_EVM_CHAIN_KEY).find(
|
|
791
|
+
(param) => NON_EVM_CHAIN_KEY[param] === network
|
|
792
|
+
);
|
|
793
|
+
if (nonEvmParam)
|
|
794
|
+
return NETWORK_BY_PARAM[nonEvmParam]?.type ?? "Non-EVM" /* NON_EVM */;
|
|
795
|
+
if (Object.values(CHAIN_ID_TO_KEY).includes(network))
|
|
796
|
+
return "EVM" /* EVM */;
|
|
797
|
+
return void 0;
|
|
798
|
+
}
|
|
799
|
+
function getEvmChainKey(network) {
|
|
800
|
+
const chainId = NETWORK_BY_PARAM[network]?.chainId;
|
|
801
|
+
if (chainId != null)
|
|
802
|
+
return CHAIN_ID_TO_KEY[chainId];
|
|
803
|
+
return Object.values(CHAIN_ID_TO_KEY).includes(network) ? network : void 0;
|
|
804
|
+
}
|
|
805
|
+
function getExplorerTxUrl(chainIdOrNetwork, txHash) {
|
|
806
|
+
const config = typeof chainIdOrNetwork === "number" ? getNetworkByChainId(chainIdOrNetwork) : getNetworkByParam(chainIdOrNetwork);
|
|
807
|
+
if (!config) {
|
|
808
|
+
throw new Error(`Unknown network: ${chainIdOrNetwork}`);
|
|
809
|
+
}
|
|
810
|
+
return `${config.explorer}/tx/${txHash}`;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
export {
|
|
814
|
+
getNetworkName,
|
|
815
|
+
getChainKey,
|
|
816
|
+
networkNameToChainKey,
|
|
817
|
+
getNetworkType,
|
|
818
|
+
getEvmChainKey,
|
|
819
|
+
getExplorerTxUrl
|
|
820
|
+
};
|