Docs

Docs

  • Develop
  • Validate
  • Integrate
  • Learn

โ€บREST API

Welcome to Elrond

  • Welcome to Elrond

Technology

  • Architecture Overview
  • Glossary
  • Entities
  • Chronology
  • Secure Proof of Stake
  • Adaptive State Sharding
  • The Elrond WASM VM
  • Cross Shard Transactions

Wallet

  • Wallets - Overview
  • Web Wallet
  • Maiar Web Wallet Extension
  • Webhooks
  • Ledger

Tokens

  • Native Tokens
  • ESDT tokens
  • NFT tokens

Validators

  • Validators - Overview
  • System Requirements
  • Install a Mainnet Node

    • Scripts & User config
    • Installing a Validator Node
    • Optional Configurations
    • How to use the Docker Image

    Install a Testnet/Devnet Node

    • Scripts & User config
    • Installing a Validator Node
    • Manage a validator node
    • How to use the Docker Image

    Manage your keys

    • Validator Keys
    • Wallet Keys
    • Protecting your keys

    Staking, Unstaking, Unjailing

    • Staking, unstaking and unjailing
    • Staking
    • Unjailing
    • The Staking Smart Contract
  • The Delegation Manager
  • Convert An Existing Validator Into A Staking Pool
  • Merging A Validator Into An Existing Delegation Smart Contract
  • Rating
  • Elrond Node upgrades
  • Node redundancy
  • Import DB
  • Node CLI
  • Node Databases
  • Useful Links & Tools
  • FAQs

Developers

  • Developers - Overview
  • Tutorials

    • Build a dApp in 15 minutes
    • Build a Microservice for your dApp
    • The Crowdfunding Smart Contract (part 1)
    • The Crowdfunding Smart Contract (part 2)
    • The Counter Smart Contract
    • Custom Wallet Connect

    Signing Transactions

    • Signing Transactions
    • Tools for signing
    • Signing programmatically

    Gas and Fees

    • Overview
    • EGLD transfers (move balance transactions)
    • System Smart Contracts
    • User-defined Smart Contracts

    Developer reference

    • The Elrond Serialization Format
    • Smart contract annotations
    • Smart contract modules
    • Smart contract to smart contract calls
    • Smart Contract Developer Best Practices
    • Code Metadata
    • Smart Contract API Functions
    • Storage Mappers
    • Rust Testing Framework
    • Rust Testing Framework Functions Reference
    • Rust Smart Contract Debugging
    • Random Numbers in Smart Contracts

    Developers Best Practices

    • Basics
    • BigUint Operations
    • The dynamic allocation problem
    • Multi-values

    Mandos tests reference

    • Mandos Overview
    • Mandos Structure
    • Mandos Simple Values
    • Mandos Complex Values
    • Embedding Mandos code in Go
  • Constants
  • Built-In Functions
  • Account storage
  • Setup a Local Testnet
  • Set up a Local Testnet (advanced)
  • Creating Wallets

SDK and Tools

  • SDKs and Tools - Overview
  • REST API

    • REST API overview
    • api.elrond.com
    • Gateway overview
    • Addresses
    • Transactions
    • Network
    • Nodes
    • Blocks
    • Virtual Machine
    • Versions and Changelog
  • Proxy
  • Elasticsearch
  • erdpy

    • erdpy
    • Installing erdpy
    • Configuring erdpy
    • erdpy CLI
    • Deriving the Wallet PEM file
    • Sending bulk transactions
    • Writing and running erdpy scripts
    • Smart contract interactions

    erdjs

    • erdjs
    • Cookbook
    • Extending erdjs
    • Writing and testing interactions
    • Migration guides
    • Signing Providers for dApps
  • erdgo
  • erdcpp
  • erdjava
  • erdkotlin
  • erdwalletjs-cli

Integrators

  • Integrators - Overview
  • EGLD integration guide
  • ESDT tokens integration guide
  • Observing Squad
  • Accounts Management
  • Creating Transactions
  • Querying the Blockchain

Blocks

Query blocks information.

GET Get Hyperblock by Nonce

https://gateway.elrond.com/hyperblock/by-nonce/:nonce

This endpoint allows one to query a Hyperblock by its nonce.

Request
Response

Path Parameters

ParamRequiredTypeDescription
nonceREQUIREDnumberThe Block nonce (height).

๐ŸŸข 200: OK

Block details retrieved successfully.

{
"hyperblock": {
"nonce": 185833,
"round": 186582,
"hash": "6a33...",
"prevBlockHash": "aa7e...",
"epoch": 12,
"numTxs": 1,
"shardBlocks": [
{
"hash": "cba4...",
"nonce": 186556,
"shard": 0
},
{
"hash": "50a16...",
"nonce": 186535,
"shard": 1
},
{
"hash": "7981...",
"nonce": 186536,
"shard": 2
}
],
"transactions": [
{
"type": "normal",
"hash": "b035...",
"nonce": 3,
"value": "1000000000000000000",
"receiver": "erd1...",
"sender": "erd1...",
"gasPrice": 1000000000,
"gasLimit": 70000,
"data": "Zm9yIHRlc3Rz",
"signature": "1047...",
"status": "executed"
}
]
}
}
important

This endpoint is only defined by the Proxy. The Observer does not expose this endpoint.

tip

A Hyperblock is a block-like abstraction that reunites the data from all shards, and contains only fully-executed transactions (that is, transactions executed both in source and in destination shard).

A hyperblock is composed using a metablock as a starting point - therefore, the nonce or hash of a hyperblock is the same as the nonce or hash of the base metablock.

GET Get Hyperblock by Hash

https://gateway.elrond.com/hyperblock/by-hash/:hash

This endpoint allows one to query a Hyperblock by its hash.

Request
Response

Path Parameters

ParamRequiredTypeDescription
hashOPTIONALstringThe Block hash.

๐ŸŸข 200: OK

{
"hyperblock": {
"nonce": 185833,
"round": 186582,
"hash": "6a33...",
"prevBlockHash": "aa7e...",
"epoch": 12,
"numTxs": 1,
"shardBlocks": [
{
"hash": "cba4...",
"nonce": 186556,
"shard": 0
},
{
"hash": "50a16...",
"nonce": 186535,
"shard": 1
},
{
"hash": "7981...",
"nonce": 186536,
"shard": 2
}
],
"transactions": [
{
"type": "normal",
"hash": "b035...",
"nonce": 3,
"value": "1000000000000000000",
"receiver": "erd1...",
"sender": "erd1...",
"gasPrice": 1000000000,
"gasLimit": 70000,
"data": "Zm9yIHRlc3Rz",
"signature": "1047...",
"status": "executed"
}
]
}
}
important

This endpoint is only is only defined by the Proxy. The Observer does not expose this endpoint.

GET Get Block by Nonce

https://gateway.elrond.com/block/:shard/by-nonce/:nonce

This endpoint allows one to query a Shard Block by its nonce (or height).

Request
Response

Path Parameters

ParamRequiredTypeDescription
shardOPTIONALnumberThe Shard.
nonceREQUIREDnumberThe Block nonce (height).

Query Parameters

ParamRequiredTypeDescription
withTxsOPTIONALbooleanWhether to include the transactions in the response.

๐ŸŸข 200: OK

Block retrieved successfully, with transactions included.

{
"block": {
"nonce": 186532,
"round": 186576,
"hash": "7aa3...",
"prevBlockHash": "2580...",
"epoch": 12,
"shard": 2,
"numTxs": 1,
"miniBlocks": [
{
"hash": "e927...",
"type": "TxBlock",
"sourceShard": 2,
"destinationShard": 1,
"transactions": [
{
"type": "normal",
"hash": "b035...",
"nonce": 3,
"value": "1000000000000000000",
"receiver": "erd1...",
"sender": "erd1...",
"gasPrice": 1000000000,
"gasLimit": 70000,
"data": "Zm9yIHRlc3Rz",
"signature": "1047...",
"status": "partially-executed"
}
]
}
]
}
}
important

For Observers, the shard parameter should not be set.

GET Get Block by Hash

https://gateway.elrond.com/block/:shard/by-hash/:hash

This endpoint allows one to query a Shard Block by its hash.

Request
Response

Path Parameters

ParamRequiredTypeDescription
shardOPTIONALnumberThe Shard.
hashREQUIREDstringThe Block hash.

Query Parameters

ParamRequiredTypeDescription
withTxsOPTIONALbooleanWhether to include the transactions in the response.

๐ŸŸข 200: OK

Block retrieved successfully, with transactions included.

{
"block": {
"nonce": 186532,
"round": 186576,
"hash": "7aa3...",
"prevBlockHash": "2580...",
"epoch": 12,
"shard": 2,
"numTxs": 1,
"miniBlocks": [
{
"hash": "e927...",
"type": "TxBlock",
"sourceShard": 2,
"destinationShard": 1,
"transactions": [
{
"type": "normal",
"hash": "b035...",
"nonce": 3,
"value": "1000000000000000000",
"receiver": "erd1...",
"sender": "erd1...",
"gasPrice": 1000000000,
"gasLimit": 70000,
"data": "Zm9yIHRlc3Rz",
"signature": "1047...",
"status": "partially-executed"
}
]
}
]
}
}
important

For Observers, the shard parameter should not be set.

โ† NodesVirtual Machine โ†’
  • GET Get Hyperblock by Nonce
  • GET Get Hyperblock by Hash
  • GET Get Block by Nonce
  • GET Get Block by Hash
Made withby the Elrond team.
GithubChat
Main siteWalletExplorerBridgeDocsGrowthMaiarMaiar Exchange