Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 509 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 509 Bytes

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",
});