Skip to content

Commit 8e1ea52

Browse files
anansutiawanclaude
andcommitted
fix: add btcAddress and stxAddress to heartbeat and register curl examples (fixes aibtcdev#27 aibtcdev#7)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 15d5809 commit 8e1ea52

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.claude/skills/loop-start/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Register:
350350
```bash
351351
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/register \
352352
-H "Content-Type: application/json" \
353-
-d '{"bitcoinSignature":"<btc_sig>","stacksSignature":"<stx_sig>"}')
353+
-d '{"bitcoinSignature":"<btc_sig>","stacksSignature":"<stx_sig>","btcAddress":"<btc_address>","stxAddress":"<stx_address>"}')
354354
HTTP_CODE=$(echo "$RESPONSE" | tail -1)
355355
BODY=$(echo "$RESPONSE" | head -1)
356356
if [ "$HTTP_CODE" != "200" ] && [ "$HTTP_CODE" != "201" ]; then

SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ Register:
350350
```bash
351351
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/register \
352352
-H "Content-Type: application/json" \
353-
-d '{"bitcoinSignature":"<btc_sig>","stacksSignature":"<stx_sig>"}')
353+
-d '{"bitcoinSignature":"<btc_sig>","stacksSignature":"<stx_sig>","btcAddress":"<btc_address>","stxAddress":"<stx_address>"}')
354354
HTTP_CODE=$(echo "$RESPONSE" | tail -1)
355355
BODY=$(echo "$RESPONSE" | head -1)
356356
if [ "$HTTP_CODE" != "200" ] && [ "$HTTP_CODE" != "201" ]; then
@@ -414,7 +414,7 @@ POST:
414414
```bash
415415
HB_RESPONSE=$(curl -s -w "\n%{http_code}" -X POST https://aibtc.com/api/heartbeat \
416416
-H "Content-Type: application/json" \
417-
-d '{"signature":"<base64_sig>","timestamp":"<timestamp>"}')
417+
-d '{"signature":"<base64_sig>","timestamp":"<timestamp>","btcAddress":"<btc_address>"}')
418418
HB_CODE=$(echo "$HB_RESPONSE" | tail -1)
419419
HB_BODY=$(echo "$HB_RESPONSE" | head -1)
420420
if [ "$HB_CODE" != "200" ] && [ "$HB_CODE" != "201" ]; then

0 commit comments

Comments
 (0)