You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
160
156
* The transaction will not be added to the blockchain.
161
-
* Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance.
157
+
* Note that the estimate may be significantly more than the amount of gas actually used by the transaction,
158
+
* for a variety of reasons including EVM mechanics and node performance.
162
159
* Currently only "latest" block number is supported.
163
160
* @param params An array of two parameters:
164
161
* 1. The transaction object
@@ -244,7 +241,7 @@ export class Eth {
244
241
* Returns information about a block by block number.
245
242
* @param params An array of two parameters:
246
243
* 1. integer of a block number
247
-
* 2. boolean determining whether it returns full transaction objects or just the transaction hashes
244
+
* 2. boolean - if true returns the full transaction objects, if false only the hashes of the transactions.
248
245
*/
249
246
asyncgetBlockByNumber(params: [string,boolean]){
250
247
const[blockNumber,includeTransactions]=params
@@ -261,7 +258,7 @@ export class Eth {
261
258
* Returns information about a block by hash.
262
259
* @param params An array of two parameters:
263
260
* 1. a block hash
264
-
* 2. boolean to determine returning full transaction objects or just transaction hashes
261
+
* 2. boolean - if true returns the full transaction objects, if false only the hashes of the transactions.
265
262
*/
266
263
asyncgetBlockByHash(params: [string,boolean]){
267
264
const[blockHash,includeTransactions]=params
@@ -315,7 +312,7 @@ export class Eth {
315
312
/**
316
313
* Returns the value from a storage position at a given address.
317
314
* Currently only "latest" block number is supported.
318
-
* @param {Array<string>} [params] An array of three parameters:
315
+
* @param params An array of three parameters:
319
316
* 1. address of the storage
320
317
* 2. integer of the position in the storage
321
318
* 3. integer block number, or the string "latest", "earliest" or "pending"
@@ -373,7 +370,7 @@ export class Eth {
373
370
374
371
/**
375
372
* Returns the current ethereum protocol version as a hex-encoded string
0 commit comments