Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 559 Bytes

File metadata and controls

25 lines (21 loc) · 559 Bytes

VeriSphere Protocol (SDK)

TypeScript SDK for interacting with deployed VeriSphere core contracts.

Build

npm install
npm run build

Example

import { ProtocolClient } from "@verisphere/protocol";

const client = new ProtocolClient({
  rpcUrl: process.env.CORE_RPC_URL!,
  privateKey: process.env.CORE_PRIVATE_KEY!,
  addresses: {
    postRegistry: process.env.CORE_POST_REGISTRY!,
    stakeEngine: process.env.CORE_STAKE_ENGINE!,
    linkGraph: process.env.CORE_LINK_GRAPH!,
  }
});
await client.createClaim("This is a claim.");