Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clockwork-xyz/sdk

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clockwork-xyz/sdk

The Clockwork TS SDK is a minimal wrapper around the anchor thread program IDL as well as some utility functions.

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
109
decreased by-63.42%
Maintainers
1
Weekly downloads
 
Created
Source

Clockwork Typescript SDK

The Clockwork TS SDK is a minimal wrapper around the anchor thread program IDL as well as some utility functions.

Node Quickstart

yarn add @clockwork-xyz/sdk

import { getThreadProgram } from "@clockwork-xyz/sdk";
import { AnchorProvider, Wallet } from "@project-serum/anchor";
import NodeWallet from "@project-serum/anchor/dist/cjs/nodewallet";
import { clusterApiUrl, Connection, Keypair } from "@solana/web3.js";

export const main = async () => {
  const keypair = new Keypair();
  const connection = new Connection(clusterApiUrl("mainnet-beta"), "processed");
  const provider = new AnchorProvider(
    connection,
    keypair as unknown as NodeWallet,
    {}
  );
  const program = getThreadProgram(provider);

  const threads = await program.account.thread.all();
  console.log("threads", threads);
};

FAQs

Package last updated on 15 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc