Skip to main content

Blockchain

Access the blockchain using Chronik

blockchainInfo()

Fetch current info of the blockchain, such as tip hash and height.

See blockchainInfo API docs.

Live Editor
function DemoBlockchainInfo() {
  return <Json fn={async () => {
    const chronik = new ChronikClientNode("https://chronik.pay2stay.com/xec");
    return await chronik.blockchainInfo();
  }} />;
}
Result
Loading...

chronikInfo()

Fetch info about the current running chronik server.

See chronikInfo API docs.

Live Editor
function DemoChronikInfo() {
  return <Json fn={async () => {
    const chronik = new ChronikClientNode("https://chronik.pay2stay.com/xec");
    return await chronik.chronikInfo();
  }} />;
}
Result
Loading...