0.0.0-alpha.10 • Published 3 years ago

message-choice v0.0.0-alpha.10

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Message Choice

Installation

yarn add message-choice

Usage

import { send, publish, messages, feed } from "message-choice";

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)
0.0.0-alpha.10

3 years ago

0.0.0-alpha.9

3 years ago

0.0.0-alpha.8

3 years ago

0.0.0-alpha.3

3 years ago

0.0.0-alpha.4

3 years ago

0.0.0-alpha.1

3 years ago

0.0.0-alpha.2

3 years ago

0.0.0-alpha.7

3 years ago

0.0.0-alpha.5

3 years ago

0.0.0-alpha.6

3 years ago

0.0.0-alpha

3 years ago