meterify.eth
module inherits from web.eth
, there are some feature differences between the two. The following is a list of extended features in meterify.eth
Promise<string>
false
.startingBlock
Number
currentBlock
Number
highestBlock
Number
knownStates
Number
pulledStates
Number
Promise<string>
Promise<boolean>
true
if the node is mining, otherwise false
.Promise<number>
Promise<string>
wei.
meterify.eth.accounts.create()
and you will get them returned here.Promise<Array>
Promise<number>
String
Number
or String
meterify.eth.defaultBlock
.Function
Promise<string>
wei
.String
Number
or String
meterify.eth.defaultBlock
.Function
Promise<string>
wei <what-is-wei>
.String
Number
Number
or String
meterify.eth.defaultBlock
.Function
Promise<string>
String
Number
or String
meterify.eth.defaultBlock
.Function
Promise<string>
address
.String
or Number
"genesis"
, "latest"
or "pending"
as in the default block parameter
.Boolean
false
) If true
, the returned block will contain all transactions as objects, if false
it will only contains the transaction hashes.Function
Promise<object>
number
Number
null
when its pending block.hash
32 BytesString
null
when its pending block.parentHash
32 BytesString
nonce
8 BytesString
null
when its pending block.sha3Uncles
32 BytesString
logsBloom
256 BytesString
null
when its pending block.transactionsRoot
32 BytesString
stateRoot
32 BytesString
receiptsRoot
32 BytesString
miner
String
difficulty
String
totalDifficulty
String
extraData
String
size
Number
gasLimit
Number
gasUsed
Number
timestamp
Number
or String
transactions
Array
returnTransactionObjects
parameter.uncles
Array
String
or Number
"genesis"
, "latest"
or "pending"
as in the default block parameter
.Function
Promise<number>
String
or Number
"genesis"
, "latest"
or "pending"
as in the default block parameter
.Number
Function
Promise<object>
String
Function
Promise<object>
transactionHash
:hash
32 BytesString
nonce
Number
blockHash
32 BytesString
null
when its pending.blockNumber
Number
null
when its pending.transactionIndex
Number
null
when its pending.from
String
to
String
null
when its a contract creation transaction.value
String
wei
.gasPrice
String
wei
.gas
Number
input
String
Function
Promise<object[]>
hash
32 BytesString
nonce
Number
blockHash
32 BytesString
null
when its pending.blockNumber
Number
null
when its pending.transactionIndex
Number
null
when its pending.from
String
to
String
null
when its a contract creation transaction.value
String
wei
.gasPrice
String
wei
.gas
Number
input
String
String
"genesis"
, "latest"
or "pending"
as in the default block parameter
.Number
Function
Promise<object>
null
.String
Function
Promise
returns Object
null
when no receipt was found:status
Boolean
TRUE
if the transaction was successful, FALSE
, if the EVM reverted the transaction.blockHash
32 BytesString
blockNumber
Number
transactionHash
32 BytesString
transactionIndex
Number
from
String
to
String
null
when its a contract creation transaction.contractAddress
String
null
.cumulativeGasUsed
Number
gasUsed
Number
logs
Array
String
Number
or String
meterify.eth.defaultBlock
.Function
Promise<number>
Object
Function
transactionObject
from
String
or Number
meterify.eth.defaultAccount
property, if not specified. Or an address or index of a local wallet in meterify.eth.accounts.wallet
.to
String
value
Number
, String
, BN
, or BigNumber
wei
, also the endowment if it's a contract-creation transaction.gas
Number
gasPrice
Number
, String
, BN
, or BigNumber
data
String
ABI byte string <http://solidity.readthedocs.io/en/latest/abi-spec.html>
_ containing the data of the function call on a contract, or in the case of a contract-creation transaction the initialization code.nonce
Number
from
property can also be an address or index from the meterify.eth.accounts.wallet
. It will then sign locally using the private key of that account, and send the transaction via meterify.eth.sendSignedTransaction()
.PromiEvent
receipt
is available. Additionally the following events are available:"transactionHash"
String
"receipt"
Object
"confirmation"
Number
, Object
"error"
Error
meterify.eth.accounts.signTransaction
.String
Function
PromiEvent