by default it's latest
some data you want put into these fucntions
shardID
is binding with the endpoint, IGNORE it!
send a transaction and check whether it exists
Object
- The transaction object to send:
The callbalck will return the 32 bytes transaction hash
Executes a message call or transaction and returns the amount of the gas used.
the data will send to that address
shardID
is binding with the endpoint, IGNORE it!
the address will send to
promise
- the used gas for the simulated call/transaction.
Returns the current gas price oracle. The gas price is determined by the last few blocks median gas price.
shardID
is binding with the endpoint, IGNORE it!
promise
- Number string of the current gas price in wei.
Get the balance of an address at a given block.
the address to get the balance of.
(option) If you pass this parameter it will not use the default block set with DefaultBlockParams.latest
(option) If you pass this parameter it will not use the default block set with this.messenger.currentShard
The current balance for the given address in wei.
Returns a block matching the block Hash.
the block hash
By default it is true
, Features in development, IGNORE it!
shardID
is binding with the endpoint, IGNORE it!
Promise
- The block object
Returns a block matching the block Number.
the block number
By default it is true
, Features in development, IGNORE it!
shardID
is binding with the endpoint, IGNORE it!
Promise
- The block object
Returns the current block number.
shardID
is binding with the endpoint, IGNORE it!
Promise
- The number of the most recent block.
Returns the number of transaction in a given block.
the block number Hash
shardID
is binding with the endpoint, IGNORE it!
Promise
- The number of transactions in the given block.
Returns the number of transaction in a given block.
the block number Hash
shardID
is binding with the endpoint, IGNORE it!
Promise
- The number of transactions in the given block.
Returns blocks in range [from; to]
starting block number in 0x format
shardID
is binding with the endpoint, IGNORE it!
ending block number in 0x format
optional args struct in json format (should be used just with { })
Promise
- An array of block objects
Get the code at a specific address.
The address to get the code from (eg:smart contract)
(OPTIONAL) If you pass this parameter it will not use the default block
shardID
is binding with the endpoint, IGNORE it!
Promise
- The data at given address
Get transaction recepit from cross shard transaction
the shard id of receiver's address
The transaction hash
Promise
- A transaction receipt object, or null
when no receipt was found
Get the protocal version.
shardID
is binding with the endpoint, IGNORE it!
Promise
- the current protocol version.
Get the sharding structure of current network
Promise
- The sharding structure of current network.
Get the storage at a specific position of an address
The address to get the storage from
by default it's latest
.
The index position of the storage
shardID
is binding with the endpoint, IGNORE it!
Returns a transaction based on a block hash and the transactions index position.
the block number Hash
The transactions index position. Hex Number
shardID
is binding with the endpoint, IGNORE it!
Promise
- A transaction object
Returns a transaction based on a block number and the transactions index position.
the block number
The transactions index position. Hex Number
shardID
is binding with the endpoint, IGNORE it!
Promise
- A transaction object
Returns a transaction matching the given transaction hash.
shardID
is binding with the endpoint, IGNORE it!
The transaction hash
Promise
- A transaction object
Get the numbers of transactions sent from this address.
The address to get the numbers of transactions from
by default it's latest
shardID
is binding with the endpoint, IGNORE it!
Promise
- The number of transactions sent from the given address.
Returns the receipt of a transaction by transaction hash.
shardID
is binding with the endpoint, IGNORE it!
The transaction hash
Promise
- A transaction receipt object, or null
when no receipt was found
shardID
is binding with the endpoint, IGNORE it!
Get the number of peers connected to.
shardID
is binding with the endpoint, IGNORE it!
Promise
- number of peer count
Get the version of net.
shardID
is binding with the endpoint, IGNORE it!
Promise
- the current version.
shardID
is binding with the endpoint, IGNORE it!
Return new pending Transactions
shardID
is binding with the endpoint, IGNORE it!
Sends a raw transaction to the network.
Object
- The transaction object to send:
The callbalck will return the 32 bytes transaction hash
Sends a signed transaction to the network.
Object
- The transaction object to send:
The callbalck will return the 32 bytes transaction hash
shardID
is binding with the endpoint, IGNORE it!
Generated using TypeDoc
Executes a message call transaction, which is directly executed in the VM of the node, but never mined into the blockchain.
hmy.blockchain.call({ to: "0x08AE1abFE01aEA60a47663bCe0794eCCD5763c19", }).then((value) => { console.log(value); });