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

@fabric-dao/lib

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fabric-dao/lib

## Installation ``` yarn add @fabric-dao/lib ```

  • 0.0.0-alpha.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Fabric-DAO

Installation

yarn add @fabric-dao/lib

Usage

import { send, publish, messages, feed } from "@fabric-dao/lib";

Sending a private message

const data = Buffer.from("This is a test")
const receiver = "..."
const txID = await send(data, receiver)

Publishing content

const data = Buffer.from("This is a test")
const txID = await publish(data)
Using a JWK

By default Message Choice uses ArConnect to handle transactions. If you want to use a JWK simply add it as a parameter into send(data, receiver, jwk) or publish(data, jwk)

Retrieving messages

const from_address = "..."
const to_address = "..."
const allMessages = await messages(from_address, to_address)

Retrieving published content

const from_address = "..."
const content = await feed(from_address)

FAQs

Package last updated on 27 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