HYDRA Documentation
  • Introduction to Hydra Chain
  • HydraGon
    • Migrate to HydraGon
    • Staking Calculator
  • Legacy Hydra
  • FAQ
  • Hydra web wallet
    • Create New Wallet
      • Key File Option
      • Mnemonic Words Option
    • Access Your Wallet
      • From Mnemonic Words
      • From Private Key
      • From Key File
    • Send and Receive Assets
      • Receive Assets
      • Send Assets
    • Add HRC20 Token
    • Setup Offline Wallet
  • Hydra web browser extension
    • How to integrate with dApps
  • Hydra for Beginners
  • Ledger Nano Guide
  • Hydra Bridge
  • HydraDEX
    • Adding and Removing Liquidity
    • Liquidity Mining on HydraDEX
  • Useful Links (Legacy)
  • Essentials
    • UTXOs Accounting
    • Test & Main Networks
    • Desktop wallet basic usage
    • Wallet Encrypt, Backup and Restore
    • Hydra Core Wallet Commands
    • Adding Nodes
    • Encrypt and Unlock Hydra Wallet
    • Wallet Recovery With Salvagewallet
    • bech32 support
    • Repositories
    • Hydra Exchange Usage Guide
    • How to Add Options
    • How to Use bootstrap.dat
    • Command Lines (RPC API)
    • Guidance of Hydra Deployment and RPC Settings
    • How to Build Hydra on Raspbian
  • HRC20 Tokens
    • HRC20 Token
    • HRC20 Raw Transactions
    • HRC20 With Hydrachainjs
    • HRC20 DApp
  • HRC721 Tokens
    • HRC721 Token - How to deploy
  • How Transactions Work
  • Hydra Economy (Legacy)
    • The Flexible Supply Mechanism
    • Legacy Staking Calculator
  • Installation Guides
  • Guide for Linux
  • Guide for Raspberry Pi
  • Guide for MacOS
  • Staking HYDRA Coins
    • Setting up Staking
    • Staking with Windows VPS on AWS
    • Staking with Linux on DigitalOcean VPS
    • How to Stake Hydra on Linux
    • Stake With Linux VPS
    • How to Stake on FreeBSD
    • Hydra node health check
    • Superstaking
    • Delegating to Superstaker
    • Delegating via Mobile App or Web Browser
    • Lydra Basics
    • Understanding LYDRA — Key Concepts and Dynamics
  • Hydra Chain Core Team
  • KYC/AML Policy
  • Privacy Policy
  • API Documentation
    • Explorer API (in work)
      • General Blockchain Info
      • Fetching Transaction History for HYDRA and HRC20 tokens
      • Block Info
      • Transaction Info
    • Hydra DEX API
  • Community Tools
    • Github repository
    • Docker image for Hydra Node
    • Hydradex.org Custom Lists
  • Security Audits Hydra Bridge
Powered by GitBook
On this page
  • Get Info on a Block
  • Get Most Recent Blocks
  • Get Blocks for a certain Date

Was this helpful?

  1. API Documentation
  2. Explorer API (in work)

Block Info

Get Info on a Block

[GET] explorer.hydrachain.org/api/block/[block number]

[GET] explorer.hydrachain.org/api/block/[block hash]

hash: f1b8469964cadd8e2ee5985ddc749dcb4e7b0bb18a2f527be7fc17c995cd03f8
height: 40000
version: 536870912
prevHash: 23760d53cff9fe4c92d362d59ac7353c4337cb75939c78c4011be04c697c7315
nextHash: 4f950f0c5316384d56eb9194d32f02c2636049d437a71ea3269ee241287964c9
merkleRoot: a8cb33c70d0b66ca93035577ed5b17d3249951cfe512297e10047b9321f15233
timestamp: 1610891056
bits: 1a4ff2ea
nonce:0
hashStateRoot: afe3339fc455913fa03778a0db87bb9e243252262fe3da7ee4355f30aca5ab57
hashUTXORoot: 696b3d9ac23b6a19ad26e63805f01b06fb81fa81608c8f27152a6f09f6224add
prevOutStakeHash: 0bac1b08babfac7efc10e4d0c9e7a0190dc20c0c6eb9fd94f7cbb546cbdfbc79
prevOutStakeN: 2
signature: 304402201171d170b84934b44ec5e591be76cb4fb1d201e8b1e146c7890fe5397fa0eaf802206a12ebb69e606fbffdd075ff8ff4711b79e1aaea7379871fd124a224935c267d
chainwork: 000000000000000000000000000000000000000000000001c8fcfa527c91104e
flags: proof-of-stake
interval: 32
size: 576
weight: 2196
transactions: ["d73a5193c06f62971313a853b310473a2d3e8ba48520b91b45955abeeec5684a","7c191fa791271b993ad27f7b64bbf5305c8b06018b79b4dece48a48b41440a6e"]
miner: HStiZb5QwFKVsW9YWp4qeekcNna2MMqK2e
difficulty: 209846.08362963854
reward: 1552231617
confirmations: 63707

Metric

Explanation

Level

Hash

Gives you the hash of the block

Easy

Height

Gives you the block number

Easy

Version

Advanced

PrevHash

Gives you the hash of the previous block

Medium

NextHash

Gives you the hash of the next block

Medium

MerkleRoot

Gives you the hash of the merkle root

Advanced

Timestamp

Gives you the timestamp in Unix format. Which is the number of seconds that passed since January 1st, 1970 at UTC

Easy

Bits

Records the difficulty of calculating the current header hash value

Advanced

Nonce

Only gives you a non-zero value for the first 5,000 seed blocks

Advanced

HashStateRoot

The hashStateRoot records the root state hash value after the execution of the EVM in this block

Advanced

HashUTXORoot

The hashUTXORoot record is generated after the EVM is executed

Advanced

PrevOutStakeHash

The UTXO root state hash value, prevoutStake is the transaction output point of the previous block for the PoS process (hash)

Advanced

PrevOutStakeN

The UTXO root state hash value, prevoutStake is the transaction output point of the previous block for the PoS process (value)

Advanced

Signature

Gives you the unique signature of the block

Advanced

Chainwork

Chainwork setting for that particular block

Advanced

Flags

Will return proof-of-work for the first 5,000 blocks and proof-of-stake for all blocks thereafter

Easy

Interval

Gives you the amount of seconds it took to mine this block

Easy

Size

Gives you the size of the block in byte

Easy

Weight

Gives you the size of the block after processing, in byte

Medium

Transactions

Gives you a list of transaction hashes included in the block

Medium

Miner

Gives you the Hydra address of the block miner

Easy

Difficulty

Gives you the staking difficulty, which depends on the total staking weight. The difficulty is dynamically adjusted to the staking weight, to ensure a constant block time of 128 seconds

Easy

Reward

Gives you the block reward. Does not account for gas royalty and reimbursement of unspent gas. The net reward may be lower. Provided with 8 decimals.

Easy

Confirmations

Number of new blocks processed since the block was mined

Easy

Get Most Recent Blocks

[GET] explorer.hydrachain.org/api/recent-blocks?count=[X]

Gives you information about the most recent X blocks.

hash: 115fa96b1a591b259565d5cd5eb8f5c632309ecadfa521eca1c38f54f760953d
height: 103735
timestamp: 1619047296
interval: 80
size: 576
transactionCount: 2
miner: HSfwqds6DxLuP55vDD88idAMVbpNT5YLGJ
reward: 1634655096

Metric

Explanation

Level

Hash

Gives you the hash of the block

Easy

Height

Gives you the block number

Easy

Timestamp

Gives you the timestamp in Unix format. Which is the number of seconds that passed since January 1st, 1970 at UTC

Easy

Interval

Gives you the amount of seconds it took to mine this block

Easy

Size

Gives you the size of the block in byte

Easy

TransactionCount

Gives you the number of transactions inside the block

Easy

Miner

Gives you the Hydra address of the block miner

Easy

Reward

Gives you the block reward. Does not account for gas royalty and reimbursement of unspent gas. The net reward may be lower. Provided with 8 decimals.

Easy

Get Blocks for a certain Date

[GET] explorer.hydrachain.org/api/blocks?date=[YYYY-MM-DD]

Gives you information about all blocks for a certain date.

hash: 115fa96b1a591b259565d5cd5eb8f5c632309ecadfa521eca1c38f54f760953d
height: 103735
timestamp: 1619047296
interval: 80
size: 576
transactionCount: 2
miner: HSfwqds6DxLuP55vDD88idAMVbpNT5YLGJ
reward: 1634655096

Metric

Explanation

Level

Hash

Gives you the hash of the block

Easy

Height

Gives you the block number

Easy

Timestamp

Gives you the timestamp in Unix format. Which is the number of seconds that passed since January 1st, 1970 at UTC

Easy

Interval

Gives you the amount of seconds it took to mine this block

Easy

Size

Gives you the size of the block in byte

Easy

TransactionCount

Gives you the number of transactions inside the block

Easy

Miner

Gives you the Hydra address of the block miner

Easy

Reward

Gives you the block reward. Does not account for gas royalty and reimbursement of unspent gas. The net reward may be lower. Provided with 8 decimals.

Easy

PreviousFetching Transaction History for HYDRA and HRC20 tokensNextTransaction Info

Last updated 4 years ago

Was this helpful?