essential-eth 0.4.9-beta.1 → 0.4.9-beta.4

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 (498) hide show
  1. package/lib/cjs/classes/Contract.d.ts +71 -0
  2. package/lib/cjs/classes/Contract.js +133 -0
  3. package/lib/cjs/classes/test/Contract/crv-abi.d.ts +2 -0
  4. package/lib/cjs/classes/test/Contract/crv-abi.js +488 -0
  5. package/lib/cjs/classes/test/Contract/ens-abi.d.ts +2 -0
  6. package/lib/cjs/classes/test/Contract/ens-abi.js +453 -0
  7. package/lib/cjs/classes/test/Contract/fei-abi.d.ts +2 -0
  8. package/lib/cjs/classes/test/Contract/fei-abi.js +526 -0
  9. package/lib/cjs/classes/test/Contract/foo-abi.d.ts +2 -0
  10. package/lib/cjs/classes/test/Contract/foo-abi.js +42 -0
  11. package/lib/cjs/classes/test/Contract/uniswap-abi.d.ts +2 -0
  12. package/lib/cjs/classes/test/Contract/uniswap-abi.js +121 -0
  13. package/lib/cjs/classes/utils/clean-block.d.ts +6 -0
  14. package/lib/cjs/classes/utils/clean-block.js +46 -0
  15. package/lib/cjs/classes/utils/clean-transaction.d.ts +5 -0
  16. package/lib/cjs/classes/utils/clean-transaction.js +38 -0
  17. package/lib/cjs/classes/utils/encode-decode-transaction.d.ts +3 -0
  18. package/lib/cjs/classes/utils/encode-decode-transaction.js +113 -0
  19. package/lib/cjs/classes/utils/fetchers.d.ts +9 -0
  20. package/lib/cjs/classes/utils/fetchers.js +33 -0
  21. package/{src/classes/utils/hex-to-decimal.ts → lib/cjs/classes/utils/hex-to-decimal.d.ts} +1 -3
  22. package/lib/cjs/classes/utils/hex-to-decimal.js +11 -0
  23. package/lib/cjs/index.d.ts +13 -0
  24. package/lib/cjs/index.js +44 -0
  25. package/lib/cjs/providers/JsonRpcProvider.d.ts +23 -0
  26. package/lib/cjs/providers/JsonRpcProvider.js +94 -0
  27. package/lib/cjs/providers/utils/chains-info.d.ts +360 -0
  28. package/lib/cjs/providers/utils/chains-info.js +1081 -0
  29. package/lib/cjs/shared/tiny-big/helpers.d.ts +1 -0
  30. package/lib/cjs/shared/tiny-big/helpers.js +71 -0
  31. package/lib/cjs/shared/tiny-big/tiny-big.d.ts +19 -0
  32. package/lib/cjs/shared/tiny-big/tiny-big.js +41 -0
  33. package/lib/cjs/shared/validate-type.d.ts +3 -0
  34. package/lib/cjs/shared/validate-type.js +9 -0
  35. package/lib/cjs/types/Block.types.d.ts +47 -0
  36. package/lib/cjs/types/Block.types.js +2 -0
  37. package/lib/cjs/types/Contract.types.d.ts +24 -0
  38. package/lib/cjs/types/Contract.types.js +2 -0
  39. package/lib/cjs/types/Network.types.d.ts +8 -0
  40. package/lib/cjs/types/Network.types.js +2 -0
  41. package/lib/cjs/types/Transaction.types.d.ts +34 -0
  42. package/lib/cjs/types/Transaction.types.js +2 -0
  43. package/{src/utils/ether-to-wei.ts → lib/cjs/utils/ether-to-wei.d.ts} +2 -10
  44. package/lib/cjs/utils/ether-to-wei.js +32 -0
  45. package/{src/utils/index.ts → lib/cjs/utils/index.d.ts} +0 -1
  46. package/lib/cjs/utils/index.js +11 -0
  47. package/lib/cjs/utils/is-address.d.ts +5 -0
  48. package/lib/cjs/utils/is-address.js +20 -0
  49. package/lib/cjs/utils/to-checksum-address.d.ts +17 -0
  50. package/lib/cjs/utils/to-checksum-address.js +46 -0
  51. package/{src/utils/wei-to-ether.ts → lib/cjs/utils/wei-to-ether.d.ts} +1 -8
  52. package/lib/cjs/utils/wei-to-ether.js +34 -0
  53. package/lib/esm/classes/Contract.d.ts +11 -0
  54. package/lib/esm/classes/Contract.js +70 -0
  55. package/lib/esm/classes/test/Contract/crv-abi.d.ts +2 -0
  56. package/lib/esm/classes/test/Contract/crv-abi.js +470 -0
  57. package/lib/esm/classes/test/Contract/ens-abi.d.ts +2 -0
  58. package/lib/esm/classes/test/Contract/ens-abi.js +435 -0
  59. package/lib/esm/classes/test/Contract/fei-abi.d.ts +2 -0
  60. package/lib/esm/classes/test/Contract/fei-abi.js +521 -0
  61. package/lib/esm/classes/test/Contract/foo-abi.d.ts +2 -0
  62. package/lib/esm/classes/test/Contract/foo-abi.js +33 -0
  63. package/lib/esm/classes/test/Contract/uniswap-abi.d.ts +2 -0
  64. package/lib/esm/classes/test/Contract/uniswap-abi.js +116 -0
  65. package/lib/esm/classes/utils/clean-block.d.ts +3 -0
  66. package/lib/esm/classes/utils/clean-block.js +35 -0
  67. package/lib/esm/classes/utils/clean-transaction.d.ts +2 -0
  68. package/lib/esm/classes/utils/clean-transaction.js +29 -0
  69. package/lib/esm/classes/utils/encode-decode-transaction.d.ts +3 -0
  70. package/lib/esm/classes/utils/encode-decode-transaction.js +98 -0
  71. package/lib/esm/classes/utils/fetchers.d.ts +9 -0
  72. package/lib/esm/classes/utils/fetchers.js +25 -0
  73. package/lib/esm/classes/utils/hex-to-decimal.d.ts +1 -0
  74. package/lib/esm/classes/utils/hex-to-decimal.js +3 -0
  75. package/lib/esm/index.d.ts +13 -0
  76. package/lib/esm/index.js +9 -0
  77. package/lib/esm/providers/JsonRpcProvider.d.ts +10 -0
  78. package/lib/esm/providers/JsonRpcProvider.js +74 -0
  79. package/lib/esm/providers/utils/chains-info.d.ts +360 -0
  80. package/lib/esm/providers/utils/chains-info.js +1077 -0
  81. package/lib/esm/shared/tiny-big/helpers.d.ts +1 -0
  82. package/lib/esm/shared/tiny-big/helpers.js +58 -0
  83. package/lib/esm/shared/tiny-big/tiny-big.d.ts +8 -0
  84. package/lib/esm/shared/tiny-big/tiny-big.js +22 -0
  85. package/lib/esm/shared/validate-type.d.ts +3 -0
  86. package/lib/esm/shared/validate-type.js +5 -0
  87. package/lib/esm/types/Block.types.d.ts +47 -0
  88. package/lib/esm/types/Block.types.js +1 -0
  89. package/lib/esm/types/Contract.types.d.ts +24 -0
  90. package/lib/esm/types/Contract.types.js +1 -0
  91. package/lib/esm/types/Network.types.d.ts +5 -0
  92. package/lib/esm/types/Network.types.js +1 -0
  93. package/lib/esm/types/Transaction.types.d.ts +34 -0
  94. package/lib/esm/types/Transaction.types.js +1 -0
  95. package/lib/esm/utils/ether-to-wei.d.ts +3 -0
  96. package/lib/esm/utils/ether-to-wei.js +7 -0
  97. package/lib/esm/utils/index.d.ts +5 -0
  98. package/lib/esm/utils/index.js +5 -0
  99. package/lib/esm/utils/is-address.d.ts +1 -0
  100. package/lib/esm/utils/is-address.js +12 -0
  101. package/lib/esm/utils/to-checksum-address.d.ts +1 -0
  102. package/lib/esm/utils/to-checksum-address.js +25 -0
  103. package/lib/esm/utils/wei-to-ether.d.ts +3 -0
  104. package/lib/esm/utils/wei-to-ether.js +7 -0
  105. package/package.json +8 -22
  106. package/..eslintrc.js.un~ +0 -0
  107. package/..npmignore.un~ +0 -0
  108. package/.env +0 -1
  109. package/.eslintignore +0 -4
  110. package/.eslintrc.js +0 -34
  111. package/.gitattributes +0 -1
  112. package/.github/workflows/.test.yml.un~ +0 -0
  113. package/.github/workflows/test.yml +0 -29
  114. package/.package.json.un~ +0 -0
  115. package/.prettierignore +0 -7
  116. package/.travis.yml +0 -5
  117. package/jest.config.js +0 -9
  118. package/scripts/build-website.sh +0 -4
  119. package/scripts/bump-minor.sh +0 -4
  120. package/scripts/bump-patch.sh +0 -4
  121. package/scripts/fetch-chains-info.ts +0 -70
  122. package/scripts/pre-commit.sh +0 -5
  123. package/src/classes/Contract.ts +0 -161
  124. package/src/classes/test/Contract/crv-abi.ts +0 -488
  125. package/src/classes/test/Contract/crv.test.ts +0 -56
  126. package/src/classes/test/Contract/ens-abi.ts +0 -452
  127. package/src/classes/test/Contract/ens.test.ts +0 -39
  128. package/src/classes/test/Contract/fei-abi.ts +0 -526
  129. package/src/classes/test/Contract/fei.test.ts +0 -86
  130. package/src/classes/test/Contract/foo-abi.ts +0 -42
  131. package/src/classes/test/Contract/foo.test.ts +0 -33
  132. package/src/classes/test/Contract/uni.test.ts +0 -72
  133. package/src/classes/test/Contract/uniswap-abi.ts +0 -121
  134. package/src/classes/utils/clean-block.ts +0 -49
  135. package/src/classes/utils/clean-transaction.ts +0 -35
  136. package/src/classes/utils/encode-decode-transaction.ts +0 -126
  137. package/src/classes/utils/fetchers.ts +0 -27
  138. package/src/index.ts +0 -27
  139. package/src/providers/JsonRpcProvider.ts +0 -94
  140. package/src/providers/test/get-block.test.ts +0 -63
  141. package/src/providers/test/get-network.test.ts +0 -34
  142. package/src/providers/utils/chains-info.ts +0 -1079
  143. package/src/shared/tiny-big/helpers.test.ts +0 -30
  144. package/src/shared/tiny-big/helpers.ts +0 -89
  145. package/src/shared/tiny-big/tiny-big.test.ts +0 -10
  146. package/src/shared/tiny-big/tiny-big.ts +0 -36
  147. package/src/shared/validate-type.ts +0 -20
  148. package/src/types/.Contract.types.ts.un~ +0 -0
  149. package/src/types/Block.types.ts +0 -50
  150. package/src/types/Contract.types.ts +0 -67
  151. package/src/types/Network.types.ts +0 -8
  152. package/src/types/Transaction.types.ts +0 -35
  153. package/src/utils/is-address.ts +0 -16
  154. package/src/utils/tests/ether-to-wei.test.ts +0 -65
  155. package/src/utils/tests/is-address.test.ts +0 -52
  156. package/src/utils/tests/to-checksum-address.test.ts +0 -43
  157. package/src/utils/tests/wei-to-ether.test.ts +0 -72
  158. package/src/utils/to-checksum-address.ts +0 -47
  159. package/test/global-setup.js +0 -8
  160. package/test/global-teardown.js +0 -5
  161. package/test/jest.setup-after-env.js +0 -1
  162. package/test/server.js +0 -24
  163. package/tsconfig-cjs.json +0 -8
  164. package/tsconfig.json +0 -25
  165. package/typedoc/options-new-version.js +0 -8
  166. package/typedoc/options.js +0 -9
  167. package/types/just-omit.d.ts +0 -1
  168. package/website/.nojekyll +0 -1
  169. package/website/assets/highlight.css +0 -71
  170. package/website/assets/icons.css +0 -1043
  171. package/website/assets/icons.png +0 -0
  172. package/website/assets/icons@2x.png +0 -0
  173. package/website/assets/main.js +0 -52
  174. package/website/assets/search.js +0 -1
  175. package/website/assets/style.css +0 -1413
  176. package/website/assets/widgets.png +0 -0
  177. package/website/assets/widgets@2x.png +0 -0
  178. package/website/classes/Contract.html +0 -13
  179. package/website/classes/JsonRpcProvider.html +0 -8
  180. package/website/classes/TinyBig.html +0 -161
  181. package/website/index.html +0 -207
  182. package/website/interfaces/Block.html +0 -1
  183. package/website/interfaces/JSONABIArgument.html +0 -1
  184. package/website/interfaces/Network.html +0 -3
  185. package/website/interfaces/Transaction.html +0 -1
  186. package/website/modules.html +0 -32
  187. package/website/versions/0.1.2/assets/highlight.css +0 -57
  188. package/website/versions/0.1.2/assets/icons.css +0 -1043
  189. package/website/versions/0.1.2/assets/icons.png +0 -0
  190. package/website/versions/0.1.2/assets/icons@2x.png +0 -0
  191. package/website/versions/0.1.2/assets/main.js +0 -52
  192. package/website/versions/0.1.2/assets/search.js +0 -1
  193. package/website/versions/0.1.2/assets/style.css +0 -1341
  194. package/website/versions/0.1.2/assets/widgets.png +0 -0
  195. package/website/versions/0.1.2/assets/widgets@2x.png +0 -0
  196. package/website/versions/0.1.2/classes/TinyBig.html +0 -4
  197. package/website/versions/0.1.2/index.html +0 -20
  198. package/website/versions/0.1.2/modules.html +0 -23
  199. package/website/versions/0.1.3/assets/highlight.css +0 -64
  200. package/website/versions/0.1.3/assets/icons.css +0 -1043
  201. package/website/versions/0.1.3/assets/icons.png +0 -0
  202. package/website/versions/0.1.3/assets/icons@2x.png +0 -0
  203. package/website/versions/0.1.3/assets/main.js +0 -52
  204. package/website/versions/0.1.3/assets/search.js +0 -1
  205. package/website/versions/0.1.3/assets/style.css +0 -1341
  206. package/website/versions/0.1.3/assets/widgets.png +0 -0
  207. package/website/versions/0.1.3/assets/widgets@2x.png +0 -0
  208. package/website/versions/0.1.3/classes/TinyBig.html +0 -4
  209. package/website/versions/0.1.3/index.html +0 -53
  210. package/website/versions/0.1.3/modules.html +0 -23
  211. package/website/versions/0.1.4/assets/highlight.css +0 -64
  212. package/website/versions/0.1.4/assets/icons.css +0 -1043
  213. package/website/versions/0.1.4/assets/icons.png +0 -0
  214. package/website/versions/0.1.4/assets/icons@2x.png +0 -0
  215. package/website/versions/0.1.4/assets/main.js +0 -52
  216. package/website/versions/0.1.4/assets/search.js +0 -1
  217. package/website/versions/0.1.4/assets/style.css +0 -1341
  218. package/website/versions/0.1.4/assets/widgets.png +0 -0
  219. package/website/versions/0.1.4/assets/widgets@2x.png +0 -0
  220. package/website/versions/0.1.4/classes/EssentialEth.html +0 -1
  221. package/website/versions/0.1.4/classes/TinyBig.html +0 -4
  222. package/website/versions/0.1.4/index.html +0 -58
  223. package/website/versions/0.1.4/modules.html +0 -23
  224. package/website/versions/0.2.0/assets/highlight.css +0 -64
  225. package/website/versions/0.2.0/assets/icons.css +0 -1043
  226. package/website/versions/0.2.0/assets/icons.png +0 -0
  227. package/website/versions/0.2.0/assets/icons@2x.png +0 -0
  228. package/website/versions/0.2.0/assets/main.js +0 -52
  229. package/website/versions/0.2.0/assets/search.js +0 -1
  230. package/website/versions/0.2.0/assets/style.css +0 -1341
  231. package/website/versions/0.2.0/assets/widgets.png +0 -0
  232. package/website/versions/0.2.0/assets/widgets@2x.png +0 -0
  233. package/website/versions/0.2.0/classes/EssentialEth.html +0 -5
  234. package/website/versions/0.2.0/classes/TinyBig.html +0 -146
  235. package/website/versions/0.2.0/index.html +0 -89
  236. package/website/versions/0.2.0/modules.html +0 -25
  237. package/website/versions/0.2.1/assets/highlight.css +0 -64
  238. package/website/versions/0.2.1/assets/icons.css +0 -1043
  239. package/website/versions/0.2.1/assets/icons.png +0 -0
  240. package/website/versions/0.2.1/assets/icons@2x.png +0 -0
  241. package/website/versions/0.2.1/assets/main.js +0 -52
  242. package/website/versions/0.2.1/assets/search.js +0 -1
  243. package/website/versions/0.2.1/assets/style.css +0 -1341
  244. package/website/versions/0.2.1/assets/widgets.png +0 -0
  245. package/website/versions/0.2.1/assets/widgets@2x.png +0 -0
  246. package/website/versions/0.2.1/classes/EssentialEth.html +0 -5
  247. package/website/versions/0.2.1/classes/TinyBig.html +0 -146
  248. package/website/versions/0.2.1/index.html +0 -96
  249. package/website/versions/0.2.1/modules.html +0 -29
  250. package/website/versions/0.2.2/assets/highlight.css +0 -64
  251. package/website/versions/0.2.2/assets/icons.css +0 -1043
  252. package/website/versions/0.2.2/assets/icons.png +0 -0
  253. package/website/versions/0.2.2/assets/icons@2x.png +0 -0
  254. package/website/versions/0.2.2/assets/main.js +0 -52
  255. package/website/versions/0.2.2/assets/search.js +0 -1
  256. package/website/versions/0.2.2/assets/style.css +0 -1341
  257. package/website/versions/0.2.2/assets/widgets.png +0 -0
  258. package/website/versions/0.2.2/assets/widgets@2x.png +0 -0
  259. package/website/versions/0.2.2/classes/EssentialEth.html +0 -5
  260. package/website/versions/0.2.2/classes/TinyBig.html +0 -146
  261. package/website/versions/0.2.2/index.html +0 -96
  262. package/website/versions/0.2.2/modules.html +0 -29
  263. package/website/versions/0.3.0/.nojekyll +0 -1
  264. package/website/versions/0.3.0/assets/highlight.css +0 -71
  265. package/website/versions/0.3.0/assets/icons.css +0 -1043
  266. package/website/versions/0.3.0/assets/icons.png +0 -0
  267. package/website/versions/0.3.0/assets/icons@2x.png +0 -0
  268. package/website/versions/0.3.0/assets/main.js +0 -52
  269. package/website/versions/0.3.0/assets/search.js +0 -1
  270. package/website/versions/0.3.0/assets/style.css +0 -1384
  271. package/website/versions/0.3.0/assets/widgets.png +0 -0
  272. package/website/versions/0.3.0/assets/widgets@2x.png +0 -0
  273. package/website/versions/0.3.0/classes/Contract.html +0 -15
  274. package/website/versions/0.3.0/classes/TinyBig.html +0 -156
  275. package/website/versions/0.3.0/index.html +0 -123
  276. package/website/versions/0.3.0/modules.html +0 -32
  277. package/website/versions/0.3.1/.nojekyll +0 -1
  278. package/website/versions/0.3.1/assets/highlight.css +0 -71
  279. package/website/versions/0.3.1/assets/icons.css +0 -1043
  280. package/website/versions/0.3.1/assets/icons.png +0 -0
  281. package/website/versions/0.3.1/assets/icons@2x.png +0 -0
  282. package/website/versions/0.3.1/assets/main.js +0 -52
  283. package/website/versions/0.3.1/assets/search.js +0 -1
  284. package/website/versions/0.3.1/assets/style.css +0 -1384
  285. package/website/versions/0.3.1/assets/widgets.png +0 -0
  286. package/website/versions/0.3.1/assets/widgets@2x.png +0 -0
  287. package/website/versions/0.3.1/classes/Contract.html +0 -15
  288. package/website/versions/0.3.1/classes/TinyBig.html +0 -156
  289. package/website/versions/0.3.1/index.html +0 -123
  290. package/website/versions/0.3.1/modules.html +0 -32
  291. package/website/versions/0.3.2/.nojekyll +0 -1
  292. package/website/versions/0.3.2/assets/highlight.css +0 -71
  293. package/website/versions/0.3.2/assets/icons.css +0 -1043
  294. package/website/versions/0.3.2/assets/icons.png +0 -0
  295. package/website/versions/0.3.2/assets/icons@2x.png +0 -0
  296. package/website/versions/0.3.2/assets/main.js +0 -52
  297. package/website/versions/0.3.2/assets/search.js +0 -1
  298. package/website/versions/0.3.2/assets/style.css +0 -1384
  299. package/website/versions/0.3.2/assets/widgets.png +0 -0
  300. package/website/versions/0.3.2/assets/widgets@2x.png +0 -0
  301. package/website/versions/0.3.2/classes/Contract.html +0 -15
  302. package/website/versions/0.3.2/classes/JsonRpcProvider.html +0 -5
  303. package/website/versions/0.3.2/classes/TinyBig.html +0 -156
  304. package/website/versions/0.3.2/index.html +0 -123
  305. package/website/versions/0.3.2/modules.html +0 -32
  306. package/website/versions/0.3.3/.nojekyll +0 -1
  307. package/website/versions/0.3.3/assets/highlight.css +0 -71
  308. package/website/versions/0.3.3/assets/icons.css +0 -1043
  309. package/website/versions/0.3.3/assets/icons.png +0 -0
  310. package/website/versions/0.3.3/assets/icons@2x.png +0 -0
  311. package/website/versions/0.3.3/assets/main.js +0 -52
  312. package/website/versions/0.3.3/assets/search.js +0 -1
  313. package/website/versions/0.3.3/assets/style.css +0 -1384
  314. package/website/versions/0.3.3/assets/widgets.png +0 -0
  315. package/website/versions/0.3.3/assets/widgets@2x.png +0 -0
  316. package/website/versions/0.3.3/classes/Contract.html +0 -15
  317. package/website/versions/0.3.3/classes/JsonRpcProvider.html +0 -5
  318. package/website/versions/0.3.3/classes/TinyBig.html +0 -156
  319. package/website/versions/0.3.3/index.html +0 -123
  320. package/website/versions/0.3.3/interfaces/Block.html +0 -1
  321. package/website/versions/0.3.3/interfaces/Transaction.html +0 -1
  322. package/website/versions/0.3.3/modules.html +0 -32
  323. package/website/versions/0.4.0/.nojekyll +0 -1
  324. package/website/versions/0.4.0/assets/highlight.css +0 -71
  325. package/website/versions/0.4.0/assets/icons.css +0 -1043
  326. package/website/versions/0.4.0/assets/icons.png +0 -0
  327. package/website/versions/0.4.0/assets/icons@2x.png +0 -0
  328. package/website/versions/0.4.0/assets/main.js +0 -52
  329. package/website/versions/0.4.0/assets/search.js +0 -1
  330. package/website/versions/0.4.0/assets/style.css +0 -1384
  331. package/website/versions/0.4.0/assets/widgets.png +0 -0
  332. package/website/versions/0.4.0/assets/widgets@2x.png +0 -0
  333. package/website/versions/0.4.0/classes/Contract.html +0 -15
  334. package/website/versions/0.4.0/classes/JsonRpcProvider.html +0 -6
  335. package/website/versions/0.4.0/classes/TinyBig.html +0 -156
  336. package/website/versions/0.4.0/index.html +0 -148
  337. package/website/versions/0.4.0/interfaces/Block.html +0 -1
  338. package/website/versions/0.4.0/interfaces/Transaction.html +0 -1
  339. package/website/versions/0.4.0/modules.html +0 -32
  340. package/website/versions/0.4.1/.nojekyll +0 -1
  341. package/website/versions/0.4.1/assets/highlight.css +0 -71
  342. package/website/versions/0.4.1/assets/icons.css +0 -1043
  343. package/website/versions/0.4.1/assets/icons.png +0 -0
  344. package/website/versions/0.4.1/assets/icons@2x.png +0 -0
  345. package/website/versions/0.4.1/assets/main.js +0 -52
  346. package/website/versions/0.4.1/assets/search.js +0 -1
  347. package/website/versions/0.4.1/assets/style.css +0 -1384
  348. package/website/versions/0.4.1/assets/widgets.png +0 -0
  349. package/website/versions/0.4.1/assets/widgets@2x.png +0 -0
  350. package/website/versions/0.4.1/classes/Contract.html +0 -15
  351. package/website/versions/0.4.1/classes/JsonRpcProvider.html +0 -6
  352. package/website/versions/0.4.1/classes/TinyBig.html +0 -156
  353. package/website/versions/0.4.1/index.html +0 -148
  354. package/website/versions/0.4.1/interfaces/Block.html +0 -1
  355. package/website/versions/0.4.1/interfaces/Transaction.html +0 -1
  356. package/website/versions/0.4.1/modules.html +0 -32
  357. package/website/versions/0.4.2/.nojekyll +0 -1
  358. package/website/versions/0.4.2/assets/highlight.css +0 -71
  359. package/website/versions/0.4.2/assets/icons.css +0 -1043
  360. package/website/versions/0.4.2/assets/icons.png +0 -0
  361. package/website/versions/0.4.2/assets/icons@2x.png +0 -0
  362. package/website/versions/0.4.2/assets/main.js +0 -52
  363. package/website/versions/0.4.2/assets/search.js +0 -1
  364. package/website/versions/0.4.2/assets/style.css +0 -1384
  365. package/website/versions/0.4.2/assets/widgets.png +0 -0
  366. package/website/versions/0.4.2/assets/widgets@2x.png +0 -0
  367. package/website/versions/0.4.2/classes/Contract.html +0 -15
  368. package/website/versions/0.4.2/classes/JsonRpcProvider.html +0 -8
  369. package/website/versions/0.4.2/classes/TinyBig.html +0 -156
  370. package/website/versions/0.4.2/index.html +0 -199
  371. package/website/versions/0.4.2/interfaces/Block.html +0 -1
  372. package/website/versions/0.4.2/interfaces/Transaction.html +0 -1
  373. package/website/versions/0.4.2/modules.html +0 -34
  374. package/website/versions/0.4.3/.nojekyll +0 -1
  375. package/website/versions/0.4.3/assets/highlight.css +0 -71
  376. package/website/versions/0.4.3/assets/icons.css +0 -1043
  377. package/website/versions/0.4.3/assets/icons.png +0 -0
  378. package/website/versions/0.4.3/assets/icons@2x.png +0 -0
  379. package/website/versions/0.4.3/assets/main.js +0 -52
  380. package/website/versions/0.4.3/assets/search.js +0 -1
  381. package/website/versions/0.4.3/assets/style.css +0 -1384
  382. package/website/versions/0.4.3/assets/widgets.png +0 -0
  383. package/website/versions/0.4.3/assets/widgets@2x.png +0 -0
  384. package/website/versions/0.4.3/classes/Contract.html +0 -15
  385. package/website/versions/0.4.3/classes/JsonRpcProvider.html +0 -8
  386. package/website/versions/0.4.3/classes/TinyBig.html +0 -159
  387. package/website/versions/0.4.3/index.html +0 -199
  388. package/website/versions/0.4.3/interfaces/Block.html +0 -1
  389. package/website/versions/0.4.3/interfaces/Transaction.html +0 -1
  390. package/website/versions/0.4.3/modules.html +0 -34
  391. package/website/versions/0.4.6/.nojekyll +0 -1
  392. package/website/versions/0.4.6/assets/highlight.css +0 -71
  393. package/website/versions/0.4.6/assets/icons.css +0 -1043
  394. package/website/versions/0.4.6/assets/icons.png +0 -0
  395. package/website/versions/0.4.6/assets/icons@2x.png +0 -0
  396. package/website/versions/0.4.6/assets/main.js +0 -52
  397. package/website/versions/0.4.6/assets/search.js +0 -1
  398. package/website/versions/0.4.6/assets/style.css +0 -1413
  399. package/website/versions/0.4.6/assets/widgets.png +0 -0
  400. package/website/versions/0.4.6/assets/widgets@2x.png +0 -0
  401. package/website/versions/0.4.6/classes/Contract.html +0 -15
  402. package/website/versions/0.4.6/classes/JsonRpcProvider.html +0 -8
  403. package/website/versions/0.4.6/classes/TinyBig.html +0 -159
  404. package/website/versions/0.4.6/index.html +0 -207
  405. package/website/versions/0.4.6/interfaces/Block.html +0 -1
  406. package/website/versions/0.4.6/interfaces/Transaction.html +0 -1
  407. package/website/versions/0.4.6/modules.html +0 -34
  408. package/website/versions/0.4.8/.nojekyll +0 -1
  409. package/website/versions/0.4.8/assets/highlight.css +0 -71
  410. package/website/versions/0.4.8/assets/icons.css +0 -1043
  411. package/website/versions/0.4.8/assets/icons.png +0 -0
  412. package/website/versions/0.4.8/assets/icons@2x.png +0 -0
  413. package/website/versions/0.4.8/assets/main.js +0 -52
  414. package/website/versions/0.4.8/assets/search.js +0 -1
  415. package/website/versions/0.4.8/assets/style.css +0 -1413
  416. package/website/versions/0.4.8/assets/widgets.png +0 -0
  417. package/website/versions/0.4.8/assets/widgets@2x.png +0 -0
  418. package/website/versions/0.4.8/classes/Contract.html +0 -15
  419. package/website/versions/0.4.8/classes/JsonRpcProvider.html +0 -8
  420. package/website/versions/0.4.8/classes/TinyBig.html +0 -161
  421. package/website/versions/0.4.8/index.html +0 -207
  422. package/website/versions/0.4.8/interfaces/Block.html +0 -1
  423. package/website/versions/0.4.8/interfaces/Transaction.html +0 -1
  424. package/website/versions/0.4.8/modules.html +0 -34
  425. package/website/versions/0.4.9-beta.0/.nojekyll +0 -1
  426. package/website/versions/0.4.9-beta.0/assets/highlight.css +0 -71
  427. package/website/versions/0.4.9-beta.0/assets/icons.css +0 -1043
  428. package/website/versions/0.4.9-beta.0/assets/icons.png +0 -0
  429. package/website/versions/0.4.9-beta.0/assets/icons@2x.png +0 -0
  430. package/website/versions/0.4.9-beta.0/assets/main.js +0 -52
  431. package/website/versions/0.4.9-beta.0/assets/search.js +0 -1
  432. package/website/versions/0.4.9-beta.0/assets/style.css +0 -1413
  433. package/website/versions/0.4.9-beta.0/assets/widgets.png +0 -0
  434. package/website/versions/0.4.9-beta.0/assets/widgets@2x.png +0 -0
  435. package/website/versions/0.4.9-beta.0/classes/Contract.html +0 -13
  436. package/website/versions/0.4.9-beta.0/classes/JsonRpcProvider.html +0 -8
  437. package/website/versions/0.4.9-beta.0/classes/TinyBig.html +0 -161
  438. package/website/versions/0.4.9-beta.0/index.html +0 -207
  439. package/website/versions/0.4.9-beta.0/interfaces/Block.html +0 -1
  440. package/website/versions/0.4.9-beta.0/interfaces/JSONABIArgument.html +0 -1
  441. package/website/versions/0.4.9-beta.0/interfaces/Network.html +0 -3
  442. package/website/versions/0.4.9-beta.0/interfaces/Transaction.html +0 -1
  443. package/website/versions/0.4.9-beta.0/modules.html +0 -32
  444. package/website/versions/0.4.9-beta.1/.nojekyll +0 -1
  445. package/website/versions/0.4.9-beta.1/assets/highlight.css +0 -71
  446. package/website/versions/0.4.9-beta.1/assets/icons.css +0 -1043
  447. package/website/versions/0.4.9-beta.1/assets/icons.png +0 -0
  448. package/website/versions/0.4.9-beta.1/assets/icons@2x.png +0 -0
  449. package/website/versions/0.4.9-beta.1/assets/main.js +0 -52
  450. package/website/versions/0.4.9-beta.1/assets/search.js +0 -1
  451. package/website/versions/0.4.9-beta.1/assets/style.css +0 -1413
  452. package/website/versions/0.4.9-beta.1/assets/widgets.png +0 -0
  453. package/website/versions/0.4.9-beta.1/assets/widgets@2x.png +0 -0
  454. package/website/versions/0.4.9-beta.1/classes/Contract.html +0 -13
  455. package/website/versions/0.4.9-beta.1/classes/JsonRpcProvider.html +0 -8
  456. package/website/versions/0.4.9-beta.1/classes/TinyBig.html +0 -161
  457. package/website/versions/0.4.9-beta.1/index.html +0 -207
  458. package/website/versions/0.4.9-beta.1/interfaces/Block.html +0 -1
  459. package/website/versions/0.4.9-beta.1/interfaces/JSONABIArgument.html +0 -1
  460. package/website/versions/0.4.9-beta.1/interfaces/Network.html +0 -3
  461. package/website/versions/0.4.9-beta.1/interfaces/Transaction.html +0 -1
  462. package/website/versions/0.4.9-beta.1/modules.html +0 -32
  463. package/website/versions/versions/0.1.2/assets/highlight.css +0 -57
  464. package/website/versions/versions/0.1.2/assets/icons.css +0 -1043
  465. package/website/versions/versions/0.1.2/assets/icons.png +0 -0
  466. package/website/versions/versions/0.1.2/assets/icons@2x.png +0 -0
  467. package/website/versions/versions/0.1.2/assets/main.js +0 -52
  468. package/website/versions/versions/0.1.2/assets/search.js +0 -1
  469. package/website/versions/versions/0.1.2/assets/style.css +0 -1341
  470. package/website/versions/versions/0.1.2/assets/widgets.png +0 -0
  471. package/website/versions/versions/0.1.2/assets/widgets@2x.png +0 -0
  472. package/website/versions/versions/0.1.2/classes/TinyBig.html +0 -4
  473. package/website/versions/versions/0.1.2/index.html +0 -20
  474. package/website/versions/versions/0.1.2/modules.html +0 -23
  475. package/website/versions/versions/0.1.3/assets/highlight.css +0 -64
  476. package/website/versions/versions/0.1.3/assets/icons.css +0 -1043
  477. package/website/versions/versions/0.1.3/assets/icons.png +0 -0
  478. package/website/versions/versions/0.1.3/assets/icons@2x.png +0 -0
  479. package/website/versions/versions/0.1.3/assets/main.js +0 -52
  480. package/website/versions/versions/0.1.3/assets/search.js +0 -1
  481. package/website/versions/versions/0.1.3/assets/style.css +0 -1341
  482. package/website/versions/versions/0.1.3/assets/widgets.png +0 -0
  483. package/website/versions/versions/0.1.3/assets/widgets@2x.png +0 -0
  484. package/website/versions/versions/0.1.3/classes/TinyBig.html +0 -4
  485. package/website/versions/versions/0.1.3/index.html +0 -53
  486. package/website/versions/versions/0.1.3/modules.html +0 -23
  487. package/website/versions/versions/0.1.4/assets/highlight.css +0 -64
  488. package/website/versions/versions/0.1.4/assets/icons.css +0 -1043
  489. package/website/versions/versions/0.1.4/assets/icons.png +0 -0
  490. package/website/versions/versions/0.1.4/assets/icons@2x.png +0 -0
  491. package/website/versions/versions/0.1.4/assets/main.js +0 -52
  492. package/website/versions/versions/0.1.4/assets/search.js +0 -1
  493. package/website/versions/versions/0.1.4/assets/style.css +0 -1341
  494. package/website/versions/versions/0.1.4/assets/widgets.png +0 -0
  495. package/website/versions/versions/0.1.4/assets/widgets@2x.png +0 -0
  496. package/website/versions/versions/0.1.4/classes/TinyBig.html +0 -4
  497. package/website/versions/versions/0.1.4/index.html +0 -58
  498. package/website/versions/versions/0.1.4/modules.html +0 -23
@@ -1,199 +0,0 @@
1
- <!DOCTYPE html><html class="default no-js"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>essential-eth - v0.4.2</title><meta name="description" content="Documentation for essential-eth - v0.4.2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">essential-eth - v0.4.2</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>essential-eth - v0.4.2</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><div class="tsd-panel tsd-typography"><p align="center">
2
- <a><img src="https://blog.ethereum.org/img/2018/08/grants_eth_logo.png" title="Logo" height="400"/></a>
3
- </p>
4
- <p align="center">
5
- <b>
6
- Essential Eth
7
- </b>
8
- <br>
9
- <i>Ultralight Ethereum utilities for JS and TS</i>
10
- <br>
11
- </p>
12
-
13
- <hr>
14
- <p align="center">
15
- <img src="https://user-images.githubusercontent.com/3408480/133322814-f3d18424-4ba8-4a37-8cbc-c5e6828354a3.png" title="Ethereum triangle" width="900"/>
16
- </p>
17
-
18
- <hr>
19
- <br>
20
-
21
- <ul>
22
- <li>⚡️ A replacement for <code>web3</code> and <code>ethers</code></li>
23
- <li>🏎 <a href="https://bundlephobia.com/package/essential-eth">The TINIEST code size possible</a></li>
24
- <li>ʦ Fully typed with TypeScript (also works with JavaScript)</li>
25
- <li>🧪 Tested to match both <code>web3</code> and <code>ethers</code></li>
26
- <li>🌲 Tree-shaking and no side-effects</li>
27
- <li>🙌 Supports multiple JS versions (CommonJS and ESM)<ul>
28
- <li>✅ Node 14, 12, &amp; 10</li>
29
- <li>✅ Web</li>
30
- </ul>
31
- </li>
32
- </ul>
33
- <br/>
34
-
35
-
36
- <a href="#more-info" id="more-info" style="color: inherit; text-decoration: none;">
37
- <h2>More Info</h2>
38
- </a>
39
- <p>🧪 This repo is under active development. The API is less-fully featured than <code>web3</code> and <code>ethers</code>. More functions added often!</p>
40
- <p><img src="https://badgen.net/bundlephobia/minzip/essential-eth" alt=""> <img src="https://badgen.net/bundlephobia/tree-shaking/essential-eth" alt=""> <img src="https://img.shields.io/npm/v/essential-eth" alt=""> <img src="https://badgen.net/bundlephobia/dependency-count/essential-eth" alt=""></p>
41
- <p>👨🏻‍💻 Breaking changes will exist between minor versions until <code>1.0.0</code> (Versions go <code>major.minor.patch</code>)</p>
42
- <br/>
43
-
44
-
45
- <a href="#install" id="install" style="color: inherit; text-decoration: none;">
46
- <h2>Install</h2>
47
- </a>
48
- <pre><code class="language-sh"><span class="hl-1">npm install --save essential-eth </span><span class="hl-3"># TypeScript types load automatically</span><br/><br/><span class="hl-3"># or if you prefer yarn</span><br/><span class="hl-1">yarn add essential-eth </span><span class="hl-3"># TypeScript types load automatically</span>
49
- </code></pre>
50
- <br/>
51
-
52
-
53
- <a href="#utils-do-not-require-connecting-to-an-eth-node" id="utils-do-not-require-connecting-to-an-eth-node" style="color: inherit; text-decoration: none;">
54
- <h2>Utils (do not require connecting to an Eth node)</h2>
55
- </a>
56
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { etherToWei } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-3">// or in a non-import environment</span><br/><span class="hl-5">const</span><span class="hl-1"> { </span><span class="hl-4">etherToWei</span><span class="hl-1"> } </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-4">require</span><span class="hl-1">(</span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">);</span>
57
- </code></pre>
58
- <ul>
59
- <li>The return-type <code>TinyBig</code> is just <a href="https://github.com/MikeMcl/big.js"><code>Big</code></a> but expands scientific notation on <code>toNumber()</code> and <code>toString()</code></li>
60
- </ul>
61
- <br/>
62
-
63
-
64
- <a href="#ethertowei" id="ethertowei" style="color: inherit; text-decoration: none;">
65
- <h4><code>etherToWei</code></h4>
66
- </a>
67
- <pre><code class="language-typescript"><span class="hl-3">// convert ether to wei</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(etherQuantity: string </span><span class="hl-5">|</span><span class="hl-1"> number </span><span class="hl-5">|</span><span class="hl-1"> TinyBig </span><span class="hl-5">|</span><span class="hl-1"> Big): TinyBig</span>
68
- </code></pre>
69
- <details>
70
- <summary>View Example</summary>
71
-
72
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { etherToWei } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">();</span><br/><span class="hl-3">// &quot;1000000000000000000&quot;</span><br/><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">();</span><br/><span class="hl-3">// 1000000000000000000</span><br/><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1&#39;</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">();</span><br/><span class="hl-3">// 1000000000000000000</span>
73
- </code></pre>
74
- </details>
75
-
76
- <br/>
77
-
78
-
79
- <a href="#weitoether" id="weitoether" style="color: inherit; text-decoration: none;">
80
- <h4><code>weiToEther</code></h4>
81
- </a>
82
- <pre><code class="language-typescript"><span class="hl-3">// convert wei to ether</span><br/><span class="hl-0">weiToEther</span><span class="hl-1">(weiQuantity: string </span><span class="hl-5">|</span><span class="hl-1"> number </span><span class="hl-5">|</span><span class="hl-1"> TinyBig </span><span class="hl-5">|</span><span class="hl-1"> Big): TinyBig</span>
83
- </code></pre>
84
- <details>
85
- <summary>View Example</summary>
86
-
87
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { weiToEther } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-0">weiToEther</span><span class="hl-1">(</span><span class="hl-4">1000000000000000000</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">();</span><br/><span class="hl-3">// &quot;1&quot;</span><br/><br/><span class="hl-0">weiToEther</span><span class="hl-1">(</span><span class="hl-4">1000000000000000000</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">();</span><br/><span class="hl-3">// 1</span><br/><span class="hl-0">weiToEther</span><span class="hl-1">(</span><span class="hl-2">&#39;1000000000000000000&#39;</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">();</span><br/><span class="hl-3">// 1</span>
88
- </code></pre>
89
- </details>
90
-
91
- <br/>
92
-
93
-
94
- <a href="#tochecksumaddress" id="tochecksumaddress" style="color: inherit; text-decoration: none;">
95
- <h4><code>toChecksumAddress</code></h4>
96
- </a>
97
- <pre><code class="language-typescript"><span class="hl-3">// return proper mixed-case address</span><br/><span class="hl-3">// does not support ICAP addresses</span><br/><span class="hl-0">toChecksumAddress</span><span class="hl-1">(address: string): string</span>
98
- </code></pre>
99
- <details>
100
- <summary>View Example</summary>
101
-
102
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { toChecksumAddress } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-0">toChecksumAddress</span><span class="hl-1">(</span><span class="hl-2">&#39;0xc0deaf6bd3f0c6574a6a625ef2f22f62a5150eab&#39;</span><span class="hl-1">);</span><br/><span class="hl-3">// &quot;0xc0DEAF6bD3F0c6574a6a625EF2F22f62A5150EAB&quot;</span>
103
- </code></pre>
104
- </details>
105
-
106
- <br/>
107
-
108
-
109
- <a href="#isaddress" id="isaddress" style="color: inherit; text-decoration: none;">
110
- <h4><code>isAddress</code></h4>
111
- </a>
112
- <pre><code class="language-typescript"><span class="hl-3">// returns boolean as to whether input is a valid address</span><br/><span class="hl-3">// does not support ENS nor ICAP</span><br/><span class="hl-0">isAddress</span><span class="hl-1">(address: string): boolean</span>
113
- </code></pre>
114
- <details>
115
- <summary>View Example</summary>
116
-
117
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { isAddress } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-0">isAddress</span><span class="hl-1">(</span><span class="hl-2">&#39;0xc0deaf6bd3f0c6574a6a625ef2f22f62a5150eab&#39;</span><span class="hl-1">);</span><br/><span class="hl-3">// true</span><br/><br/><span class="hl-0">isAddress</span><span class="hl-1">(</span><span class="hl-2">&#39;bad&#39;</span><span class="hl-1">);</span><br/><span class="hl-3">// false</span><br/><br/><span class="hl-3">// Does NOT support ENS.</span><br/><span class="hl-0">isAddress</span><span class="hl-1">(</span><span class="hl-2">&#39;vitalik.eth&#39;</span><span class="hl-1">);</span><br/><span class="hl-3">// false</span>
118
- </code></pre>
119
- </details>
120
-
121
- <br/>
122
-
123
-
124
- <a href="#rpc" id="rpc" style="color: inherit; text-decoration: none;">
125
- <h2>RPC</h2>
126
- </a>
127
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { JsonRpcProvider } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">essentialEth</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">JsonRpcProvider</span><span class="hl-1">(</span><br/><span class="hl-1"> </span><span class="hl-2">&#39;RPC URL HERE&#39;</span><span class="hl-1"> </span><span class="hl-3">/* Try POKT or Infura */</span><span class="hl-1">,</span><br/><span class="hl-1">);</span><br/><span class="hl-3">// OR for very quick testing (limited to 500 requests)</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">essentialEth</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">JsonRpcProvider</span><span class="hl-1">();</span>
128
- </code></pre>
129
-
130
- <a href="#getnetwork" id="getnetwork" style="color: inherit; text-decoration: none;">
131
- <h4><code>getNetwork</code></h4>
132
- </a>
133
- <p>Returns a <a href="src/types/Network.types.ts">Network</a></p>
134
- <pre><code class="language-typescript"><span class="hl-3">// Same API as ethers getNetwork</span><br/><span class="hl-0">getNetwork</span><span class="hl-1">(): </span><span class="hl-4">Promise</span><span class="hl-5">&lt;</span><span class="hl-1">Network</span><span class="hl-5">&gt;</span>
135
- </code></pre>
136
- <details>
137
- <summary>View Example</summary>
138
-
139
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { JsonRpcProvider } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">maticProvider</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">JsonRpcProvider</span><span class="hl-1">(</span><br/><span class="hl-1"> </span><span class="hl-2">&#39;https://free-eth-node.com/api/matic&#39;</span><span class="hl-1">,</span><br/><span class="hl-1">);</span><br/><span class="hl-1">maticProvider.</span><span class="hl-0">getNetwork</span><span class="hl-1">();</span><br/><span class="hl-3">/*</span><br/><span class="hl-3">{ chainId: 137, name: &#39;matic&#39;, ensAddress: null }</span><br/><span class="hl-3">*/</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">xdaiProvider</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">JsonRpcProvider</span><span class="hl-1">(</span><span class="hl-2">&#39;https://free-eth-node.com/api/xdai&#39;</span><span class="hl-1">);</span><br/><span class="hl-1">xdaiProvider.</span><span class="hl-0">getNetwork</span><span class="hl-1">();</span><br/><span class="hl-3">/*</span><br/><span class="hl-3">{ chainId: 100, name: &#39;xdai&#39;, ensAddress: null } }</span><br/><span class="hl-3">*/</span>
140
- </code></pre>
141
- </details>
142
-
143
- <br/>
144
-
145
-
146
- <a href="#getblock" id="getblock" style="color: inherit; text-decoration: none;">
147
- <h4><code>getBlock</code></h4>
148
- </a>
149
- <p>Returns a <a href="src/types/Block.types.ts">Block</a></p>
150
- <pre><code class="language-typescript"><span class="hl-3">// Same API as web3.eth.getBlock</span><br/><span class="hl-0">getBlock</span><span class="hl-1">(timeFrame: number </span><span class="hl-5">|</span><span class="hl-1"> </span><span class="hl-2">&quot;latest&quot;</span><span class="hl-1"> </span><span class="hl-5">|</span><span class="hl-1"> </span><span class="hl-2">&quot;earliest&quot;</span><span class="hl-1"> </span><span class="hl-5">|</span><span class="hl-1"> </span><span class="hl-2">&quot;pending&quot;</span><span class="hl-1">, returnTransactionObjects</span><span class="hl-5">?:</span><span class="hl-1"> boolean): </span><span class="hl-4">Promise</span><span class="hl-5">&lt;</span><span class="hl-1">Block</span><span class="hl-5">&gt;</span>
151
- </code></pre>
152
- <details>
153
- <summary>View Example</summary>
154
-
155
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { JsonRpcProvider } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">essentialEth</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">JsonRpcProvider</span><span class="hl-1">();</span><br/><span class="hl-1">essentialEth.</span><span class="hl-0">getBlock</span><span class="hl-1">(</span><span class="hl-2">&#39;latest&#39;</span><span class="hl-1">);</span><br/><br/><span class="hl-3">/*</span><br/><span class="hl-3">{</span><br/><span class="hl-3">&quot;baseFeePerGas&quot;: &quot;0xf639de71c&quot;,</span><br/><span class="hl-3">&quot;extraData&quot;: &quot;0x4b75436f696e506f6f6c201360d0ff24ef3c3c&quot;,</span><br/><span class="hl-3">&quot;gasLimit&quot;: 30000000,</span><br/><span class="hl-3">&quot;gasUsed&quot;: 1344062,</span><br/><span class="hl-3">&quot;hash&quot;: &quot;0xd61a202c828a67085a08a69c4b1e5e096781d7169eaccb47be26147a15145f38&quot;,</span><br/><span class="hl-3">&quot;logsBloom&quot;: &quot;0x00a001060000000000a00000800810010600000040100000000200000020000000c800000000000000004a8000000101020080100800200040400000102061080000048000000918c800400c0800406000000000004010000440120080200008820009000800000004001804000000000041802010000400008200900808a010110000416010201100900008010480050000100101400008040010420010200002101240000020800000008080000000406000880000003000200602100200000001000260000240240000800020100400200000000a0010001000020680000000102008080081400004000800000004000000212000c0500148089002000000&quot;,</span><br/><span class="hl-3">&quot;miner&quot;: &quot;0xd757fd54b273BB1234d4d9993f27699d28d0EDD2&quot;,</span><br/><span class="hl-3">&quot;mixHash&quot;: &quot;0x363138be56fd5304ca6f0ce56d24d6469f4a5a88c771da1ddf7e69fb23c7d599&quot;,</span><br/><span class="hl-3">&quot;nonce&quot;: &quot;0xdb88082877e8b003&quot;,</span><br/><span class="hl-3">&quot;number&quot;: 13402040,</span><br/><span class="hl-3">&quot;parentHash&quot;: &quot;0xfb7ef17413a17f07791301897f406a05eb3e99acb495bf3bab146a30af5615eb&quot;,</span><br/><span class="hl-3">&quot;receiptsRoot&quot;: &quot;0xfc35fd7463baadc116202ef7a87ddba23a80bd277dd44a4bd3a2b2f48b469be8&quot;,</span><br/><span class="hl-3">&quot;sha3Uncles&quot;: &quot;0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347&quot;,</span><br/><span class="hl-3">&quot;size&quot;: 7672,</span><br/><span class="hl-3">&quot;stateRoot&quot;: &quot;0x8fef1cb4b33ce55f43e8d3e2d19a6db55a8311aead0a25b359eef4d6e8ab6870&quot;,</span><br/><span class="hl-3">&quot;timestamp&quot;: 1634019741,</span><br/><span class="hl-3">&quot;transactions&quot;: Array [</span><br/><span class="hl-3">&quot;0x4b5ee005588efa1881d4bdd97c20fb1b311896bd150a62f0379256c12b4d3243&quot;,</span><br/><span class="hl-3">&quot;0xe28945b5b7bb1963e765b117a88b2fd785ef751bb141fbdf03435994ebd22383&quot;,</span><br/><span class="hl-3">&quot;0xb15b9d44303f0f7a10e5c27320421aa790e12af6bb4f300963da43d5c2ad3a3c&quot;,</span><br/><span class="hl-3">&quot;0x67296bb97ab2accb35b9b73d2fb856f7f28081a469b8ff7e17a89799af9fb729&quot;,</span><br/><span class="hl-3">&quot;0xe8530f6c51c4efe9e15bdcc90b5f879895e0f6682de543c92c5d3d09ec149bd7&quot;,</span><br/><span class="hl-3">&quot;0xbbefd1fc51bac8e10998ccfa2601643a063c68c16cf4b6a91756936084849f36&quot;,</span><br/><span class="hl-3">&quot;0x37c8ae4037b833936163b22c17f39f11169fbeb2cfc249830b0514411d2a2859&quot;,</span><br/><span class="hl-3">&quot;0xe47b2ba6979470bc5aa6529fda7969e0758b3123a91b65d9da49b133f196eaa6&quot;,</span><br/><span class="hl-3">&quot;0x738d2ca35f180a42af6407cb2b724b0c589168740a39e7e1719e30c644766a55&quot;,</span><br/><span class="hl-3">&quot;0x60df73109fc534c3a2126df1a4ed4cb4946a188bb6d34a49025ec4e41d0ee601&quot;,</span><br/><span class="hl-3">&quot;0xaf51a25e70321b5c8987acb3e4a2d5e9e8869f9bb74303984e56c37090dbd8ba&quot;,</span><br/><span class="hl-3">&quot;0xb42bd613800595b21717ea55ea5c2390ffe0ba12297aae0811f6938fbd86c605&quot;,</span><br/><span class="hl-3">&quot;0x628d637eae8f3bf4c3867fffadfb6c6f09228f0d037abc921d30cb4a7e28fa57&quot;,</span><br/><span class="hl-3">&quot;0xf6f19b03636250610e9a724eff7b265cbeed737b0a018500ebbe91e3aaf9ebaf&quot;,</span><br/><span class="hl-3">&quot;0x2376f3a78b63d482d4edcfd7903faeaee49e95b0fb12894f49e6c0ed6709d51a&quot;,</span><br/><span class="hl-3">&quot;0xbbc5634af5882ec73d713f6a3c34a6ff6915c18ab445c9c6d5ff1fb185dcb2d2&quot;,</span><br/><span class="hl-3">&quot;0x15349a7d15861d7f50310a392397a3c7c43a19d70c5543738943b6222460633a&quot;,</span><br/><span class="hl-3">&quot;0x2a166ca1491a05decf2c107050877c62e194c3bdc95a72de79acb39271ebfea1&quot;,</span><br/><span class="hl-3">&quot;0x55efd630c466b58e2051afb55f66f8f415c93c330c7e48e439f0667cf67407c1&quot;,</span><br/><span class="hl-3">&quot;0xbd095088949d323b4ab7cbeeba2534693c14d2a9c25e923bf87cd5c1edfce00a&quot;,</span><br/><span class="hl-3">&quot;0xeb4f9d928020962c6a13ac7de0fb09d0d5c0a0064060d11f2e8cebc6d60443f0&quot;,</span><br/><span class="hl-3">&quot;0x482fb59cef1804ff20752c50b737ab44b4db942e7816d4ff38827109f79c5b6c&quot;,</span><br/><span class="hl-3">&quot;0xf0d87f44454bf2f2d23c72c775ca9051848bf8fe4ce293c8d0a7160a5c7b366d&quot;,</span><br/><span class="hl-3">],</span><br/><span class="hl-3">&quot;transactionsRoot&quot;: &quot;0x7fd87cbada35409e8a235c7d087d8bb7af6cfa0c7985d825ca69851b4192879f&quot;,</span><br/><span class="hl-3">&quot;uncles&quot;: Array [],</span><br/><span class="hl-3">*/</span>
156
- </code></pre>
157
- </details>
158
-
159
- <br/>
160
-
161
-
162
- <a href="#contract" id="contract" style="color: inherit; text-decoration: none;">
163
- <h2>Contract</h2>
164
- </a>
165
- <p>⚠️ Only read functions are currently supported. ⚠️</p>
166
- <ul>
167
- <li>🧪 This is <strong>highly experimental</strong>, do not use this in production yet. (even though <a href="https://earni.fi">earni.fi</a> does)</li>
168
- </ul>
169
- <p>Encoding support:</p>
170
- <ul>
171
- <li><code>bool</code></li>
172
- <li><code>bytes</code></li>
173
- <li><code>address</code></li>
174
- </ul>
175
- <p>Decoding support:</p>
176
- <ul>
177
- <li><code>bool</code></li>
178
- <li><code>address</code></li>
179
- <li><code>uint256</code></li>
180
- <li><code>bytes32</code></li>
181
- <li><code>uint8</code></li>
182
- </ul>
183
- <p><em>Assume any smart-contract method outside the above types will break</em></p>
184
- <pre><code class="language-typescript"><span class="hl-5">import</span><span class="hl-1"> { Contract, jsonRpcProvider, JSONABI } </span><span class="hl-5">from</span><span class="hl-1"> </span><span class="hl-2">&#39;essential-eth&#39;</span><span class="hl-1">;</span><br/><span class="hl-3">// UNI airdrop contract</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">contractAddress</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-2">&#39;0x090D4613473dEE047c3f2706764f49E0821D256e&#39;</span><span class="hl-1">;</span><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">provider</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-0">jsonRpcProvider</span><span class="hl-1">(</span><span class="hl-3">/* RPC URL optional */</span><span class="hl-1">);</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">abi</span><span class="hl-5">:</span><span class="hl-1"> </span><span class="hl-6">JSONABI</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> inputs: [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> internalType: </span><span class="hl-2">&#39;uint256&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> name: </span><span class="hl-2">&#39;index&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> type: </span><span class="hl-2">&#39;uint256&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> ],</span><br/><span class="hl-1"> name: </span><span class="hl-2">&#39;isClaimed&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> outputs: [</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> internalType: </span><span class="hl-2">&#39;bool&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> name: </span><span class="hl-2">&#39;&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> type: </span><span class="hl-2">&#39;bool&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> ],</span><br/><span class="hl-1"> stateMutability: </span><span class="hl-2">&#39;view&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> type: </span><span class="hl-2">&#39;function&#39;</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1">];</span><br/><br/><span class="hl-5">const</span><span class="hl-1"> </span><span class="hl-4">contract</span><span class="hl-1"> </span><span class="hl-5">=</span><span class="hl-1"> </span><span class="hl-5">new</span><span class="hl-1"> </span><span class="hl-0">Contract</span><span class="hl-1">(contractAddress, abi, provider);</span><br/><br/><span class="hl-1">(</span><span class="hl-5">async</span><span class="hl-1"> () </span><span class="hl-5">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-3">// prints boolean as to whether index 0 has claimed airdrop or not</span><br/><span class="hl-1"> console.</span><span class="hl-0">log</span><span class="hl-1">(</span><span class="hl-5">await</span><span class="hl-1"> contract.</span><span class="hl-0">isClaimed</span><span class="hl-1">(</span><span class="hl-4">0</span><span class="hl-1">));</span><br/><span class="hl-1">})();</span>
185
- </code></pre>
186
-
187
- <a href="#contractfunctionnameargs" id="contractfunctionnameargs" style="color: inherit; text-decoration: none;">
188
- <h4><code>contractFunctionName(args)</code></h4>
189
- </a>
190
- <p>Any function on a contract. Returns are the same as <code>ethers.js</code>, except that instead of BigNumber, <code>essential-eth</code> always returns a <a href="https://essential-eth.vercel.app/classes/TinyBig.html"><code>TinyBig</code></a></p>
191
- <br/>
192
- <br/>
193
-
194
- <ul>
195
- <li><a href="https://essential-eth.vercel.app">📓 View full docs</a></li>
196
- <li><a href="https://github.com/dawsbot/essential-eth/releases">📓 View changelog (by looking at releases diff)</a></li>
197
- <li><a href="https://essential-eth.vercel.app/versions">📓 View docs for an older version</a></li>
198
- </ul>
199
- </div></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-class"><a href="classes/Contract.html" class="tsd-kind-icon">Contract</a></li><li class="tsd-kind-class"><a href="classes/JsonRpcProvider.html" class="tsd-kind-icon">Json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-class"><a href="classes/TinyBig.html" class="tsd-kind-icon">Tiny<wbr/>Big</a></li><li class="tsd-kind-interface"><a href="interfaces/Block.html" class="tsd-kind-icon">Block</a></li><li class="tsd-kind-interface"><a href="interfaces/Transaction.html" class="tsd-kind-icon">Transaction</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ContractTypes" class="tsd-kind-icon">Contract<wbr/>Types</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABI" class="tsd-kind-icon">JSONABI</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABIArgument" class="tsd-kind-icon">JSONABIArgument</a></li><li class="tsd-kind-type-alias"><a href="modules.html#Network" class="tsd-kind-icon">Network</a></li><li class="tsd-kind-function"><a href="modules.html#etherToWei" class="tsd-kind-icon">ether<wbr/>To<wbr/>Wei</a></li><li class="tsd-kind-function"><a href="modules.html#isAddress" class="tsd-kind-icon">is<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#jsonRpcProvider" class="tsd-kind-icon">json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-function"><a href="modules.html#tinyBig" class="tsd-kind-icon">tiny<wbr/>Big</a></li><li class="tsd-kind-function"><a href="modules.html#toChecksumAddress" class="tsd-kind-icon">to<wbr/>Checksum<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#weiToEther" class="tsd-kind-icon">wei<wbr/>To<wbr/>Ether</a></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="assets/main.js"></script></body></html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default no-js"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Block | essential-eth - v0.4.2</title><meta name="description" content="Documentation for essential-eth - v0.4.2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">essential-eth - v0.4.2</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">essential-eth - v0.4.2</a></li><li><a href="Block.html">Block</a></li></ul><h1>Interface Block</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Block</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#baseFeePerGas" class="tsd-kind-icon">base<wbr/>Fee<wbr/>Per<wbr/>Gas</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#difficulty" class="tsd-kind-icon">difficulty</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#extraData" class="tsd-kind-icon">extra<wbr/>Data</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#gasLimit" class="tsd-kind-icon">gas<wbr/>Limit</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#gasUsed" class="tsd-kind-icon">gas<wbr/>Used</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#hash" class="tsd-kind-icon">hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#logsBloom" class="tsd-kind-icon">logs<wbr/>Bloom</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#miner" class="tsd-kind-icon">miner</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#mixHash" class="tsd-kind-icon">mix<wbr/>Hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#nonce" class="tsd-kind-icon">nonce</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#number" class="tsd-kind-icon">number</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#parentHash" class="tsd-kind-icon">parent<wbr/>Hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#receiptsRoot" class="tsd-kind-icon">receipts<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#sha3Uncles" class="tsd-kind-icon">sha3<wbr/>Uncles</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#size" class="tsd-kind-icon">size</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#stateRoot" class="tsd-kind-icon">state<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#timestamp" class="tsd-kind-icon">timestamp</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#totalDifficulty" class="tsd-kind-icon">total<wbr/>Difficulty</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#transactions" class="tsd-kind-icon">transactions</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#transactionsRoot" class="tsd-kind-icon">transactions<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#uncles" class="tsd-kind-icon">uncles</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="baseFeePerGas" class="tsd-anchor"></a><h3>base<wbr/>Fee<wbr/>Per<wbr/>Gas</h3><div class="tsd-signature tsd-kind-icon">base<wbr/>Fee<wbr/>Per<wbr/>Gas<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L4">src/types/Block.types.ts:4</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="difficulty" class="tsd-anchor"></a><h3>difficulty</h3><div class="tsd-signature tsd-kind-icon">difficulty<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L5">src/types/Block.types.ts:5</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="extraData" class="tsd-anchor"></a><h3>extra<wbr/>Data</h3><div class="tsd-signature tsd-kind-icon">extra<wbr/>Data<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L6">src/types/Block.types.ts:6</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="gasLimit" class="tsd-anchor"></a><h3>gas<wbr/>Limit</h3><div class="tsd-signature tsd-kind-icon">gas<wbr/>Limit<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L7">src/types/Block.types.ts:7</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="gasUsed" class="tsd-anchor"></a><h3>gas<wbr/>Used</h3><div class="tsd-signature tsd-kind-icon">gas<wbr/>Used<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L8">src/types/Block.types.ts:8</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="hash" class="tsd-anchor"></a><h3>hash</h3><div class="tsd-signature tsd-kind-icon">hash<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L9">src/types/Block.types.ts:9</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="logsBloom" class="tsd-anchor"></a><h3>logs<wbr/>Bloom</h3><div class="tsd-signature tsd-kind-icon">logs<wbr/>Bloom<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L10">src/types/Block.types.ts:10</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="miner" class="tsd-anchor"></a><h3>miner</h3><div class="tsd-signature tsd-kind-icon">miner<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L11">src/types/Block.types.ts:11</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="mixHash" class="tsd-anchor"></a><h3>mix<wbr/>Hash</h3><div class="tsd-signature tsd-kind-icon">mix<wbr/>Hash<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L12">src/types/Block.types.ts:12</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="nonce" class="tsd-anchor"></a><h3>nonce</h3><div class="tsd-signature tsd-kind-icon">nonce<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L13">src/types/Block.types.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="number" class="tsd-anchor"></a><h3>number</h3><div class="tsd-signature tsd-kind-icon">number<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L14">src/types/Block.types.ts:14</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="parentHash" class="tsd-anchor"></a><h3>parent<wbr/>Hash</h3><div class="tsd-signature tsd-kind-icon">parent<wbr/>Hash<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L15">src/types/Block.types.ts:15</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="receiptsRoot" class="tsd-anchor"></a><h3>receipts<wbr/>Root</h3><div class="tsd-signature tsd-kind-icon">receipts<wbr/>Root<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L16">src/types/Block.types.ts:16</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="sha3Uncles" class="tsd-anchor"></a><h3>sha3<wbr/>Uncles</h3><div class="tsd-signature tsd-kind-icon">sha3<wbr/>Uncles<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L17">src/types/Block.types.ts:17</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="size" class="tsd-anchor"></a><h3>size</h3><div class="tsd-signature tsd-kind-icon">size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L18">src/types/Block.types.ts:18</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="stateRoot" class="tsd-anchor"></a><h3>state<wbr/>Root</h3><div class="tsd-signature tsd-kind-icon">state<wbr/>Root<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L19">src/types/Block.types.ts:19</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="timestamp" class="tsd-anchor"></a><h3>timestamp</h3><div class="tsd-signature tsd-kind-icon">timestamp<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L20">src/types/Block.types.ts:20</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="totalDifficulty" class="tsd-anchor"></a><h3>total<wbr/>Difficulty</h3><div class="tsd-signature tsd-kind-icon">total<wbr/>Difficulty<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L21">src/types/Block.types.ts:21</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="transactions" class="tsd-anchor"></a><h3>transactions</h3><div class="tsd-signature tsd-kind-icon">transactions<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><a href="Transaction.html" class="tsd-signature-type" data-tsd-kind="Interface">Transaction</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L22">src/types/Block.types.ts:22</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="transactionsRoot" class="tsd-anchor"></a><h3>transactions<wbr/>Root</h3><div class="tsd-signature tsd-kind-icon">transactions<wbr/>Root<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L23">src/types/Block.types.ts:23</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="uncles" class="tsd-anchor"></a><h3>uncles</h3><div class="tsd-signature tsd-kind-icon">uncles<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Block.types.ts#L24">src/types/Block.types.ts:24</a></li></ul></aside></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface"><a href="Block.html" class="tsd-kind-icon">Block</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#baseFeePerGas" class="tsd-kind-icon">base<wbr/>Fee<wbr/>Per<wbr/>Gas</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#difficulty" class="tsd-kind-icon">difficulty</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#extraData" class="tsd-kind-icon">extra<wbr/>Data</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#gasLimit" class="tsd-kind-icon">gas<wbr/>Limit</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#gasUsed" class="tsd-kind-icon">gas<wbr/>Used</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#hash" class="tsd-kind-icon">hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#logsBloom" class="tsd-kind-icon">logs<wbr/>Bloom</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#miner" class="tsd-kind-icon">miner</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#mixHash" class="tsd-kind-icon">mix<wbr/>Hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#nonce" class="tsd-kind-icon">nonce</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#number" class="tsd-kind-icon">number</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#parentHash" class="tsd-kind-icon">parent<wbr/>Hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#receiptsRoot" class="tsd-kind-icon">receipts<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#sha3Uncles" class="tsd-kind-icon">sha3<wbr/>Uncles</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#size" class="tsd-kind-icon">size</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#stateRoot" class="tsd-kind-icon">state<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#timestamp" class="tsd-kind-icon">timestamp</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#totalDifficulty" class="tsd-kind-icon">total<wbr/>Difficulty</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#transactions" class="tsd-kind-icon">transactions</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#transactionsRoot" class="tsd-kind-icon">transactions<wbr/>Root</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Block.html#uncles" class="tsd-kind-icon">uncles</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default no-js"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Transaction | essential-eth - v0.4.2</title><meta name="description" content="Documentation for essential-eth - v0.4.2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">essential-eth - v0.4.2</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">essential-eth - v0.4.2</a></li><li><a href="Transaction.html">Transaction</a></li></ul><h1>Interface Transaction</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Transaction</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#blockHash" class="tsd-kind-icon">block<wbr/>Hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#blockNumber" class="tsd-kind-icon">block<wbr/>Number</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#from" class="tsd-kind-icon">from</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#gas" class="tsd-kind-icon">gas</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#gasPrice" class="tsd-kind-icon">gas<wbr/>Price</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#hash" class="tsd-kind-icon">hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#input" class="tsd-kind-icon">input</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#nonce" class="tsd-kind-icon">nonce</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#r" class="tsd-kind-icon">r</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#s" class="tsd-kind-icon">s</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#to" class="tsd-kind-icon">to</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#transactionIndex" class="tsd-kind-icon">transaction<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#type" class="tsd-kind-icon">type</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#v" class="tsd-kind-icon">v</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#value" class="tsd-kind-icon">value</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="blockHash" class="tsd-anchor"></a><h3>block<wbr/>Hash</h3><div class="tsd-signature tsd-kind-icon">block<wbr/>Hash<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L2">src/types/Transaction.types.ts:2</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="blockNumber" class="tsd-anchor"></a><h3>block<wbr/>Number</h3><div class="tsd-signature tsd-kind-icon">block<wbr/>Number<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L3">src/types/Transaction.types.ts:3</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="from" class="tsd-anchor"></a><h3>from</h3><div class="tsd-signature tsd-kind-icon">from<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L4">src/types/Transaction.types.ts:4</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="gas" class="tsd-anchor"></a><h3>gas</h3><div class="tsd-signature tsd-kind-icon">gas<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L5">src/types/Transaction.types.ts:5</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="gasPrice" class="tsd-anchor"></a><h3>gas<wbr/>Price</h3><div class="tsd-signature tsd-kind-icon">gas<wbr/>Price<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L6">src/types/Transaction.types.ts:6</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="hash" class="tsd-anchor"></a><h3>hash</h3><div class="tsd-signature tsd-kind-icon">hash<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L7">src/types/Transaction.types.ts:7</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="input" class="tsd-anchor"></a><h3>input</h3><div class="tsd-signature tsd-kind-icon">input<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L8">src/types/Transaction.types.ts:8</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="nonce" class="tsd-anchor"></a><h3>nonce</h3><div class="tsd-signature tsd-kind-icon">nonce<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L9">src/types/Transaction.types.ts:9</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="r" class="tsd-anchor"></a><h3>r</h3><div class="tsd-signature tsd-kind-icon">r<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L10">src/types/Transaction.types.ts:10</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="s" class="tsd-anchor"></a><h3>s</h3><div class="tsd-signature tsd-kind-icon">s<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L11">src/types/Transaction.types.ts:11</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="to" class="tsd-anchor"></a><h3>to</h3><div class="tsd-signature tsd-kind-icon">to<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L12">src/types/Transaction.types.ts:12</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="transactionIndex" class="tsd-anchor"></a><h3>transaction<wbr/>Index</h3><div class="tsd-signature tsd-kind-icon">transaction<wbr/>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L13">src/types/Transaction.types.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="type" class="tsd-anchor"></a><h3>type</h3><div class="tsd-signature tsd-kind-icon">type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L14">src/types/Transaction.types.ts:14</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="v" class="tsd-anchor"></a><h3>v</h3><div class="tsd-signature tsd-kind-icon">v<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L15">src/types/Transaction.types.ts:15</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a name="value" class="tsd-anchor"></a><h3>value</h3><div class="tsd-signature tsd-kind-icon">value<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Transaction.types.ts#L16">src/types/Transaction.types.ts:16</a></li></ul></aside></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface"><a href="Transaction.html" class="tsd-kind-icon">Transaction</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#blockHash" class="tsd-kind-icon">block<wbr/>Hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#blockNumber" class="tsd-kind-icon">block<wbr/>Number</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#from" class="tsd-kind-icon">from</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#gas" class="tsd-kind-icon">gas</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#gasPrice" class="tsd-kind-icon">gas<wbr/>Price</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#hash" class="tsd-kind-icon">hash</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#input" class="tsd-kind-icon">input</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#nonce" class="tsd-kind-icon">nonce</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#r" class="tsd-kind-icon">r</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#s" class="tsd-kind-icon">s</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#to" class="tsd-kind-icon">to</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#transactionIndex" class="tsd-kind-icon">transaction<wbr/>Index</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#type" class="tsd-kind-icon">type</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#v" class="tsd-kind-icon">v</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Transaction.html#value" class="tsd-kind-icon">value</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
@@ -1,34 +0,0 @@
1
- <!DOCTYPE html><html class="default no-js"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>essential-eth - v0.4.2</title><meta name="description" content="Documentation for essential-eth - v0.4.2"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">essential-eth - v0.4.2</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>essential-eth - v0.4.2</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class"><a href="classes/Contract.html" class="tsd-kind-icon">Contract</a></li><li class="tsd-kind-class"><a href="classes/JsonRpcProvider.html" class="tsd-kind-icon">Json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-class"><a href="classes/TinyBig.html" class="tsd-kind-icon">Tiny<wbr/>Big</a></li></ul></section><section class="tsd-index-section "><h3>Interfaces</h3><ul class="tsd-index-list"><li class="tsd-kind-interface"><a href="interfaces/Block.html" class="tsd-kind-icon">Block</a></li><li class="tsd-kind-interface"><a href="interfaces/Transaction.html" class="tsd-kind-icon">Transaction</a></li></ul></section><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias"><a href="modules.html#ContractTypes" class="tsd-kind-icon">Contract<wbr/>Types</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABI" class="tsd-kind-icon">JSONABI</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABIArgument" class="tsd-kind-icon">JSONABIArgument</a></li><li class="tsd-kind-type-alias"><a href="modules.html#Network" class="tsd-kind-icon">Network</a></li></ul></section><section class="tsd-index-section "><h3>Functions</h3><ul class="tsd-index-list"><li class="tsd-kind-function"><a href="modules.html#etherToWei" class="tsd-kind-icon">ether<wbr/>To<wbr/>Wei</a></li><li class="tsd-kind-function"><a href="modules.html#isAddress" class="tsd-kind-icon">is<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#jsonRpcProvider" class="tsd-kind-icon">json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-function"><a href="modules.html#tinyBig" class="tsd-kind-icon">tiny<wbr/>Big</a></li><li class="tsd-kind-function"><a href="modules.html#toChecksumAddress" class="tsd-kind-icon">to<wbr/>Checksum<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#weiToEther" class="tsd-kind-icon">wei<wbr/>To<wbr/>Ether</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias"><a name="ContractTypes" class="tsd-anchor"></a><h3>Contract<wbr/>Types</h3><div class="tsd-signature tsd-kind-icon">Contract<wbr/>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;bool&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes1&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes2&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes3&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes4&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes5&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes6&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes7&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes8&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes9&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes10&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes11&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes12&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes13&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes14&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes15&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes16&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes17&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes18&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes19&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes20&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes21&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes22&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes23&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes24&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes25&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes26&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes27&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes28&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes29&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes30&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes31&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes32&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;bytes32[]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address payable&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address[4]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;address[100]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint256&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint256[100]&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint8&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;uint32&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Contract.types.ts#L1">src/types/Contract.types.ts:1</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a name="JSONABI" class="tsd-anchor"></a><h3>JSONABI</h3><div class="tsd-signature tsd-kind-icon">JSONABI<span class="tsd-signature-symbol">:</span> <a href="modules.html#JSONABIArgument" class="tsd-signature-type" data-tsd-kind="Type alias">JSONABIArgument</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Contract.types.ts#L65">src/types/Contract.types.ts:65</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a name="JSONABIArgument" class="tsd-anchor"></a><h3>JSONABIArgument</h3><div class="tsd-signature tsd-kind-icon">JSONABIArgument<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>anonymous<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol">; </span>gas<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>inputs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>indexed<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>outputs<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>stateMutability<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">&quot;view&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;nonpayable&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;function&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;event&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;constructor&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;error&quot;</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Contract.types.ts#L47">src/types/Contract.types.ts:47</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> anonymous<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">false</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> gas<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>inputs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>indexed<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> name<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> outputs<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>internalType<span class="tsd-signature-symbol">?: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>type<span class="tsd-signature-symbol">: </span><a href="modules.html#ContractTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ContractTypes</a><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> state<wbr/>Mutability<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">&quot;view&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;nonpayable&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;function&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;event&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;constructor&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;error&quot;</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a name="Network" class="tsd-anchor"></a><h3>Network</h3><div class="tsd-signature tsd-kind-icon">Network<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>chainId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>ensAddress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">; </span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/types/Network.types.ts#L4">src/types/Network.types.ts:4</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
2
- <p>A trimmed version of <a href="https://chainid.network/chains.json">https://chainid.network/chains.json</a></p>
3
- </div></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>chain<wbr/>Id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>ens<wbr/>Address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span></h5></li><li class="tsd-parameter"><h5>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Functions</h2><section class="tsd-panel tsd-member tsd-kind-function"><a name="etherToWei" class="tsd-anchor"></a><h3>ether<wbr/>To<wbr/>Wei</h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">ether<wbr/>To<wbr/>Wei<span class="tsd-signature-symbol">(</span>etherQuantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/utils/ether-to-wei.ts#L26">src/utils/ether-to-wei.ts:26</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
4
- <p>Similar to <a href="https://docs.ethers.io/v4/api-utils.html#ether-strings-and-wei">&quot;parseEther&quot; in ethers.js</a></p>
5
- </div><div><p>Similar to <a href="https://web3js.readthedocs.io/en/v1.2.11/web3-utils.html?highlight=towei#towei">&quot;toWei&quot; in web3</a></p>
6
- </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-3">// &#39;1000000000000000000000&#39;</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-3">// &#39;1000000000000000000000&#39;</span>
7
- </code></pre>
8
- </dd><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span>
9
- </code></pre>
10
- </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>etherQuantity: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a name="isAddress" class="tsd-anchor"></a><h3>is<wbr/>Address</h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">is<wbr/>Address<span class="tsd-signature-symbol">(</span>address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/utils/is-address.ts#L8">src/utils/is-address.ts:8</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
11
- <p>Returns a boolean as to whether the input is a valid address.
12
- Does NOT support ICAP addresses</p>
13
- </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>address: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a name="jsonRpcProvider" class="tsd-anchor"></a><h3>json<wbr/>Rpc<wbr/>Provider</h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">json<wbr/>Rpc<wbr/>Provider<span class="tsd-signature-symbol">(</span>rpcUrl<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/providers/JsonRpcProvider.ts#L67">src/providers/JsonRpcProvider.ts:67</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
14
- <p>Helper function to avoid &quot;new&quot;</p>
15
- </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> rpcUrl: <span class="tsd-signature-type">string</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/JsonRpcProvider.html" class="tsd-signature-type" data-tsd-kind="Class">JsonRpcProvider</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a name="tinyBig" class="tsd-anchor"></a><h3>tiny<wbr/>Big</h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">tiny<wbr/>Big<span class="tsd-signature-symbol">(</span>value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/shared/tiny-big/tiny-big.ts#L27">src/shared/tiny-big/tiny-big.ts:27</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
16
- <p>Helper factory function so that you don&#39;t have to type &quot;new&quot; when instantiating a new TinyBig</p>
17
- </div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>value: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a name="toChecksumAddress" class="tsd-anchor"></a><h3>to<wbr/>Checksum<wbr/>Address</h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Checksum<wbr/>Address<span class="tsd-signature-symbol">(</span>address<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/utils/to-checksum-address.ts#L20">src/utils/to-checksum-address.ts:20</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
18
- <p>Returns an Ethereum address in proper mixed-case checksum.
19
- Does NOT support ICAP</p>
20
- </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">toChecksumAddress</span><span class="hl-1">(</span><span class="hl-2">&#39;0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359&#39;</span><span class="hl-1">);</span><br/><span class="hl-3">// &#39;0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359&#39;</span>
21
- </code></pre>
22
- <p>Similar to <a href="https://docs.ethers.io/v4/api-utils.html#utils-getaddress">&quot;getAddress&quot; in ethers.js</a></p>
23
- <p>Similar to <a href="https://web3js.readthedocs.io/en/v1.2.11/web3-utils.html#tochecksumaddress">&quot;toChecksumAddress&quot; in web3</a></p>
24
- </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>address: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
25
- <p>An Ethereum address. Mixed, lower, and uppercase are all valid</p>
26
- </div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a name="weiToEther" class="tsd-anchor"></a><h3>wei<wbr/>To<wbr/>Ether</h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">wei<wbr/>To<wbr/>Ether<span class="tsd-signature-symbol">(</span>weiQuantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/dawsbot/essential-eth/blob/72a701c/src/utils/wei-to-ether.ts#L29">src/utils/wei-to-ether.ts:29</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
27
- <p>Convert from Ether to Wei</p>
28
- </div><div><p>Similar to <a href="https://docs.ethers.io/v4/api-utils.html#ether-strings-and-wei">&quot;formatEther&quot; in ethers.js</a></p>
29
- <p>Similar to <a href="https://web3js.readthedocs.io/en/v1.2.11/web3-utils.html#fromwei">&quot;fromWei&quot; in web3</a></p>
30
- </div><dl class="tsd-comment-tags"><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-3">// &#39;1000000000000000000000&#39;</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toString</span><span class="hl-1">()</span><br/><span class="hl-2">&#39;1000000000000000000000&#39;</span>
31
- </code></pre>
32
- </dd><dt>example</dt><dd><pre><code class="language-javascript"><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-2">&#39;1000&#39;</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span><br/><span class="hl-0">etherToWei</span><span class="hl-1">(</span><span class="hl-4">1000</span><span class="hl-1">).</span><span class="hl-0">toNumber</span><span class="hl-1">()</span><br/><span class="hl-3">// 1000000000000000000000</span>
33
- </code></pre>
34
- </dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>weiQuantity: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Big</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/TinyBig.html" class="tsd-signature-type" data-tsd-kind="Class">TinyBig</a></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-class"><a href="classes/Contract.html" class="tsd-kind-icon">Contract</a></li><li class="tsd-kind-class"><a href="classes/JsonRpcProvider.html" class="tsd-kind-icon">Json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-class"><a href="classes/TinyBig.html" class="tsd-kind-icon">Tiny<wbr/>Big</a></li><li class="tsd-kind-interface"><a href="interfaces/Block.html" class="tsd-kind-icon">Block</a></li><li class="tsd-kind-interface"><a href="interfaces/Transaction.html" class="tsd-kind-icon">Transaction</a></li><li class="tsd-kind-type-alias"><a href="modules.html#ContractTypes" class="tsd-kind-icon">Contract<wbr/>Types</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABI" class="tsd-kind-icon">JSONABI</a></li><li class="tsd-kind-type-alias"><a href="modules.html#JSONABIArgument" class="tsd-kind-icon">JSONABIArgument</a></li><li class="tsd-kind-type-alias"><a href="modules.html#Network" class="tsd-kind-icon">Network</a></li><li class="tsd-kind-function"><a href="modules.html#etherToWei" class="tsd-kind-icon">ether<wbr/>To<wbr/>Wei</a></li><li class="tsd-kind-function"><a href="modules.html#isAddress" class="tsd-kind-icon">is<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#jsonRpcProvider" class="tsd-kind-icon">json<wbr/>Rpc<wbr/>Provider</a></li><li class="tsd-kind-function"><a href="modules.html#tinyBig" class="tsd-kind-icon">tiny<wbr/>Big</a></li><li class="tsd-kind-function"><a href="modules.html#toChecksumAddress" class="tsd-kind-icon">to<wbr/>Checksum<wbr/>Address</a></li><li class="tsd-kind-function"><a href="modules.html#weiToEther" class="tsd-kind-icon">wei<wbr/>To<wbr/>Ether</a></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="assets/main.js"></script></body></html>
@@ -1 +0,0 @@
1
- TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.