0.0.1-alpha.1 • Published 5 months ago

@bitcoinschema/bso-lib v0.0.1-alpha.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

bso

Bitcoin Social transaction creation library

bun add @bitcoinschema/bso-lib
import { createMessage, createPost, createVideo } from "bso";

createMessage

// Creates a new message transaction in channel #test
// and returns a `bsv-wasm` transaction
const message = createMessage("Hello World", "test");

createPost

// Creates a post with a url context
const post = createPost("Hello World", {
  context: "url",
  contextValue: "https://google.com",
});