Docs / SDK

SDK: get started

Install, create a client, first call.

clockd is a zero-dependency TypeScript SDK for anything that runs on Elysium: bots, apps, wallets, bridges, dashboards. It does four useful things:

  • Send the fastest way and get the real time it took: sendTimed().
  • Check the chain before acting: status() and guard().
  • Know when a transaction is final on HyperEVM: waitForFinalized() and finalityEta().
  • Follow Elysium second by second: watchSeconds().

Install

Import it straight from the site (browsers, Deno, Bun, edge runtimes):

import { createClient } from "https://clockd.money/sdk/v1.js";

Or add the package to a Node project from the repository's sdk/ folder (npm publication to follow):

npm install ./sdk
import { createClient, ELYSIUM } from "clockd";

Create a client

const elysium = createClient({
  rpc: "https://rpc.elysium.kinetiq.xyz",   // or your provider URL
  api: "https://clockd.money",      // the counter
});

Both options are optional. In production, pass a provider RPC (Alchemy, Conduit): the public one is shared and rate limited.

First call

const s = await elysium.status();
// { health: "normal", ok: true, blockAgeMs: 820, avgBlockMs: 164, capacity: 0.6, ... }

Signing stays yours

The SDK never holds a key. You sign with viem, ethers or a wallet and pass the signed raw transaction. See Send and time.