Loading...
Loading...
This skill should be used when the user asks to "post to BSocial", "like a post", "follow user", "send message", "on-chain social media", "BMAP", "BSocial protocol", "create on-chain post", "read BSocial posts", or needs social operations (posts, likes, follows, messages, reposts, friends) on BSV blockchain.
npx skill4agent add b-open-io/bsv-skills bsocialbun run skills/bsocial/scripts/create-post.ts <wif> "Post content" [options]
# Options:
# --channel <name> Post to a channel
# --url <url> Associate with URL
# --tags <t1,t2> Comma-separated tags
# --dry-run Build tx without broadcastingbun run skills/bsocial/scripts/create-reply.ts <wif> <txid> "Reply content" [--tags <t1,t2>]bun run skills/bsocial/scripts/create-like.ts <wif> <txid>bun run skills/bsocial/scripts/create-follow.ts <wif> <bapId>bun run skills/bsocial/scripts/create-repost.ts <wif> <txid> [--context <type> --value <val>]bun run skills/bsocial/scripts/create-message.ts <wif> "Message" [options]
# Options:
# --channel <name> Send to channel
# --to <bapId> Direct message to userbun run skills/bsocial/scripts/create-friend.ts <wif> <bapId>bun run skills/bsocial/scripts/read-posts.ts <address> [--limit 20] [--json]bun run skills/bsocial/scripts/read-likes.ts --address <addr>
bun run skills/bsocial/scripts/read-likes.ts --txid <txid>bun run skills/bsocial/scripts/read-follows.ts <address> [--limit 100] [--json]bun run skills/bsocial/scripts/read-messages.ts --channel <name>
bun run skills/bsocial/scripts/read-messages.ts --address <addr>bun run skills/bsocial/scripts/read-friends.ts <address> [--json][B Protocol] | [MAP Protocol] | [AIP Protocol]
content metadata signature| Context | Use Case |
|---|---|
| Reply/like a transaction |
| Post/message to named channel |
| Target specific identity |
| Associate with external URL |
@bsv/sdk@bopen-io/templateshttps://bmap-api-production.up.railway.app| Endpoint | Description |
|---|---|
| Posts by BAP ID |
| Feed for BAP ID |
| Likes for a post |
| Likes by user |
| Friends for BAP ID |
| Messages for user |
| Channel messages |
/q/{collection}/{base64Query}/s/{collection}/{base64Query}/ingest{ rawTx: tx.toHex() }2-friend-{sha256(friendBapId)}import { BAP } from "bsv-bap";
const bap = new BAP({ rootPk: wif });
const identity = bap.getId(bap.listIds()[0]);
// Get encryption pubkey for friend request
const friendPubKey = identity.getEncryptionPublicKeyWithSeed(friendBapId);
// Encrypt private message for friend
const ciphertext = identity.encryptWithSeed("secret message", friendBapId);
// Decrypt message from friend
const plaintext = identity.decryptWithSeed(ciphertext, friendBapId);npm install -g bsv-bapcreate-bap-identityreferences/schemas.md