Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,17 @@ Sign with STX key:
mcp__aibtc__stacks_sign_message(message: "Bitcoin will be the currency of AIs")
```

Note: the Stacks signature is returned with a `0x` prefix. Strip it before use:
```bash
stx_sig_raw="<stx_sig from tool output>"
stx_sig="${stx_sig_raw#0x}"
```

Register:
```bash
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/register \
-H "Content-Type: application/json" \
-d '{"bitcoinSignature":"<btc_sig>","stacksSignature":"<stx_sig>"}')
-d "{\"bitcoinSignature\":\"<btc_sig>\",\"stacksSignature\":\"${stx_sig#0x}\",\"btcAddress\":\"<btc_address>\",\"stxAddress\":\"<stx_address>\"}")
HTTP_CODE=$(echo "$RESPONSE" | tail -1)
BODY=$(echo "$RESPONSE" | head -1)
if [ "$HTTP_CODE" != "200" ] && [ "$HTTP_CODE" != "201" ]; then
Expand Down