Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
hmy_getStakingTransactionByBlockNumberAndIndex
Get staking transaction at an index from a given block, specified by number.
String
- The block's index in the chain.
String
- The staking transactions index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
timestamp
- Number
: transaction timestamp
from
- String
: Address of the sender.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
v
- String
: signature V
r
- String
: signature R
s
-
: signature SString
type
- String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")
msg
- StakingMsg:
CreateValidator:
validatorAddress
- String:
validator address
name
- String:
validator name
commissionRate
- Number
: validator commission rate
maxCommissionRate
- Number
: validator commission rate
maxChangeRate
- Number
: validator max commission rate change
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
amount
- Number
: stake amount for validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeys
- []String
: validator bls pub keys
EditValidator:
validatorAddress
- String:
validator address
name
- String
: validator name
commissionRate
- Number
: validator commission rate
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeyToAdd
- String
: validator bls pub key to add
slotPubKeyToRemove
- String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
- String
: address to send rewards
Delegate:
delegatorAddress
- String:
delegation delegator address
validatorAddress
- String:
delegation validator address
amount
- Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
- String
: undelegation delegator address
validatorAddress
- String
: undelegation validator address
amount
- Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
Number
- The block's index in the chain.
Number
- The transactions index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
timestamp
- Number
: transaction timestamp
from
- String
: Address of the sender.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
v
- String
: signature V
r
- String
: signature R
s
-
: signature SString
type
- String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")
msg
- StakingMsg:
CreateValidator:
validatorAddress
- String:
validator address
name
- String:
validator name
commissionRate
- Number
: validator commission rate
maxCommissionRate
- Number
: validator commission rate
maxChangeRate
- Number
: validator max commission rate change
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
amount
- Number
: stake amount for validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeys
- []String
: validator bls pub keys
EditValidator:
validatorAddress
- String:
validator address
name
- String
: validator name
commissionRate
- Number
: validator commission rate
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeyToAdd
- String
: validator bls pub key to add
slotPubKeyToRemove
- String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
- String
: address to send rewards
Delegate:
delegatorAddress
- String:
delegation delegator address
validatorAddress
- String:
delegation validator address
amount
- Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
- String
: undelegation delegator address
validatorAddress
- String
: undelegation validator address
amount
- Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
hmy_pendingTransactions
Returns list of pending transactions object. See hmy_getTransactionByHash for result format.
Returns list of pending transactions object. See hmy_getTransactionByHash for result format.
SendRawStakingTransaction
A staking transaction is like a plain sharded transaction, hmy_sendRawTransaction, but with a single field that is not known ahead of time. This field is the staking message itself, which in the harmony go code base, we refer to as StakeMsg
The input is a single RLP encoded version of a StakingTransaction
String
- Transaction encoded in bytes.
String
- Raw transaction's hash.
Sample Curl Request
Sample Curl Response
hmy_getPendingCXReceipts
Array of pending cx receipts in tx pool. See hmy_getCXReceiptByHash for format
See hmy_getCXReceiptByHash response
Array of pending cx receipts in tx pool. See hmy_getCXReceiptByHash for format
See hmy_getCXReceiptByHash response
hmy_getStakingTransactionByHash
Get staking transaction by its hash.
String
- The staking transaction hash.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
timestamp
- Number
: transaction timestamp
from
- String
: Address of the sender.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
v
- String
: signature V
r
- String
: signature R
s
-
: signature SString
type
- String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")
msg
- StakingMsg:
CreateValidator:
validatorAddress
- String:
validator address
name
- String:
validator name
commissionRate
- Number
: validator commission rate
maxCommissionRate
- Number
: validator commission rate
maxChangeRate
- Number
: validator max commission rate change
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
amount
- Number
: stake amount for validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeys
- []String
: validator bls pub keys
EditValidator:
validatorAddress
- String:
validator address
name
- String
: validator name
commissionRate
- Number
: validator commission rate
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeyToAdd
- String
: validator bls pub key to add
slotPubKeyToRemove
- String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
- String
: address to send rewards
Delegate:
delegatorAddress
- String:
delegation delegator address
validatorAddress
- String:
delegation validator address
amount
- Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
- String
: undelegation delegator address
validatorAddress
- String
: undelegation validator address
amount
- Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
String
- The staking transaction hash.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
timestamp
- Number
: transaction timestamp
from
- String
: Address of the sender.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
v
- String
: signature V
r
- String
: signature R
s
-
: signature SString
type
- String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")
msg
- StakingMsg:
CreateValidator:
validatorAddress
- String:
validator address
name
- String:
validator name
commissionRate
- Number
: validator commission rate
maxCommissionRate
- Number
: validator commission rate
maxChangeRate
- Number
: validator max commission rate change
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
amount
- Number
: stake amount for validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeys
- []String
: validator bls pub keys
EditValidator:
validatorAddress
- String:
validator address
name
- String
: validator name
commissionRate
- Number
: validator commission rate
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeyToAdd
- String
: validator bls pub key to add
slotPubKeyToRemove
- String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
- String
: address to send rewards
Delegate:
delegatorAddress
- String:
delegation delegator address
validatorAddress
- String:
delegation validator address
amount
- Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
- String
: undelegation delegator address
validatorAddress
- String
: undelegation validator address
amount
- Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
hmy_getCXReceiptByHash
String
- transactions hash for cx receipt
blockHash
- String
- block hash
blockNumber
- Number
- block number
hash
- String
- transaction hash
from
- String
- from one address
to
- String
- to one address
shardID
- Number
- shard id from where transaction sent
toShardID
- Number
- shard id to where transaction sent
value
- Number
- transaction sent value
String
- transactions hash for cx receipt
blockHash
- String
- block hash
blockNumber
- Number
- block number
hash
- String
- transaction hash
from
- String
- from one address
to
- String
- to one address
shardID
- Number
- shard id from where transaction sent
toShardID
- Number
- shard id to where transaction sent
value
- Number
- transaction sent value
hmy_getStakingTransactionByBlockHashAndIndex
Get staking transaction at an index from a given block, specified by block hash.
String
- The block hash.
Number
- The staking transaction index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
timestamp
- Number
: transaction timestamp
from
- String
: Address of the sender.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
v
- String
: signature V
r
- String
: signature R
s
-
: signature SString
type
- String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")
msg
- StakingMsg:
CreateValidator:
validatorAddress
- String:
validator address
name
- String:
validator name
commissionRate
- Number
: validator commission rate
maxCommissionRate
- Number
: validator commission rate
maxChangeRate
- Number
: validator max commission rate change
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
amount
- Number
: stake amount for validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeys
- []String
: validator bls pub keys
EditValidator:
validatorAddress
- String:
validator address
name
- String
: validator name
commissionRate
- Number
: validator commission rate
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeyToAdd
- String
: validator bls pub key to add
slotPubKeyToRemove
- String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
- String
: address to send rewards
Delegate:
delegatorAddress
- String:
delegation delegator address
validatorAddress
- String:
delegation validator address
amount
- Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
- String
: undelegation delegator address
validatorAddress
- String
: undelegation validator address
amount
- Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
String
- The block hash.
Number
- The staking transaction index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
timestamp
- Number
: transaction timestamp
from
- String
: Address of the sender.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
v
- String
: signature V
r
- String
: signature R
s
-
: signature SString
type
- String
: staking transaction type ("CreateValidator", "EditValidator", "CollectRewards", "Undelegate", "Delegate")
msg
- StakingMsg:
CreateValidator:
validatorAddress
- String:
validator address
name
- String:
validator name
commissionRate
- Number
: validator commission rate
maxCommissionRate
- Number
: validator commission rate
maxChangeRate
- Number
: validator max commission rate change
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
amount
- Number
: stake amount for validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeys
- []String
: validator bls pub keys
EditValidator:
validatorAddress
- String:
validator address
name
- String
: validator name
commissionRate
- Number
: validator commission rate
minSelfDelegation
- Number
: min how much validator self delegates
maxTotalDelegation
- Number
: max total delegation to validator
website
- String
: validator website
identity
- String
: validator kyc identity
securityContact
- String
: validator security contact
details
- String
: additional validator info
slotPubKeyToAdd
- String
: validator bls pub key to add
slotPubKeyToRemove
- String
: validator bls pub key to remove
CollectRewards:
delegatorAddress
- String
: address to send rewards
Delegate:
delegatorAddress
- String:
delegation delegator address
validatorAddress
- String:
delegation validator address
amount
- Number
: big.Int amount for delegation to validator
Undelegate:
delegatorAddress
- String
: undelegation delegator address
validatorAddress
- String
: undelegation validator address
amount
- Number
: big.Int amount for undelegation to delegator
Sample Curl Request
Sample Curl Response
GetBlockTransactionCount
Get the number of transactions in a block by the block's index in the chain.
Number
- The block number.
Number
- The number of transactions in the given block.
Sample Curl Request
Sample Curl Response
Number
- The block number.
Number
- The number of transactions in the given block.
Sample Curl Request
Sample Curl Response
GetTransactionReceipt
Get transaction receipt from transaction hash.
String
- The transaction hash.
blockHash
32 Bytes - String
: Hash of the block where this transaction was in.
blockNumber
- Number
: Block number where this transaction was in.
transactionHash
32 Bytes - String
: Hash of the transaction.
transactionIndex
- Number
: Integer of the transactions index position in the block.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
contractAddress
- String
: The contract address created, if the transaction was a contract creation, otherwise null
.
cumulativeGasUsed
- Number
: The total amount of gas used when this transaction was executed in the block.
gasUsed
- Number
: The amount of gas used by this specific transaction alone.
logs
- Array
: Array of log objects, which this transaction generated.
Sample Curl Request
Sample Curl Response
String
- The transaction hash.
blockHash
32 Bytes - String
: Hash of the block where this transaction was in.
blockNumber
- Number
: Block number where this transaction was in.
transactionHash
32 Bytes - String
: Hash of the transaction.
transactionIndex
- Number
: Integer of the transactions index position in the block.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
contractAddress
- String
: The contract address created, if the transaction was a contract creation, otherwise null
.
cumulativeGasUsed
- Number
: The total amount of gas used when this transaction was executed in the block.
gasUsed
- Number
: The amount of gas used by this specific transaction alone.
logs
- Array
: Array of log objects, which this transaction generated.
Sample Curl Request
Sample Curl Response
GetTransaction
Get a transaction by its hash.
String
- The transaction hash.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Sample Curl Request
Sample Curl Response
String
- The transaction hash.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
value
- Number
: Value transferred in ATTO.
gasPrice
- Number
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Sample Curl Request
Sample Curl Response
hmy_getTransactionsHistory
hmy_getTransactionsHistory get transactions history for an address
String
- one address ("one1...")
txHistoryArgs
- json args
txType
- String
: optional, Received or Sent, shows all transactions by default
fullTx
- Bool
: optional, shows full transaction or just its hash, default is false
pageSize
- Number
: optional, pagination page size, how much tx to show in single page, default is 100
pageIndex
- Number
: optional, pagination which page to show, default is 0
txType
- String
: optional, "ALL", "RECEIVED", "SENT", default is "ALL"
order
- String
: optional, "ASC", "DESC", default is "ASC", order by timestamp
Returns
Array
- either returns list of transactions
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when it's pending.
blockNumber
- Number
: Block number where this transaction was in. null
when it's pending.
transactionIndex
- Number
: Integer of the transaction's index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Array
of String
- or list of transactions hashes
Sample Curl Request 0
Sample Curl Response 0
Sample Curl Request 1
Sample Curl Response 1
Returns
Array
- either returns list of transactions
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when it's pending.
blockNumber
- Number
: Block number where this transaction was in. null
when it's pending.
transactionIndex
- Number
: Integer of the transaction's index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver.
value
- Number
: Value transferred in ATTO.
gasPrice
- Number
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Array
of String
- or list of transactions hashes
Sample Curl Request 0
Sample Curl Response 0
Sample Curl Request 1
Sample Curl Response 1
GetBlockTransactionCount
Get the number of transactions in a block by the block's hash.
String
- The block hash.
Number
- The number of transactions in the given block.
Sample Curl Request
Sample Curl Response
String
- The block hash.
Number
- The number of transactions in the given block.
Sample Curl Request
Sample Curl Response
GetTransaction
Get transaction at an index from a given block, specified by number.
String
- The block's index in the chain.
String
- The transactions index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Sample Curl Request
Sample Curl Response
Number
- The block's index in the chain.
Number
- The transactions index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
value
- Number
: Value transferred in ATTO.
gasPrice
- Number
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Sample Curl Request
Sample Curl Response
GetTransactionByBlockHashAndIndex
Get transaction at an index from a given block, specified by block hash.
String
- The block hash.
Number
- The transactions index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
value
- String
: Value transferred in ATTO.
gasPrice
- String
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Sample Curl Request
Sample Curl Response
String
- The block hash.
Number
- The transactions index position.
hash
- String
: Hash of the transaction.
nonce
- Number
: The number of transactions made by the sender prior to this one.
blockHash
- String
: Hash of the block where this transaction was in. null
when its pending.
blockNumber
- Number
: Block number where this transaction was in. null
when its pending.
transactionIndex
- Number
: Integer of the transactions index position in the block. null
when its pending.
from
- String
: Address of the sender.
to
- String
: Address of the receiver. null
when its a contract creation transaction.
value
- Number
: Value transferred in ATTO.
gasPrice
- number
: Gas price provided by the sender.
gas
- Number
: Gas provided by the sender.
input
- String
: The data sent along with the transaction.
Sample Curl Request
Sample Curl Response
GetBlockByHash
Get block by its hash.
Parameters
String
- The block hash.
Boolean
- If true
, the returned block will contain all transactions in the block.
number
- Number
: The block number. null
when its pending block.
hash
32 Bytes - String
: Hash of the block. null
when its pending block.
parentHash
32 Bytes - String
: Hash of the parent block.
nonce
8 Bytes - String
: Hash of the generated proof-of-work. null
when its pending block.
logsBloom
256 Bytes - String
: The bloom filter for the logs of the block. null
when its pending block.
transactionsRoot
32 Bytes - String
: The root of the transaction trie of the block
stateRoot
32 Bytes - String
: The root of the final state trie of the block.
miner
- String
: The address of the beneficiary to whom the mining rewards were given.
difficulty
- String
: Integer of the difficulty for this block.
extraData
- String
: The “extra data” field of this block.
size
- Number
: Integer the size of this block in bytes.
gasLimit
- Number
: The maximum gas allowed in this block.
gasUsed
- Number
: The total used gas by all transactions in this block.
timestamp
- Number
: The unix timestamp for when the block was collated.
stakingTransactions
- Array
: Array of staking transactions object; are present by default
transactions
- Array
: Array of transaction objects; absent if second parameter is false
.
uncles
- Array
: Array of uncle hashes.
Sample Curl Request
Sample Curl Response
Parameters
String
- The block hash.
blockArgs
- optional args struct in json format (should be used just with { })
fullTx
- Bool
: To show full tx or not
withSigners
- Bool
: Include block signes in blocks or not
inclStaking
- Bool
: To show staking txs or not
number
- Number
: The block number. null
when its pending block.
hash
32 Bytes - String
: Hash of the block. null
when its pending block.
parentHash
32 Bytes - String
: Hash of the parent block.
nonce
8 Bytes - String
: Hash of the generated proof-of-work. null
when its pending block.
logsBloom
256 Bytes - String
: The bloom filter for the logs of the block. null
when its pending block.
transactionsRoot
32 Bytes - String
: The root of the transaction trie of the block
stateRoot
32 Bytes - String
: The root of the final state trie of the block.
miner
- String
: The address of the beneficiary to whom the mining rewards were given.
difficulty
- String
: Integer of the difficulty for this block.
extraData
- String
: The “extra data” field of this block.
size
- Number
: Integer the size of this block in bytes.
gasLimit
- Number
: The maximum gas allowed in this block.
gasUsed
- Number
: The total used gas by all transactions in this block.
timestamp
- Number
: The unix timestamp for when the block was collated.
stakingTransactions
- Array
: Array of staking transactions object; absent if inclStaking is false, are present by default
transactions
- Array
: Array of transaction objects; absent if second parameter is false
.
uncles
- Array
: Array of uncle hashes.
Sample Curl Request
Sample Curl Response
GetBlockByNumber
Get block by its index in the blockchain.
Parameters
String
- The block number.
Boolean
- If true
, the returned block will contain all transactions in the block.
number
- Number
: The block number. null
when its pending block.
hash
32 Bytes - String
: Hash of the block. null
when its pending block.
parentHash
32 Bytes - String
: Hash of the parent block.
nonce
8 Bytes - String
: Hash of the generated proof-of-work. null
when its pending block.
logsBloom
256 Bytes - String
: The bloom filter for the logs of the block. null
when its pending block.
transactionsRoot
32 Bytes - String
: The root of the transaction trie of the block
stateRoot
32 Bytes - String
: The root of the final state trie of the block.
miner
- String
: The address of the beneficiary to whom the mining rewards were given.
difficulty
- String
: Integer of the difficulty for this block.
extraData
- String
: The “extra data” field of this block.
size
- Number
: Integer the size of this block in bytes.
gasLimit
- Number
: The maximum gas allowed in this block.
gasUsed
- Number
: The total used gas by all transactions in this block.
timestamp
- Number
: The unix timestamp for when the block was collated.
stakingTransactions
- Array
: Array of staking transactions object; are present by default
transactions
- Array
: Array of transaction objects; absent if second parameter is false
.
uncles
- Array
: Array of uncle hashes.
Sample Curl Request
Sample Curl Response
Parameters
Number
- The block number.
blockArgs
- optional args struct in json format (should be used just with { })
fullTx
- Bool
: To show full tx or not
withSigners
- Bool
: Include block signes in blocks or not
inclStaking
- Bool
: To show staking txs or not
number
- Number
: The block number. null
when its pending block.
hash
32 Bytes - String
: Hash of the block. null
when its pending block.
parentHash
32 Bytes - String
: Hash of the parent block.
nonce
8 Bytes - String
: Hash of the generated proof-of-work. null
when its pending block.
logsBloom
256 Bytes - String
: The bloom filter for the logs of the block. null
when its pending block.
transactionsRoot
32 Bytes - String
: The root of the transaction trie of the block
stateRoot
32 Bytes - String
: The root of the final state trie of the block.
miner
- String
: The address of the beneficiary to whom the mining rewards were given.
difficulty
- String
: Integer of the difficulty for this block.
extraData
- String
: The “extra data” field of this block.
size
- Number
: Integer the size of this block in bytes.
gasLimit
- Number
: The maximum gas allowed in this block.
gasUsed
- Number
: The total used gas by all transactions in this block.
timestamp
- Number
: The unix timestamp for when the block was collated.
stakingTransactions
- Array
: Array of staking transactions object; absent if inclStaking is false, are present by default
transactions
- Array
: Array of transaction objects; absent if second parameter is false
.
uncles
- Array
: Array of uncle hashes.
Sample Curl Request
Sample Curl Response
hmy_getBlocks returns blocks in range [from; to]
Parameters
String
- starting block number in 0x format
String
- ending block number in 0x format
blockArgs
- optional args struct in json format (should be used just with { })
fullTx
- Bool
: To show full tx or not
withSigners
- Bool
: Include block signes in blocks or not
Returns
Array
: returns blocks list in json format
number
- Number
: The block number. null
when its pending block.
hash
32 Bytes - String
: Hash of the block. null
when its pending block.
parentHash
32 Bytes - String
: Hash of the parent block.
nonce
8 Bytes - String
: Hash of the generated proof-of-work.null
when its pending block.
logsBloom
256 Bytes - String
: The bloom filter for the logs of the block. null
when its pending block.
transactionsRoot
32 Bytes - String
: The root of the transaction trie of the block
stateRoot
32 Bytes - String
: The root of the final state trie of the block.
miner
- String
: The address of the beneficiary to whom the mining rewards were given.
difficulty
- Number
: Integer of the difficulty for this block.
extraData
- String
: The “extra data” field of this block.
size
- Number
: Integer the size of this block in bytes.
gasLimit
- Number
: The maximum gas allowed in this block.
gasUsed
- Number
: The total used gas by all transactions in this block.
timestamp
- Number
: The unix timestamp for when the block was collated, 0x format.
stakingTransactions
- Array
: Array of staking transactions object; absent if inclStaking is false, are present by default.
transactions
- Array
: Array of transaction objects; absent if second parameter is false
.
signers
- Array
: Array of validators one addresses who signed this block
uncles
- Array
: Array of uncle hashes.
Sample Curl Request
Sample Curl Response
Parameters
Number
- starting block number
Number
- ending block number
blockArgs
- optional args struct in json format (should be used just with { })
fullTx
- Bool
: To show full tx or not
withSigners
- Bool
: Include block signes in blocks or not
inclStaking
- Bool
: To show staking txs or not
Returns
Array
: returns blocks list in json format
number
- Number
: The block number. null
when its pending block.
hash
32 Bytes - String
: Hash of the block. null
when its pending block.
parentHash
32 Bytes - String
: Hash of the parent block.
nonce
8 Bytes - String
: Hash of the generated proof-of-work. null
when its pending block.
logsBloom
256 Bytes - String
: The bloom filter for the logs of the block. null
when its pending block.
transactionsRoot
32 Bytes - String
: The root of the transaction trie of the block
stateRoot
32 Bytes - String
: The root of the final state trie of the block.
miner
- String
: The address of the beneficiary to whom the mining rewards were given.
difficulty
- String
: Integer of the difficulty for this block.
extraData
- String
: The “extra data” field of this block.
size
- Number
: Integer the size of this block in bytes.
gasLimit
- Number
: The maximum gas allowed in this block.
gasUsed
- Number
: The total used gas by all transactions in this block.
timestamp
- Number
: The unix timestamp for when the block was collated.
stakingTransactions
- Array
: Array of staking transactions object; absent if inclStaking is false, are present by default
transactions
- Array
: Array of transaction objects; only hashes if fullTx is false, are hashes by default
signers
- Array
: Array of validators one addresses who signed this block
uncles
- Array
: Array of uncle hashes.
Sample Curl Request
Sample Curl Response