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

@unfinishedlabs/sdk

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unfinishedlabs/sdk

SDK Library for the DSNP

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

DSNP TypeScript SDK

Easy to use SDK for the DSNP

Quick Start

  • npm install @unfinishedlabs/sdk
  • Import:
    • import * as dsnp from "@unfinishedlabs/sdk";
    • import { Announcement } from "@unfinishedlabs/sdk";
    • import { batch } from "@unfinishedlabs/sdk/Announcement";
  • Require:
    • const dsnp = require("@unfinishedlabs/sdk");
    • const { Announcement } = require("@unfinishedlabs/sdk");
    • const { batch } = require("@unfinishedlabs/sdk/Announcement");

Documentation

See Documentation or generate documentation locally via npm run doc.

How to Install

Run npm install @unfinishedlabs/sdk

How to Build

Run npm run build

How to Compile Documentation

Documentation is deployed on merge to main to GitHub Pages: https://libertydsnp.github.io/sdk-ts/

  • Run npm run doc for HTML documentation
  • Run npm run doc:json for JSON documentation
  • Run npm run doc:markdown for markdown documentation (published with the npm package)

Environment Variables

NameDescription
RPC_URLurl of node to make calls to
BATCH_CONTRACT_ADDRESSAddress of contract on chain you are calling to
TESTING_PRIVATE_KEYOnly used in testing - private key of account you are sending transactions from

How to Test

Run npm run test

FAQs

Package last updated on 15 Apr 2021

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