HYCON
  • Docs
  • Topics api/v1
    • Introduction
    • Installation
    • Make your first call
    • API Request
    • API Response
      • HTTP success status codes
      • HTTP error status codes
  • Interacting directly with the network api/v1
    • Prerequisites
    • Address Management
      • Generating a new address
      • Generating a new HD wallet root key
    • Querying an address
      • Getting details of an address
      • Getting details of an HD wallet root key
      • Getting the balance
      • Getting a list of transactions
    • Transaction Management
      • Getting the details of a transaction
      • Creating an outgoing transaction with a private key
      • Creating an outgoing transaction with a signature
      • Creating an outgoing transaction from HD wallet root key
  • Interacting with local Hycon Node api/v1
    • Prerequisites
    • Wallet Management
      • Generating a new wallet
      • Generating a new HD wallet
      • Deleting a wallet
      • Recover a wallet
      • Recover an HD wallet
      • Getting details of a wallet
      • Getting details of an HD wallet
      • Getting a list of wallets
      • Making an outgoing transaction
    • Getting Blockchain Information
      • Getting block info at a specific height
      • Getting highest block on current chain
    • Fetching Block(s)
      • Getting the details of a block
      • Getting a list of recently published blocks
    • Fetching Peer(s)
      • Getting a list of peers
    • Miscellaneous Tools
      • Generating a new mnemonic
      • Get network market cap
      • Query if block is an uncle block
      • Amount of mining reward from block
  • Reference api/v1
    • Language Support
    • Blockchain Reorganization
  • Topics api/v3
    • Introduction
    • Installation
    • Make your first call
    • API Request
    • API Response
      • HTTP success status codes
      • HTTP error status codes
  • Address API api/v3
    • Prerequisites (/address)
    • Getting address information
      • Query method (get address)
      • URL method (get address)
      • Response (get address)
  • Block API api/v3
    • Prerequisites (/block)
    • Getting the latest block information
      • Response (latest block)
    • Getting specific block information
      • Query method (specified block)
      • URL method (specified block)
      • Response (specified block)
    • Getting mined block information
      • Query method (mined blocks)
      • URL method (mined blocks)
      • Response (mined blocks)
    • Getting tip information
      • Response (tip info)
  • Network API api/v3
    • Prerequisites (/network)
    • Getting market information
      • Response (market cap info)
    • Getting list of peers
      • Query method (peer list)
      • URL method (peer list)
      • Response (peer list)
    • Getting information of specific peer
      • Query method (specified peer)
      • URL method (specified peer)
      • Response (specified peer)
  • Transaction API api/v3
    • Prerequisites (/tx)
    • Getting specific transaction information
      • Query method (specified tx)
      • URL method (specified tx)
      • Response (specified tx)
    • Getting transactions by address
      • Query method (tx by address)
      • URL method (tx by address)
      • Response (tx by address)
    • Getting pending transactions
      • Query method (pending txs)
      • URL method (pending txs)
      • Response (pending txs)
    • Creating an outgoing transaction
      • Response (created tx)
  • Wallet API api/v3
    • Prerequisites (/wallet)
    • Getting information of wallet list
      • Query method (wallet list)
      • Response (wallet list)
    • Getting information of specific wallet
      • Query method (specified wallet)
      • URL method (specified wallet)
      • Response (specified wallet)
    • Delete Wallet
      • Query method (delete wallet)
      • URL method (delete wallet)
      • Response (delete wallet)
    • Generate random mnemonic
      • Response (random mnemonic)
    • Generate / Recover normal wallet or HD wallet with password or passphrase
      • Response (generate/recover wallet)
    • Decrypt and get an HD wallet information
      • Response (get HD wallet information)
  • Reference api/v3
    • Blockchain Reorganization
    • Language Support
Powered by GitBook
On this page

Was this helpful?

  1. Block API api/v3
  2. Getting specific block information

Response (specified block)

api/v3

Response (specified block) 200 OK, application/json

If range is not set or set to 1, the following object is returned. Else, a block list with the following objects as elements is returned:

Parameter

Type

Description

height

number

Height of the block.

hash

string

Hash value representing the block.

difficulty

string

Difficulty of the mined block.

merkleRoot

string

Merkle hash of all transactions in the block.

stateRoot

string

Hash of the world state at that block.

timestamp

number

Timestamp when the block was added.

txs

array

List of transactions in the block.

nonce

string

Nonce of the block.

miner

string

A Hycon wallet address of the miner.

uncleHash

array

List of hash values of uncle block.

previousHash

string

The hash value of the previous block.

Response Error Table

Status

Error

Message

400

BAD_REQUEST

the absolute value of range cannot exceed 100

404

NOT_FOUND

Error: hash 5PrvewZUb3BizCEqibi1URv9WBssAdFqsa95weL4rTpj is not found

Response (Success) without specified range

{
    "height": 412510,
    "hash": "6ZDkzCeih26nQ6ry84FhvJackNpRgKGKmFCrhvQsdfMf",
    "difficulty": "2.2465660159450127e-9",
    "merkleRoot": "8FKVTsPMMfgjp7tWZLgmrodcFPy8PcVMMc9r3fPdvu5p",
    "stateRoot": "DVuavQUzM2GTD7D43n83vDm1TDnb5r6dVc2UDNZbdJon",
    "timestamp": 1543462655832,
    "txs": [
        {
            "amount": "28.312759446",
            "to": "H3mt6xb2evbvJ5m58181t2hjQxrhE6gFz",
            "txhash": "4qpzsvd9YtZAtU7UWnByN8JTfbkYHrGd2PjZ9pQNepTj",
            "fee": "0.000001",
            "from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
            "nonce": 2667656
        },
        ...
    ],
    "nonce": "16769771563250614862",
    "miner": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
    "uncleHash": [
        "7ZY6RZGxLeBnzenpYL6m8x1F1sq3umsyW5ZEry3d1D8o"
    ],
    "previousHash": "3ZPBmRgzt3sN1QqvbArfvDG465b47FUR7bPvRwtnxWbS"
}

Response (Success) with specified range

[
    {
        "height": 406079,
        "hash": "FW9tKvn9qGqCoBXo7gsrSZJXPYHMqV4iGwqu8M5peZqp",
        "difficulty": "2.209114884696341e-9",
        "merkleRoot": "xyw95Bsby3s4mt6f4FmFDnFVpQBAeJxBFNGzu2cX4dM",
        "stateRoot": "GtQepoj5ug8aTTsHqnZV6si4ej3pLhE81XTRRgA2gbiv",
        "timestamp": 1543323156188,
        "txs": [ ],
        "nonce": "9223385724915548540",
        "miner": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
        "uncleHash": [ ],
        "previousHash": "4jBSmugyJcsPwF635kxwYmApSxvzk27xtaLPjiefpU7H"
    },
    ...
]
PreviousURL method (specified block)NextGetting mined block information

Last updated 3 years ago

Was this helpful?