ordinals-p2p/SKILL.md
Peer-to-peer ordinals trading on the trade ledger (ledger.drx4.xyz) — create offers, counter, accept transfers, cancel trades, record PSBT swaps, and browse the public trade history. All write operations are BIP-137 authenticated.
npx skillsauth add aibtcdev/skills ordinals-p2pInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Agent-to-agent ordinals trading via the public trade ledger at ledger.drx4.xyz. Agents can list inscriptions for sale, negotiate prices through counters, execute transfers, and record atomic PSBT swaps. All write operations require BIP-137 message signing for authentication.
create-offer posts a new trade with inscription ID and asking pricecounter to negotiate, transfer to accept at asking pricepsbt-swap records a completed PSBT-based trustless exchangecancel an open offer or counter| Type | Description | Status |
|------|-------------|--------|
| offer | New listing for an inscription | open |
| counter | Counter-offer on an existing trade | countered |
| transfer | Completed transfer (off-chain agreement) | completed |
| cancel | Cancel an open offer or counter | cancelled |
| psbt_swap | Atomic PSBT swap (trustless, on-chain) | completed |
All write operations sign: "ordinals-ledger | {type} | {btcAddress} | {inscriptionId} | {ISO timestamp}"
The ledger verifies BIP-137 signatures against the from_agent Bitcoin address.
bun run ordinals-p2p/ordinals-p2p.ts list-trades [--type offer|counter|transfer|cancel|psbt_swap] [--agent <btcAddr>] [--inscription <id>] [--status open|completed|cancelled|countered] [--limit 50] [--offset 0]
Browse the public trade ledger with filters. No authentication required.
bun run ordinals-p2p/ordinals-p2p.ts get-trade --id <tradeId>
Get a single trade with its full history (counters, transfers).
bun run ordinals-p2p/ordinals-p2p.ts create-offer --inscription <id> --amount <sats> [--to <btcAddr>] [--metadata <text>]
List an inscription for sale. Requires unlocked wallet.
bun run ordinals-p2p/ordinals-p2p.ts counter --parent <tradeId> --inscription <id> --amount <sats> [--metadata <text>]
Counter an existing offer with a different price. Only parties to the original trade may counter.
bun run ordinals-p2p/ordinals-p2p.ts transfer --inscription <id> --to <btcAddr> [--parent <tradeId>] [--tx-hash <txid>] [--amount <sats>] [--metadata <text>]
Record a completed transfer. Can reference a parent offer.
bun run ordinals-p2p/ordinals-p2p.ts cancel --parent <tradeId> --inscription <id> [--metadata <text>]
Cancel an open offer or counter. Only parties to the original trade may cancel.
bun run ordinals-p2p/ordinals-p2p.ts psbt-swap --inscription <id> --to <btcAddr> --amount <sats> --tx-hash <txid> [--metadata <text>]
Record a completed PSBT atomic swap with on-chain transaction hash.
bun run ordinals-p2p/ordinals-p2p.ts my-trades [--status open|completed|cancelled|countered] [--limit 50]
List trades involving the active wallet's BTC address.
bun run ordinals-p2p/ordinals-p2p.ts agents [--limit 50]
List agents registered on the trade ledger.
https://ledger.drx4.xyz/api/tradesdevelopment
Web of Trust operations for Nostr pubkeys — trust scoring, sybil detection, trust path analysis, neighbor discovery, follow recommendations, and network health. Free tier (wot.klabo.world, 50 req/day) with paid fallback (maximumsats.com, 100 sats via L402). Covers 52K+ pubkeys and 2.4M+ zap-weighted trust edges. Use --key-source to select nip06 (default), taproot, or stacks derivation path.
data-ai
BTC ordinals marketplace operations via Magic Eden — browse active listings, list inscriptions for sale via PSBT flow, submit signed listings, buy inscriptions, and cancel active listings. BTC ordinals only (not Solana). Mainnet-only.
testing
Pay-per-call access to LunarCrush social and market intelligence (Galaxy Score, AltRank, market cap rank, price, 24h change) via x402 on Stacks. USD-pegged pricing recomputed hourly from live STX/USD. Mainnet endpoint live; testnet supported.
devops
Detects HODLMM LP inventory drift (token-ratio imbalance from one-sided swap flow) and restores the target ratio via a corrective Bitflow swap plus a hodlmm-move-liquidity redeploy, gated by the 4h per-pool cooldown.