New chain? Elrond?

Elrond blockchain network has come up with a sharding scheme for practical scalability, eliminating energy and computational waste while ensuring distributed fairness through a Secure Proof of Stake (SPoS) consensus. Having a strong focus on security, Elrond’s network is built to ensure resistance to known security problems like the Sybil attack, Nothing at Stake attack etc. Elrond’s solution for smart contracts offers an EVM compliant engine to ensure interoperability by design. Preliminary simulations and testnet results reflect that Elrond exceeds Visa’s average throughput and achieves an improvement beyond three orders of magnitude or 1000x compared to the existing viable approaches, while drastically reducing the costs of bootstrapping and storage to ensure long term sustainability. An EGLD token is a unit of value native to the Elrond network.
The Shards are smaller partitions of the Elrond network and are used for scaling: each shard is responsible for a portion of the state (accounts, smart contracts, blockchain) and transaction processing so that every shard can process only a fraction of the transactions in parallel with other shards. The Elrond Virtual Machine is a dedicated smart contract execution engine built on WASM.
Validators are nodes on the Elrond network that process transactions and secure the network by participating in the consensus mechanism while earning rewards from the protocol and transaction fees. To become part of the Elrond network, a validator needs to put up collateral in the form of EGLD tokens, which are staked to align the incentives between validators and network goals. Observers are passive members of the network that can act as a read & relay interface. A node that verifies the validity of blocks after they have been proposed. They challenge invalid blocks resulting from the adversity of malicious actors and are rewarded for their service.
Compared to Ethereum, Elrond eliminates both energy and computational waste from PoW algorithms, while enabling transaction parallelism via Adaptive state sharding. Compared to Algorand which has a single blockchain and thus clear scaling limitations, Elrond increases throughput via Adaptive state sharding.

Our Bitquery Explorer helps you fetch data from the Elrond network using our GraphQL IDE.

Clicking on the Elrond Mainnet redirects you to its page, where you can get information like the Shards, Blocks, Mini-blocks, Transactions, Transfers and Smart Contract Calls etc.

Shards

The shards tab provides you details related to the shards like the timestamp, block and hash etc.

The shards tab provides you details related to the shards like the timestamp, block and hash etc.

All you need to do is click on the Open GraphQL IDE button and you have the ready-made query.

For example, to get the data related to Shards, you can use [this query]
(Shards)

The results produced by this query are as follows:

{
  "elrond": {
    "elrond": {
      "blocks": [
        {
          "shard": "4294967295",
          "max_height": "6947742",
          "hash": "5c19ffcfbbf24aceb9c0e57064e0374177c3d6f6d559924e0b7e13df494f06b1",
          "max_time": "2021-11-26 08:14:06 UTC"
        }
      ]
    }
  }
}

You can obtain the maximum height, the shard, the hash and the maximum time using this query.

Blocks

Under the blocks tab, you can get the latest blocks on the meta chain, along with a lot of additional information like timestamp, block, hash, etc.

This data can be obtained using this query as well.
You can even get the total number of block on the blockchain network using the following query

{
  elrond {
    blocks {
      count
    }
  }
}

As of April 2022, this query gives a count of over 36 million blocks.

You can even use a modified version of this query to get the number of blocks produced in the network monthly.

{
  elrond {
    blocks {
      count
      date {
        date(format: "%y-%m")
      }
    }
  }
}

You can get this query here

Miniblocks

Just like blocks, the miniblocks tab gives you information about the latest miniblocks on the metachain.

Transactions

Elrond’s cross-shard transaction strategy uses an asynchronous model. Validation and processing are done first in the sender’s shard and then in the receivers’ shard. Transactions are first dispatched in the sender’s shard, as it can fully validate any transaction initiated from the account in this shard – mainly the current balance. You can get all the information related to the transactions taking place on the Elrond meta chain using the GraphQL IDE. This information is also available in tabular as well as the graphical form on our Bitquery Explorer.

Using the Open GraphQL IDE button at the bottom right corner of every section you can easily get the auto-generated queries to fetch the data displayed.

You can also fetch the number of transactions taking place on the network using the following query.

{
  elrond {
    transactions {
      count
    }
  }
}

To get the count of transactions taking place monthly, you can tweak the above query as follows and get the desired result

{

  elrond {
    transactions {
      count
      date {
        date(format: "%y-%m")
      }
    }
  }
}

Picture1

Transfers

Transfers tab provides information related to transfers like the timestamp, hash, sender’s and receiver’s address, amount and currency etc.

The query produces results as follows:

{
  "elrond": {
    "transfers": [
      {
        "time": {
          "time": "2021-11-26 14:50:00"
        },
        "sender": {
          "address": "4294967295",
          "annotation": null
        },
        "receiver": {
          "address": "erd1hhz6hdf5j7m8hzvqh9wjnsa2k2c280h9qpw4gjnf74e4hx752ujs7ntfk8",
          "annotation": null
        },
        "amount": 2.527386865130249,
        "currency": {
          "symbol": "EGLD"
        },
        "transaction": {
          "hash": "c6da4093bd8dd363a629e2b64706179e05afe0263a4899dd40c61302f26681bc"
        }
      },
      {
        "time": {
          "time": "2021-11-26 14:50:00"
        },
        "sender": {
          "address": "4294967295",
          "annotation": null
        },
        "receiver": {
          "address": "erd16pe79ay2m6g7ap9vpshvvqaqc3ayplwuqw0rkwj2gqvv0egn0wjsyzvjwd",
          "annotation": null
        },
        "amount": 60.027068056849956,
        "currency": {
          "symbol": "EGLD"
        },
        "transaction": {
          "hash": "d9a99d5b551af94b83bb421d9502b05ba07dec0e258487285eae8e7738f6fd0b"
        }
      }
    ]
  }
}

Just like transactions, you can fetch the count of transfers taking place on the network monthly with the following query.

{
  elrond {
    transfers {
      count
      date {
        date(format: "%y-%m")
      }
    }
  }
}

Picture2

Smart Contract Calls

Under the smart contracts tab you can fetch all the details related to the latest calls made like the block has, smart contract address, method transaction hash etc along with the timestamp.
Let’s consider the following query as an example.

{
  elrond(network: elrond) {
    calls(
      options: {desc: "time.time", limit: 10, offset: 0}
      date: {since: "2022-04-13", till: "2022-04-20T23:59:59"}
    ) {
      time {
        time(format: "%Y-%m-%d %H:%M:%S")
      }
      senderBlock {
        hash
      }
      smartContractAddress {
        address
        annotation
      }
      smartContractMethod {
        name
        signatureHash
      }
      transaction {
        hash
      }
    }
  }
}

You can get this query here as well

Conclusion
Bitquery provides support and details related to the Elrond netwok . If you are looking for Elrond APIs, please sign up on our Blockchain IDE and get your API keys. If you are building any application related to Elrond, we would be delighted to talk to you; you can mail us at hello@bitquery.io or ping us on our Telegram channel.

Also Read

About Bitquery

Bitquery is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. We are crossing the ‘chain-chasm’ by delivering set of products that can work across blockchains. Our products include:

Coinpath APIs provide blockchain money flow analysis for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. You can refer to this article to get started with Coinpath

Digital Assets API provides index information related to all major cryptocurrencies, coins, and tokens.

DEX API provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, SushiSawap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our Telegram channel or email us at hello@bitquery.io . Also, subscribe to our newsletter and stay updated about the latest in the cryptocurrency world.