Skip to content

Status After Block

GET /v2/status/wait-for-block-after/{round}

Gets the node status after waiting for a round after the given round.

Waits for a block to appear after round {round} and returns the node’s status at the time. There is a 1 minute timeout, when reached the current status is returned regardless of whether or not it is the round after the given round.

Properties

NameTypeDescription
round*stringThe round to wait until returning status

* 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.statusAfterBlock(data.round).do();

React

Install

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

Usage

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

Svelte [WIP]

Coming Soon!

Solid [WIP]

Coming Soon!

Vue [WIP]

Coming Soon!

Angular [WIP]

Coming Soon!