Skip to content

Block Hash

GET /v2/blocks/{round}/hash

Get the block hash for the block on the given round.

Properties

NameTypeDescription
round*stringThe round from which to fetch block hash information.

* indicates required property

Packages

Node.js

Install

Terminal window
npm install algosdk --save

Usage

import { Algodv2 } from "algosdk";
const data = {round: 1}
const client = new Algodv2( "", "https://testnet-api.algonode.cloud", 443 );
const result = await client.getBlockHash(data.round).do();

React

Install

Terminal window
npm install @awesome-algorand/react-query @txnlab/use-wallet-react @tanstack/react-query algosdk --save

Usage

import { useBlockHash } from '@awesome-algorand/react-query';
export function BlockInformationViewer() {
const data = {round: 1}
const query = useBlockHash(data);
}

Svelte [WIP]

Coming Soon!

Solid [WIP]

Coming Soon!

Vue [WIP]

Coming Soon!

Angular [WIP]

Coming Soon!