@talken/talkenkit 2.8.3 → 2.8.5

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 (140) hide show
  1. package/dist/{AbcCredentialManager-6FBGTSSM.js → AbcCredentialManager-WZBF3GHF.js} +1 -1
  2. package/dist/{abcWallet-7ZZXHG7O.js → abcWallet-EOHU5AIB.js} +2 -2
  3. package/dist/{chunk-SUYKWM5G.js → chunk-CUPPBGFC.js} +23 -14
  4. package/dist/{chunk-HX6JUKSS.js → chunk-WGSS57V6.js} +985 -212
  5. package/dist/config/networks.d.ts +12 -0
  6. package/dist/gasless/utils/revokeDelegation.d.ts +4 -3
  7. package/dist/index.css +13 -13
  8. package/dist/index.js +26 -20
  9. package/dist/utils/amount.d.ts +17 -0
  10. package/dist/wallets/walletConnectors/abcWallet/AbcCredentialManager.js +3 -3
  11. package/dist/wallets/walletConnectors/abcWallet/AbcEvmAutoConnector.js +5 -5
  12. package/dist/wallets/walletConnectors/abcWallet/ProviderError.d.ts +7 -0
  13. package/dist/wallets/walletConnectors/abcWallet/StorageService.js +2 -2
  14. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinConnector.js +6 -6
  15. package/dist/wallets/walletConnectors/abcWallet/abcBitcoinProvider.js +13 -4
  16. package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +21 -17
  17. package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +3 -4
  18. package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +11 -7
  19. package/dist/wallets/walletConnectors/abcWallet/abcSolanaProvider.js +22 -18
  20. package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +3 -3
  21. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.d.ts +1 -1
  22. package/dist/wallets/walletConnectors/abcWallet/abcTronProvider.js +13 -4
  23. package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +22 -18
  24. package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.d.ts +18 -1
  25. package/dist/wallets/walletConnectors/abcWallet/abcXrplProvider.js +17 -6
  26. package/dist/wallets/walletConnectors/abcWallet/api/ConfigApi.js +2 -2
  27. package/dist/wallets/walletConnectors/abcWallet/api/TalkenApiClient.js +17 -14
  28. package/dist/wallets/walletConnectors/abcWallet/api/TokenApi.js +2 -2
  29. package/dist/wallets/walletConnectors/abcWallet/api/WalletscanApi.js +3 -3
  30. package/dist/wallets/walletConnectors/abcWallet/api/index.js +22 -19
  31. package/dist/wallets/walletConnectors/abcWallet/api/modules/auth.js +4 -4
  32. package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.d.ts +17 -3
  33. package/dist/wallets/walletConnectors/abcWallet/api/modules/bitcoin.js +14 -5
  34. package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.d.ts +27 -8
  35. package/dist/wallets/walletConnectors/abcWallet/api/modules/evm.js +13 -4
  36. package/dist/wallets/walletConnectors/abcWallet/api/modules/executeBodies.d.ts +79 -0
  37. package/dist/wallets/walletConnectors/abcWallet/api/modules/executeBodies.js +32 -0
  38. package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.d.ts +37 -0
  39. package/dist/wallets/walletConnectors/abcWallet/api/modules/signBodies.js +29 -0
  40. package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.d.ts +21 -0
  41. package/dist/wallets/walletConnectors/abcWallet/api/modules/signingRefresh.js +18 -0
  42. package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.d.ts +10 -4
  43. package/dist/wallets/walletConnectors/abcWallet/api/modules/solana.js +10 -2
  44. package/dist/wallets/walletConnectors/abcWallet/api/modules/tron.d.ts +10 -4
  45. package/dist/wallets/walletConnectors/abcWallet/api/modules/tron.js +13 -2
  46. package/dist/wallets/walletConnectors/abcWallet/api/modules/wallet.js +2 -2
  47. package/dist/wallets/walletConnectors/abcWallet/api/modules/walletscan.js +2 -2
  48. package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.d.ts +13 -3
  49. package/dist/wallets/walletConnectors/abcWallet/api/modules/xrp.js +13 -2
  50. package/dist/wallets/walletConnectors/abcWallet/constants.d.ts +23 -11
  51. package/dist/wallets/walletConnectors/abcWallet/constants.js +3 -1
  52. package/dist/wallets/walletConnectors/abcWallet/evmTxType.d.ts +20 -0
  53. package/dist/wallets/walletConnectors/abcWallet/evmTxType.js +8 -0
  54. package/dist/wallets/walletConnectors/abcWallet/index.js +45 -40
  55. package/dist/wallets/walletConnectors/abcWallet/sendFailure.d.ts +10 -0
  56. package/dist/wallets/walletConnectors/abcWallet/sendFailure.js +7 -0
  57. package/dist/wallets/walletConnectors/abcWallet/sessionUtils.js +3 -3
  58. package/dist/wallets/walletConnectors/abcWallet/types/api.types.d.ts +147 -2
  59. package/dist/wallets/walletConnectors/abcWallet/types/config.types.d.ts +4 -0
  60. package/dist/wallets/walletConnectors/abcWallet/types/error.types.d.ts +14 -1
  61. package/dist/wallets/walletConnectors/abcWallet/types/error.types.js +1 -1
  62. package/dist/wallets/walletConnectors/abcWallet/types.js +6 -6
  63. package/dist/wallets/walletConnectors/abcWallet/utils.js +5 -5
  64. package/dist/wallets/walletConnectors/abcWallet/walletGeneration.js +6 -6
  65. package/dist/wallets/walletConnectors/{chunk-CXWASK7L.js → chunk-2M6E3YXU.js} +31 -19
  66. package/dist/wallets/walletConnectors/{chunk-URTS7ZIZ.js → chunk-365TL36N.js} +36 -31
  67. package/dist/wallets/walletConnectors/{chunk-7DLZKN46.js → chunk-4CKIGJZD.js} +8 -8
  68. package/dist/wallets/walletConnectors/{chunk-6FPKKAFI.js → chunk-5SRSGEZR.js} +2 -2
  69. package/dist/wallets/walletConnectors/{chunk-ZOBSRU6L.js → chunk-6MZWQBNQ.js} +28 -7
  70. package/dist/wallets/walletConnectors/chunk-6X2XITQP.js +71 -0
  71. package/dist/wallets/walletConnectors/{chunk-ZXG3X6PV.js → chunk-743DKBGG.js} +2 -2
  72. package/dist/wallets/walletConnectors/chunk-DFG3BSSC.js +341 -0
  73. package/dist/wallets/walletConnectors/chunk-DKMR2ML5.js +163 -0
  74. package/dist/wallets/walletConnectors/{chunk-4BG6V5TZ.js → chunk-DRL2CDHT.js} +24 -22
  75. package/dist/wallets/walletConnectors/{chunk-S6XEM7RM.js → chunk-EGLT3GPM.js} +1 -1
  76. package/dist/wallets/walletConnectors/{chunk-VVXSRRXI.js → chunk-F4JUKZBB.js} +3 -3
  77. package/dist/wallets/walletConnectors/chunk-GAJ4FJTW.js +382 -0
  78. package/dist/wallets/walletConnectors/{chunk-4Y7YP4IR.js → chunk-GO6HUJTP.js} +51 -12
  79. package/dist/wallets/walletConnectors/{chunk-3NWM24MH.js → chunk-HMIFFMGK.js} +22 -8
  80. package/dist/wallets/walletConnectors/chunk-M4SNNQU2.js +56 -0
  81. package/dist/wallets/walletConnectors/{chunk-ANBOP6A6.js → chunk-MNGSJBPX.js} +31 -14
  82. package/dist/wallets/walletConnectors/chunk-OESFVVLA.js +38 -0
  83. package/dist/wallets/walletConnectors/{chunk-2LOET2LX.js → chunk-OMZSFUVN.js} +1 -1
  84. package/dist/wallets/walletConnectors/{chunk-L3EPZ4NZ.js → chunk-OTLPTGHO.js} +1 -1
  85. package/dist/wallets/walletConnectors/{chunk-XDNFWX2X.js → chunk-P64PMEPU.js} +2 -2
  86. package/dist/wallets/walletConnectors/{chunk-2LH53QET.js → chunk-PL56SINL.js} +1 -1
  87. package/dist/wallets/walletConnectors/chunk-RSR35XOZ.js +206 -0
  88. package/dist/wallets/walletConnectors/{chunk-YNE2UX2Z.js → chunk-SORKIBWX.js} +1 -1
  89. package/dist/wallets/walletConnectors/{chunk-HM73RD2O.js → chunk-SUPFF4EQ.js} +44 -812
  90. package/dist/wallets/walletConnectors/{chunk-BUAWEYGV.js → chunk-TP4BDK7W.js} +5 -1
  91. package/dist/wallets/walletConnectors/{chunk-4DGLNUHL.js → chunk-TRFREYPH.js} +1 -1
  92. package/dist/wallets/walletConnectors/{chunk-FWX2HD26.js → chunk-UHVJ6AF6.js} +1 -1
  93. package/dist/wallets/walletConnectors/{chunk-NEMEHJ72.js → chunk-V6R6WDOQ.js} +1 -1
  94. package/dist/wallets/walletConnectors/chunk-XGQUYXTL.js +1215 -0
  95. package/dist/wallets/walletConnectors/{chunk-3Z5DO42M.js → chunk-XPZCOEQL.js} +23 -14
  96. package/dist/wallets/walletConnectors/{chunk-YFNVHCMA.js → chunk-YPMD3ZHF.js} +33 -18
  97. package/dist/wallets/walletConnectors/chunk-Z66ETAKN.js +20 -0
  98. package/dist/wallets/walletConnectors/{chunk-M4YGDOD5.js → chunk-ZBI7MSWF.js} +5 -5
  99. package/dist/wallets/walletConnectors/chunk-ZWIAZOVB.js +58 -0
  100. package/dist/wallets/walletConnectors/index.js +73 -69
  101. package/package.json +1 -1
  102. package/dist/wallets/walletConnectors/chunk-2KHTFKPP.js +0 -186
  103. package/dist/wallets/walletConnectors/chunk-3QC567QK.js +0 -94
  104. package/dist/wallets/walletConnectors/chunk-4K2V7RCL.js +0 -96
  105. package/dist/wallets/walletConnectors/chunk-4V3HRM2R.js +0 -95
  106. package/dist/wallets/walletConnectors/chunk-5QYCHHVB.js +0 -98
  107. package/dist/wallets/walletConnectors/chunk-76M232IF.js +0 -101
  108. package/dist/wallets/walletConnectors/chunk-7IBMHOYD.js +0 -102
  109. package/dist/wallets/walletConnectors/chunk-A2DZALFI.js +0 -108
  110. package/dist/wallets/walletConnectors/chunk-BZPKBSWY.js +0 -66
  111. package/dist/wallets/walletConnectors/chunk-CEOJSQAI.js +0 -66
  112. package/dist/wallets/walletConnectors/chunk-CTAFZ5RQ.js +0 -71
  113. package/dist/wallets/walletConnectors/chunk-DHWJ3552.js +0 -93
  114. package/dist/wallets/walletConnectors/chunk-EJALZNAR.js +0 -101
  115. package/dist/wallets/walletConnectors/chunk-FE2BFYJB.js +0 -73
  116. package/dist/wallets/walletConnectors/chunk-FGYJTUYV.js +0 -94
  117. package/dist/wallets/walletConnectors/chunk-FVA6H2VF.js +0 -95
  118. package/dist/wallets/walletConnectors/chunk-GNF5CHDQ.js +0 -102
  119. package/dist/wallets/walletConnectors/chunk-GZPGNUNF.js +0 -94
  120. package/dist/wallets/walletConnectors/chunk-HALTGRQW.js +0 -87
  121. package/dist/wallets/walletConnectors/chunk-ICGK5DGY.js +0 -146
  122. package/dist/wallets/walletConnectors/chunk-IONL6LMJ.js +0 -71
  123. package/dist/wallets/walletConnectors/chunk-KNNHGFKJ.js +0 -98
  124. package/dist/wallets/walletConnectors/chunk-KQDFRZT4.js +0 -65
  125. package/dist/wallets/walletConnectors/chunk-KQROIRBW.js +0 -27
  126. package/dist/wallets/walletConnectors/chunk-LKNK2KKU.js +0 -76
  127. package/dist/wallets/walletConnectors/chunk-NM7YUGLV.js +0 -186
  128. package/dist/wallets/walletConnectors/chunk-PXL5G2PM.js +0 -96
  129. package/dist/wallets/walletConnectors/chunk-QB3QLNSL.js +0 -76
  130. package/dist/wallets/walletConnectors/chunk-QRU6XFHH.js +0 -110
  131. package/dist/wallets/walletConnectors/chunk-T6RB3SM7.js +0 -73
  132. package/dist/wallets/walletConnectors/chunk-TA4DDCKN.js +0 -96
  133. package/dist/wallets/walletConnectors/chunk-TWVKSPTP.js +0 -91
  134. package/dist/wallets/walletConnectors/chunk-TYJR3KGY.js +0 -46
  135. package/dist/wallets/walletConnectors/chunk-U5UPCM5V.js +0 -66
  136. package/dist/wallets/walletConnectors/chunk-V5LGED4F.js +0 -103
  137. package/dist/wallets/walletConnectors/chunk-WZMFQQ6R.js +0 -108
  138. package/dist/wallets/walletConnectors/chunk-XS6GJRRA.js +0 -98
  139. package/dist/wallets/walletConnectors/chunk-XSJUQHR7.js +0 -95
  140. package/dist/wallets/walletConnectors/chunk-XSX5EECZ.js +0 -96
@@ -1,7 +1,19 @@
1
1
  "use client";
2
+ import {
3
+ resolveEvmSignType
4
+ } from "./chunk-OESFVVLA.js";
5
+ import {
6
+ isSigningCredentialError
7
+ } from "./chunk-M4SNNQU2.js";
8
+ import {
9
+ getChainKey,
10
+ getExplorerTxUrl,
11
+ getNetworkName,
12
+ toBroadcastBody
13
+ } from "./chunk-XGQUYXTL.js";
2
14
  import {
3
15
  getCredentialManager
4
- } from "./chunk-YNE2UX2Z.js";
16
+ } from "./chunk-SORKIBWX.js";
5
17
  import {
6
18
  AbstractChainProvider
7
19
  } from "./chunk-3DHUDD4U.js";
@@ -18,790 +30,15 @@ import {
18
30
  import {
19
31
  hexToNumber,
20
32
  numberToHex
21
- } from "./chunk-VVXSRRXI.js";
22
- import {
23
- TalkenApiError
24
- } from "./chunk-BUAWEYGV.js";
33
+ } from "./chunk-F4JUKZBB.js";
25
34
  import {
35
+ SEND_REQUEST_TIMEOUT,
26
36
  TALKEN_API_ENDPOINTS
27
- } from "./chunk-3Z5DO42M.js";
37
+ } from "./chunk-XPZCOEQL.js";
28
38
 
29
39
  // src/wallets/walletConnectors/abcWallet/abcProvider.ts
30
40
  import { parseGwei } from "viem";
31
41
 
32
- // src/config/networks.ts
33
- var NETWORK_CONFIGS = {
34
- // Ethereum Mainnet
35
- 1: {
36
- chainId: 1,
37
- network: "ethereum",
38
- name: "Ethereum",
39
- type: "EVM" /* EVM */,
40
- isTestnet: false,
41
- explorer: "https://etherscan.io",
42
- website: "https://ethereum.org",
43
- nativeCurrency: {
44
- name: "Ether",
45
- symbol: "ETH",
46
- decimals: 18
47
- },
48
- apiSupport: { tokens: true, nft: true, transactions: true },
49
- signSupport: { legacy: true, eip1559: true }
50
- },
51
- // Ethereum Sepolia Testnet
52
- 11155111: {
53
- chainId: 11155111,
54
- network: "ethereum_sepolia",
55
- name: "Ethereum Sepolia",
56
- type: "EVM" /* EVM */,
57
- isTestnet: true,
58
- explorer: "https://sepolia.etherscan.io",
59
- website: "https://ethereum.org",
60
- nativeCurrency: {
61
- name: "Sepolia Ether",
62
- symbol: "ETH",
63
- decimals: 18
64
- },
65
- apiSupport: { tokens: true, nft: true, transactions: true },
66
- signSupport: { legacy: true, eip1559: true }
67
- },
68
- // Ethereum Holesky Testnet
69
- 17e3: {
70
- chainId: 17e3,
71
- network: "ethereum_holesky",
72
- name: "Ethereum Holesky",
73
- type: "EVM" /* EVM */,
74
- isTestnet: true,
75
- explorer: "https://holesky.etherscan.io",
76
- website: "https://ethereum.org",
77
- nativeCurrency: {
78
- name: "Holesky Ether",
79
- symbol: "ETH",
80
- decimals: 18
81
- },
82
- apiSupport: { tokens: true, nft: true, transactions: true },
83
- signSupport: { legacy: true, eip1559: true }
84
- },
85
- // Kaia Mainnet (formerly Klaytn)
86
- 8217: {
87
- chainId: 8217,
88
- network: "kaia",
89
- name: "Kaia Mainnet",
90
- type: "EVM" /* EVM */,
91
- isTestnet: false,
92
- explorer: "https://kaiascan.io",
93
- website: "https://kaia.io",
94
- nativeCurrency: {
95
- name: "Kaia",
96
- symbol: "KAIA",
97
- decimals: 18
98
- },
99
- apiSupport: { tokens: true, nft: true, transactions: true },
100
- signSupport: { legacy: true, eip1559: true }
101
- },
102
- // Kaia Kairos Testnet
103
- 1001: {
104
- chainId: 1001,
105
- network: "kaia_kairos",
106
- name: "Kaia Kairos Testnet",
107
- type: "EVM" /* EVM */,
108
- isTestnet: true,
109
- explorer: "https://kairos.kaiascan.io",
110
- website: "https://kaia.io",
111
- nativeCurrency: {
112
- name: "Kaia",
113
- symbol: "KAIA",
114
- decimals: 18
115
- },
116
- apiSupport: { tokens: true, nft: true, transactions: true },
117
- signSupport: { legacy: true, eip1559: true }
118
- },
119
- // Polygon Mainnet
120
- 137: {
121
- chainId: 137,
122
- network: "polygon",
123
- name: "Polygon",
124
- type: "EVM" /* EVM */,
125
- isTestnet: false,
126
- explorer: "https://polygonscan.com",
127
- website: "https://polygon.technology",
128
- nativeCurrency: {
129
- name: "MATIC",
130
- symbol: "MATIC",
131
- decimals: 18
132
- },
133
- apiSupport: { tokens: true, nft: true, transactions: true },
134
- signSupport: { legacy: true, eip1559: true }
135
- },
136
- // Polygon Amoy Testnet
137
- 80002: {
138
- chainId: 80002,
139
- network: "polygon_amoy",
140
- name: "Polygon Amoy Testnet",
141
- type: "EVM" /* EVM */,
142
- isTestnet: true,
143
- explorer: "https://amoy.polygonscan.com",
144
- website: "https://polygon.technology",
145
- nativeCurrency: {
146
- name: "MATIC",
147
- symbol: "MATIC",
148
- decimals: 18
149
- },
150
- apiSupport: { tokens: true, nft: true, transactions: true },
151
- signSupport: { legacy: true, eip1559: true }
152
- },
153
- // Binance Smart Chain Mainnet
154
- 56: {
155
- chainId: 56,
156
- network: "binance",
157
- name: "Binance Smart Chain Mainnet",
158
- type: "EVM" /* EVM */,
159
- isTestnet: false,
160
- explorer: "https://bscscan.com",
161
- website: "https://www.bnbchain.org/en/bnb-smart-chain",
162
- nativeCurrency: {
163
- name: "BNB",
164
- symbol: "BNB",
165
- decimals: 18
166
- },
167
- apiSupport: { tokens: true, nft: true, transactions: true },
168
- signSupport: { legacy: true, eip1559: true }
169
- },
170
- // Binance Smart Chain Testnet
171
- 97: {
172
- chainId: 97,
173
- network: "binance_testnet",
174
- name: "Binance Smart Chain Testnet",
175
- type: "EVM" /* EVM */,
176
- isTestnet: true,
177
- explorer: "https://testnet.bscscan.com",
178
- website: "https://www.bnbchain.org/en/bnb-smart-chain",
179
- nativeCurrency: {
180
- name: "BNB",
181
- symbol: "BNB",
182
- decimals: 18
183
- },
184
- apiSupport: { tokens: true, nft: true, transactions: true },
185
- signSupport: { legacy: true, eip1559: true }
186
- },
187
- // Arbitrum One
188
- 42161: {
189
- chainId: 42161,
190
- network: "arbitrum",
191
- name: "Arbitrum One",
192
- type: "EVM" /* EVM */,
193
- isTestnet: false,
194
- explorer: "https://arbiscan.io",
195
- website: "https://arbitrum.io",
196
- nativeCurrency: {
197
- name: "Ether",
198
- symbol: "ETH",
199
- decimals: 18
200
- },
201
- apiSupport: { tokens: true, nft: true, transactions: true },
202
- signSupport: { legacy: true, eip1559: true }
203
- },
204
- // Arbitrum Sepolia
205
- 421614: {
206
- chainId: 421614,
207
- network: "arbitrum_sepolia",
208
- name: "Arbitrum Sepolia",
209
- type: "EVM" /* EVM */,
210
- isTestnet: true,
211
- explorer: "https://sepolia.arbiscan.io",
212
- website: "https://arbitrum.io",
213
- nativeCurrency: {
214
- name: "Ether",
215
- symbol: "ETH",
216
- decimals: 18
217
- },
218
- apiSupport: { tokens: true, nft: true, transactions: true },
219
- signSupport: { legacy: true, eip1559: true }
220
- },
221
- // Optimism Mainnet
222
- 10: {
223
- chainId: 10,
224
- network: "optimism",
225
- name: "Optimism",
226
- type: "EVM" /* EVM */,
227
- isTestnet: false,
228
- explorer: "https://optimistic.etherscan.io",
229
- website: "https://optimism.io",
230
- nativeCurrency: {
231
- name: "Ether",
232
- symbol: "ETH",
233
- decimals: 18
234
- },
235
- apiSupport: { tokens: true, nft: true, transactions: true },
236
- signSupport: { legacy: true, eip1559: true }
237
- },
238
- // Optimism Sepolia
239
- 420: {
240
- chainId: 420,
241
- network: "optimism_sepolia",
242
- name: "Optimism Sepolia",
243
- type: "EVM" /* EVM */,
244
- isTestnet: true,
245
- explorer: "https://sepolia-optimism.etherscan.io",
246
- website: "https://optimism.io",
247
- nativeCurrency: {
248
- name: "Ether",
249
- symbol: "ETH",
250
- decimals: 18
251
- },
252
- apiSupport: { tokens: true, nft: true, transactions: true },
253
- signSupport: { legacy: true, eip1559: true }
254
- },
255
- // Avalanche C-Chain
256
- 43114: {
257
- chainId: 43114,
258
- network: "avalanche",
259
- name: "Avalanche C-Chain",
260
- type: "EVM" /* EVM */,
261
- isTestnet: false,
262
- explorer: "https://avascan.info/blockchain/c/home",
263
- website: "https://avax.network",
264
- nativeCurrency: {
265
- name: "Avalanche",
266
- symbol: "AVAX",
267
- decimals: 18
268
- },
269
- apiSupport: { tokens: true, nft: true, transactions: true },
270
- signSupport: { legacy: true, eip1559: true }
271
- },
272
- // Avalanche Fuji Testnet
273
- 43113: {
274
- chainId: 43113,
275
- network: "avalanche_fuji",
276
- name: "Avalanche Fuji Testnet",
277
- type: "EVM" /* EVM */,
278
- isTestnet: true,
279
- explorer: "https://testnet.avascan.info",
280
- website: "https://avax.network",
281
- nativeCurrency: {
282
- name: "Avalanche",
283
- symbol: "AVAX",
284
- decimals: 18
285
- },
286
- apiSupport: { tokens: false, nft: false, transactions: false },
287
- signSupport: { legacy: true, eip1559: true }
288
- },
289
- // Mantle Mainnet
290
- 5e3: {
291
- chainId: 5e3,
292
- network: "mantle",
293
- name: "Mantle Mainnet",
294
- type: "EVM" /* EVM */,
295
- isTestnet: false,
296
- explorer: "https://explorer.mantle.xyz",
297
- website: "https://www.mantle.xyz",
298
- nativeCurrency: {
299
- name: "Mantle",
300
- symbol: "MNT",
301
- decimals: 18
302
- },
303
- apiSupport: { tokens: true, nft: true, transactions: true },
304
- signSupport: { legacy: true, eip1559: true }
305
- },
306
- // Mantle Testnet
307
- 5001: {
308
- chainId: 5001,
309
- network: "mantle_testnet",
310
- name: "Mantle Testnet",
311
- type: "EVM" /* EVM */,
312
- isTestnet: true,
313
- explorer: "https://sepolia.mantlescan.xyz",
314
- website: "https://www.mantle.xyz",
315
- nativeCurrency: {
316
- name: "Mantle",
317
- symbol: "MNT",
318
- decimals: 18
319
- },
320
- apiSupport: { tokens: true, nft: true, transactions: true },
321
- signSupport: { legacy: true, eip1559: true }
322
- },
323
- // Moonbeam
324
- 1284: {
325
- chainId: 1284,
326
- network: "moonbeam",
327
- name: "Moonbeam",
328
- type: "EVM" /* EVM */,
329
- isTestnet: false,
330
- explorer: "https://moonbeam.moonscan.io",
331
- website: "https://moonbeam.network",
332
- nativeCurrency: {
333
- name: "Glimmer",
334
- symbol: "GLMR",
335
- decimals: 18
336
- },
337
- apiSupport: { tokens: true, nft: true, transactions: true },
338
- signSupport: { legacy: true, eip1559: true }
339
- },
340
- // Moonriver
341
- 1285: {
342
- chainId: 1285,
343
- network: "moonriver",
344
- name: "Moonriver",
345
- type: "EVM" /* EVM */,
346
- isTestnet: false,
347
- explorer: "https://moonriver.moonscan.io",
348
- website: "https://moonbeam.network/networks/moonriver",
349
- nativeCurrency: {
350
- name: "Moonriver",
351
- symbol: "MOVR",
352
- decimals: 18
353
- },
354
- apiSupport: { tokens: true, nft: true, transactions: true },
355
- signSupport: { legacy: true, eip1559: true }
356
- },
357
- // Scroll Mainnet
358
- 534352: {
359
- chainId: 534352,
360
- network: "scroll",
361
- name: "Scroll",
362
- type: "EVM" /* EVM */,
363
- isTestnet: false,
364
- explorer: "https://scrollscan.co",
365
- website: "https://scroll.io",
366
- nativeCurrency: {
367
- name: "Ether",
368
- symbol: "ETH",
369
- decimals: 18
370
- },
371
- apiSupport: { tokens: true, nft: true, transactions: true },
372
- signSupport: { legacy: true, eip1559: true }
373
- },
374
- // Scroll Testnet
375
- 534351: {
376
- chainId: 534351,
377
- network: "scroll_testnet",
378
- name: "Scroll Testnet",
379
- type: "EVM" /* EVM */,
380
- isTestnet: true,
381
- explorer: "https://sepolia.scrollscan.com",
382
- website: "https://scroll.io",
383
- nativeCurrency: {
384
- name: "Ether",
385
- symbol: "ETH",
386
- decimals: 18
387
- },
388
- apiSupport: { tokens: true, nft: true, transactions: true },
389
- signSupport: { legacy: true, eip1559: true }
390
- },
391
- // Silicon Mainnet
392
- 2355: {
393
- chainId: 2355,
394
- network: "silicon",
395
- name: "Silicon",
396
- type: "EVM" /* EVM */,
397
- isTestnet: false,
398
- explorer: "https://scope.silicon.network",
399
- website: "https://silicon.network",
400
- nativeCurrency: {
401
- name: "Ether",
402
- symbol: "ETH",
403
- decimals: 18
404
- },
405
- apiSupport: { tokens: true, nft: true, transactions: true },
406
- signSupport: { legacy: true, eip1559: true }
407
- },
408
- // Silicon Sepolia
409
- 1722641160: {
410
- chainId: 1722641160,
411
- network: "silicon_sepolia",
412
- name: "Silicon Sepolia",
413
- type: "EVM" /* EVM */,
414
- isTestnet: true,
415
- explorer: "https://scope-sepolia.silicon.network",
416
- website: "https://silicon.network",
417
- nativeCurrency: {
418
- name: "Ether",
419
- symbol: "ETH",
420
- decimals: 18
421
- },
422
- apiSupport: { tokens: true, nft: true, transactions: true },
423
- signSupport: { legacy: true, eip1559: true }
424
- },
425
- // Six Protocol
426
- 98: {
427
- chainId: 98,
428
- network: "six_evm",
429
- name: "Six Protocol",
430
- type: "EVM" /* EVM */,
431
- isTestnet: false,
432
- explorer: "https://v2.sixscan.io",
433
- website: "https://www.six.network",
434
- nativeCurrency: {
435
- name: "SIX",
436
- symbol: "SIX",
437
- decimals: 18
438
- },
439
- apiSupport: { tokens: true, nft: false, transactions: true },
440
- signSupport: { legacy: true, eip1559: false }
441
- },
442
- // Six Protocol Testnet
443
- 150: {
444
- chainId: 150,
445
- network: "six_evm_testnet",
446
- name: "Six Protocol Testnet",
447
- type: "EVM" /* EVM */,
448
- isTestnet: true,
449
- explorer: "https://v2.fivenet.sixscan.io",
450
- website: "https://www.six.network",
451
- nativeCurrency: {
452
- name: "SIX",
453
- symbol: "SIX",
454
- decimals: 18
455
- },
456
- apiSupport: { tokens: true, nft: false, transactions: true },
457
- signSupport: { legacy: true, eip1559: false }
458
- },
459
- // Wemix Mainnet
460
- 1111: {
461
- chainId: 1111,
462
- network: "wemix",
463
- name: "Wemix3.0 Mainnet",
464
- type: "EVM" /* EVM */,
465
- isTestnet: false,
466
- explorer: "https://explorer.wemix.com",
467
- website: "https://wemix.com",
468
- nativeCurrency: {
469
- name: "WEMIX",
470
- symbol: "WEMIX",
471
- decimals: 18
472
- },
473
- apiSupport: { tokens: true, nft: true, transactions: true },
474
- signSupport: { legacy: true, eip1559: true }
475
- },
476
- // Wemix Testnet
477
- 1112: {
478
- chainId: 1112,
479
- network: "wemix_testnet",
480
- name: "Wemix3.0 Testnet",
481
- type: "EVM" /* EVM */,
482
- isTestnet: true,
483
- explorer: "https://explorer.test.wemix.com",
484
- website: "https://wemix.com",
485
- nativeCurrency: {
486
- name: "WEMIX",
487
- symbol: "WEMIX",
488
- decimals: 18
489
- },
490
- apiSupport: { tokens: true, nft: true, transactions: true },
491
- signSupport: { legacy: true, eip1559: true }
492
- },
493
- // Taiko Mainnet
494
- 167e3: {
495
- chainId: 167e3,
496
- network: "taiko",
497
- name: "Taiko Mainnet",
498
- type: "EVM" /* EVM */,
499
- isTestnet: false,
500
- explorer: "https://taikoscan.io",
501
- website: "https://taiko.xyz",
502
- nativeCurrency: {
503
- name: "Ether",
504
- symbol: "ETH",
505
- decimals: 18
506
- },
507
- apiSupport: { tokens: true, nft: true, transactions: true },
508
- signSupport: { legacy: true, eip1559: true }
509
- },
510
- // Taiko Hekla Testnet
511
- 167009: {
512
- chainId: 167009,
513
- network: "taiko_hekla",
514
- name: "Taiko Hekla Testnet",
515
- type: "EVM" /* EVM */,
516
- isTestnet: true,
517
- explorer: "https://hekla.taikoscan.io",
518
- website: "https://taiko.xyz",
519
- nativeCurrency: {
520
- name: "Ether",
521
- symbol: "ETH",
522
- decimals: 18
523
- },
524
- apiSupport: { tokens: true, nft: true, transactions: true },
525
- signSupport: { legacy: true, eip1559: true }
526
- },
527
- // Base Mainnet
528
- 8453: {
529
- chainId: 8453,
530
- network: "base",
531
- name: "Base",
532
- type: "EVM" /* EVM */,
533
- isTestnet: false,
534
- explorer: "https://basescan.org",
535
- website: "https://base.org",
536
- nativeCurrency: {
537
- name: "Ether",
538
- symbol: "ETH",
539
- decimals: 18
540
- },
541
- apiSupport: { tokens: true, nft: true, transactions: true },
542
- signSupport: { legacy: true, eip1559: true }
543
- },
544
- // Base Sepolia Testnet
545
- 84532: {
546
- chainId: 84532,
547
- network: "base_sepolia",
548
- name: "Base Sepolia",
549
- type: "EVM" /* EVM */,
550
- isTestnet: true,
551
- explorer: "https://sepolia.basescan.org",
552
- website: "https://base.org",
553
- nativeCurrency: {
554
- name: "Ether",
555
- symbol: "ETH",
556
- decimals: 18
557
- },
558
- apiSupport: { tokens: true, nft: true, transactions: true },
559
- signSupport: { legacy: true, eip1559: true }
560
- },
561
- // ChainBounty Mainnet
562
- 51828: {
563
- chainId: 51828,
564
- network: "chainbounty",
565
- name: "ChainBounty Mainnet",
566
- type: "EVM" /* EVM */,
567
- isTestnet: false,
568
- explorer: "https://scan.chainbounty.io",
569
- website: "https://chainbounty.io",
570
- nativeCurrency: {
571
- name: "ChainBounty",
572
- symbol: "CBY",
573
- decimals: 18
574
- },
575
- apiSupport: { tokens: true, nft: true, transactions: true },
576
- signSupport: { legacy: true, eip1559: true }
577
- },
578
- // ChainBounty Testnet
579
- 56580: {
580
- chainId: 56580,
581
- network: "chainbounty_testnet",
582
- name: "ChainBounty Testnet",
583
- type: "EVM" /* EVM */,
584
- isTestnet: true,
585
- explorer: "https://test.scan.chainbounty.io",
586
- website: "https://chainbounty.io",
587
- nativeCurrency: {
588
- name: "ChainBounty",
589
- symbol: "CBY",
590
- decimals: 18
591
- },
592
- apiSupport: { tokens: true, nft: true, transactions: true },
593
- signSupport: { legacy: true, eip1559: true }
594
- },
595
- // Aptos Mainnet (Non-EVM)
596
- aptos: {
597
- chainId: null,
598
- network: "aptos",
599
- name: "Aptos",
600
- type: "Non-EVM" /* NON_EVM */,
601
- isTestnet: false,
602
- explorer: "https://explorer.aptoslabs.com/?network=mainnet",
603
- website: "https://aptos.dev",
604
- nativeCurrency: {
605
- name: "Aptos",
606
- symbol: "APT",
607
- decimals: 8
608
- },
609
- apiSupport: { tokens: true, nft: true, transactions: true },
610
- signSupport: { legacy: true, eip1559: false }
611
- },
612
- // Aptos Testnet (Non-EVM)
613
- aptos_testnet: {
614
- chainId: null,
615
- network: "aptos_testnet",
616
- name: "Aptos Testnet",
617
- type: "Non-EVM" /* NON_EVM */,
618
- isTestnet: true,
619
- explorer: "https://explorer.aptoslabs.com/?network=testnet",
620
- website: "https://aptos.dev",
621
- nativeCurrency: {
622
- name: "Aptos",
623
- symbol: "APT",
624
- decimals: 8
625
- },
626
- apiSupport: { tokens: true, nft: true, transactions: true },
627
- signSupport: { legacy: true, eip1559: false }
628
- },
629
- // Bitcoin Mainnet
630
- bitcoin: {
631
- chainId: null,
632
- network: "bitcoin",
633
- name: "Bitcoin Mainnet",
634
- type: "Bitcoin" /* BITCOIN */,
635
- isTestnet: false,
636
- explorer: "https://blockstream.info",
637
- website: "https://bitcoin.org",
638
- nativeCurrency: {
639
- name: "Bitcoin",
640
- symbol: "BTC",
641
- decimals: 8
642
- },
643
- apiSupport: { tokens: true, nft: false, transactions: true },
644
- signSupport: { legacy: true, eip1559: false }
645
- },
646
- // Bitcoin Testnet
647
- bitcoin_testnet: {
648
- chainId: null,
649
- network: "bitcoin_testnet",
650
- name: "Bitcoin Testnet",
651
- type: "Bitcoin" /* BITCOIN */,
652
- isTestnet: true,
653
- explorer: "https://blockstream.info/testnet",
654
- website: "https://bitcoin.org",
655
- nativeCurrency: {
656
- name: "Bitcoin",
657
- symbol: "BTC",
658
- decimals: 8
659
- },
660
- apiSupport: { tokens: true, nft: false, transactions: true },
661
- signSupport: { legacy: true, eip1559: false }
662
- },
663
- // Tron Mainnet
664
- tron: {
665
- chainId: null,
666
- network: "tron",
667
- name: "Tron Mainnet",
668
- type: "TRX" /* TRON */,
669
- isTestnet: false,
670
- explorer: "https://tronscan.org",
671
- website: "https://tron.network",
672
- nativeCurrency: {
673
- name: "Tronix",
674
- symbol: "TRX",
675
- decimals: 6
676
- },
677
- apiSupport: { tokens: true, nft: true, transactions: true },
678
- signSupport: { legacy: true, eip1559: true }
679
- },
680
- // Tron Nile Testnet
681
- tron_nile: {
682
- chainId: null,
683
- network: "tron_nile",
684
- name: "Tron Nile Testnet",
685
- type: "TRX" /* TRON */,
686
- isTestnet: true,
687
- explorer: "https://nile.tronscan.org",
688
- website: "https://tron.network",
689
- nativeCurrency: {
690
- name: "Tronix",
691
- symbol: "TRX",
692
- decimals: 6
693
- },
694
- apiSupport: { tokens: true, nft: true, transactions: true },
695
- signSupport: { legacy: true, eip1559: true }
696
- },
697
- // ICP Mainnet
698
- icp: {
699
- chainId: null,
700
- network: "icp",
701
- name: "Internet Computer",
702
- type: "ICP" /* ICP */,
703
- isTestnet: false,
704
- explorer: "https://dashboard.internetcomputer.org",
705
- website: "https://internetcomputer.org",
706
- nativeCurrency: {
707
- name: "ICP",
708
- symbol: "ICP",
709
- decimals: 8
710
- },
711
- apiSupport: { tokens: true, nft: true, transactions: true },
712
- signSupport: { legacy: true, eip1559: true }
713
- },
714
- // XRP
715
- xrpl: {
716
- chainId: null,
717
- network: "xrpl",
718
- name: "XRP",
719
- type: "XRPL" /* XRPL */,
720
- isTestnet: false,
721
- explorer: "https://xrpscan.com",
722
- website: "https://xrpl.org",
723
- nativeCurrency: {
724
- name: "XRP",
725
- symbol: "XRP",
726
- decimals: 6
727
- },
728
- apiSupport: { tokens: true, nft: true, transactions: true },
729
- signSupport: { legacy: true, eip1559: false }
730
- },
731
- // XRP Testnet
732
- xrpl_testnet: {
733
- chainId: null,
734
- network: "xrpl_testnet",
735
- name: "XRP Testnet",
736
- type: "XRPL" /* XRPL */,
737
- isTestnet: true,
738
- explorer: "https://testnet.xrpscan.com",
739
- website: "https://xrpl.org",
740
- nativeCurrency: {
741
- name: "XRP",
742
- symbol: "XRP",
743
- decimals: 6
744
- },
745
- apiSupport: { tokens: true, nft: true, transactions: true },
746
- signSupport: { legacy: true, eip1559: false }
747
- }
748
- };
749
- var NETWORK_BY_PARAM = Object.values(
750
- NETWORK_CONFIGS
751
- ).reduce(
752
- (acc, config) => {
753
- acc[config.network] = config;
754
- return acc;
755
- },
756
- {}
757
- );
758
- function getNetworkByChainId(chainId) {
759
- return NETWORK_CONFIGS[chainId];
760
- }
761
- function getNetworkByParam(network) {
762
- return NETWORK_BY_PARAM[network];
763
- }
764
- function getNetworkName(chainId, fallback = "ethereum") {
765
- return NETWORK_CONFIGS[chainId]?.network ?? fallback;
766
- }
767
- var CHAIN_ID_TO_KEY = {
768
- // Mainnet
769
- 1: "ethereum",
770
- 42161: "arbitrum",
771
- 8217: "kaia",
772
- 56: "bsc",
773
- 8453: "base",
774
- 137: "polygon",
775
- 43114: "avalanche",
776
- 5e3: "mantle",
777
- 51828: "chainbounty",
778
- // Testnet
779
- 11155111: "sepolia",
780
- 421614: "arbitrumSepolia",
781
- 1001: "kaiaKairos",
782
- 97: "bscTestnet",
783
- 84532: "baseSepolia",
784
- 80002: "polygonAmoy",
785
- 43113: "avalancheFuji",
786
- 5003: "mantleSepolia",
787
- 56580: "chainbountyTestnet",
788
- 998: "hyperevmTestnet"
789
- };
790
- function getChainKey(chainId) {
791
- const key = CHAIN_ID_TO_KEY[chainId];
792
- if (!key) {
793
- throw new Error(`Unsupported chainId for tx endpoint: ${chainId}`);
794
- }
795
- return key;
796
- }
797
- function getExplorerTxUrl(chainIdOrNetwork, txHash) {
798
- const config = typeof chainIdOrNetwork === "number" ? getNetworkByChainId(chainIdOrNetwork) : getNetworkByParam(chainIdOrNetwork);
799
- if (!config) {
800
- throw new Error(`Unknown network: ${chainIdOrNetwork}`);
801
- }
802
- return `${config.explorer}/tx/${txHash}`;
803
- }
804
-
805
42
  // src/gasless/GaslessConfigSingleton.ts
806
43
  var _gaslessConfig = null;
807
44
  function getGaslessConfig() {
@@ -1353,7 +590,7 @@ async function recoverYParity(hash, r, s, expectedAddress) {
1353
590
  }
1354
591
  throw new Error("Failed to recover yParity from tx signature");
1355
592
  }
1356
- async function sendRevokeTx(userAddress, _chainKey, chainId) {
593
+ async function sendRevokeTx(userAddress, chainKey, chainId) {
1357
594
  const api = getTalkenApiClient();
1358
595
  if (!api)
1359
596
  throw new Error("TalkenApiClient not initialized");
@@ -1426,7 +663,7 @@ async function sendRevokeTx(userAddress, _chainKey, chainId) {
1426
663
  ];
1427
664
  const signingPayload = `0x04${toRlp(unsignedFields).slice(2)}`;
1428
665
  const signingHash = keccak256(signingPayload);
1429
- const signResult = await api.post("/wallet/sign/hash", {
666
+ const signResult = await api.bitcoin.signHash({
1430
667
  hash: signingHash,
1431
668
  pin: pinHash,
1432
669
  ...network && { network },
@@ -1461,17 +698,12 @@ async function sendRevokeTx(userAddress, _chainKey, chainId) {
1461
698
  );
1462
699
  const signedFields = [...unsignedFields, txYParity ? "0x01" : "0x", txR, txS];
1463
700
  const signedTx = `0x04${toRlp(signedFields).slice(2)}`;
1464
- const result = await api.post(
1465
- "/wallet/tx/raw",
1466
- {
1467
- chain: "evm",
1468
- network,
1469
- signedSerializeTx: signedTx,
1470
- waitForConfirmation: true
1471
- }
701
+ const { txHash } = await api.post(
702
+ TALKEN_API_ENDPOINTS.EXECUTE_BROADCAST,
703
+ toBroadcastBody(chainKey, signedTx),
704
+ { timeout: SEND_REQUEST_TIMEOUT }
1472
705
  );
1473
- const txHash = result?.txHash ?? result?.hash ?? keccak256(signedTx);
1474
- console.log(`[RevokeDelegation] Revoke tx confirmed: ${txHash}`);
706
+ console.log(`[RevokeDelegation] Revoke tx broadcast: ${txHash}`);
1475
707
  return { txHash };
1476
708
  }
1477
709
  async function sendRevokeViaWalletClient(walletClient, chainId, userAddress) {
@@ -2273,7 +1505,7 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2273
1505
  * a wallet.generate() call (idempotent create/recover) to repopulate.
2274
1506
  */
2275
1507
  isSigningCredentialError(error) {
2276
- return error instanceof TalkenApiError && error.statusCode === 502 && error.message.includes("Missing required wallet fields");
1508
+ return isSigningCredentialError(error);
2277
1509
  }
2278
1510
  /**
2279
1511
  * Refresh server-side signing credentials.
@@ -2282,9 +1514,8 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2282
1514
  * 1. PIN hash in memory → wallet.generate() to repopulate server cache
2283
1515
  * 2. Neither available → throw UNAUTHORIZED
2284
1516
  *
2285
- * Note: sessionStorage-cached credentials (evmCreds) are automatically
2286
- * attached to every signing request by TalkenApiClient, so the server
2287
- * can use them as fallback without a separate refresh call.
1517
+ * Note: the /sign/* and /execute/* routes do not accept cached `evmCreds`,
1518
+ * so this refresh is the only recovery from a cold server credential cache.
2288
1519
  */
2289
1520
  async refreshSigningCredentials() {
2290
1521
  const credMgr = getCredentialManager();
@@ -2445,6 +1676,7 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2445
1676
  "Invalid transaction params"
2446
1677
  );
2447
1678
  }
1679
+ resolveEvmSignType(params[0]);
2448
1680
  const resolved = await this.callInterceptor("eth_sendTransaction", params);
2449
1681
  const tx = params[0];
2450
1682
  logger2.debug("eth_sendTransaction incoming gas params:", {
@@ -2545,23 +1777,21 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2545
1777
  const amountWei = BigInt(hexValue).toString();
2546
1778
  try {
2547
1779
  const gasLimit = tx.gas || tx.gasLimit;
2548
- const result = await this.withSigningCredentialRetry(
2549
- () => api.evm.sendTransaction({
2550
- chainKey,
2551
- to: tx.to,
2552
- amountWei,
2553
- pin: pinHash,
2554
- data: tx.data || "0x",
2555
- waitForReceipt: true,
2556
- ...gasLimit && { gasLimit },
2557
- ...tx.gasPrice && { gasPrice: tx.gasPrice },
2558
- ...tx.maxFeePerGas && { maxFeePerGas: tx.maxFeePerGas },
2559
- ...tx.maxPriorityFeePerGas && {
2560
- maxPriorityFeePerGas: tx.maxPriorityFeePerGas
2561
- },
2562
- ...email && { email }
2563
- })
2564
- );
1780
+ const result = await api.evm.sendTransaction({
1781
+ chainKey,
1782
+ to: tx.to,
1783
+ amountWei,
1784
+ pin: pinHash,
1785
+ data: tx.data || "0x",
1786
+ waitForReceipt: true,
1787
+ ...gasLimit && { gasLimit },
1788
+ ...tx.gasPrice && { gasPrice: tx.gasPrice },
1789
+ ...tx.maxFeePerGas && { maxFeePerGas: tx.maxFeePerGas },
1790
+ ...tx.maxPriorityFeePerGas && {
1791
+ maxPriorityFeePerGas: tx.maxPriorityFeePerGas
1792
+ },
1793
+ ...email && { email }
1794
+ });
2565
1795
  this.updateTxResult({
2566
1796
  txHash: result.txHash,
2567
1797
  network: chainKey,
@@ -2666,6 +1896,7 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2666
1896
  "Invalid transaction params"
2667
1897
  );
2668
1898
  }
1899
+ const signType = resolveEvmSignType(params[0]);
2669
1900
  const resolved = await this.callInterceptor("eth_signTransaction", params);
2670
1901
  const tx = params[0];
2671
1902
  if (resolved) {
@@ -2704,6 +1935,7 @@ var AbcEvmProvider = class extends AbstractChainProvider {
2704
1935
  maxFeePerGas: tx.maxFeePerGas,
2705
1936
  maxPriorityFeePerGas: tx.maxPriorityFeePerGas,
2706
1937
  nonce: tx.nonce ? String(Number.parseInt(tx.nonce, 16)) : void 0,
1938
+ ...signType && { type: signType },
2707
1939
  ...pinHash && { pin: pinHash },
2708
1940
  ...email && { email }
2709
1941
  })