Derek Ross on Nostr: hey claude, i want to create a script that i can run via a cronjob that checks the ...
hey claude, i want to create a script that i can run via a cronjob that checks the bitcoin balance of a specific address. if a balance over 10 USD is found, then the balance is automatically sent to a new wallet address derived from another wallet's XPUB. you can use this tool to learn how derive bitcoin addresses from extended public keys
https://github.com/swan-bitcoin/xpub-tool. enter plan mode and devise a plan to build this. include risk analysis and potential stop gaps. the bitcoin private key for this will be a nostr nsec, which is a taproot address, so we'll need to convert it. we should also consider how we store this nsec/private key. thanks.
Published at
2026-05-18 15:51:30 CESTEvent JSON
{
"id": "00f79fc1c14e2403695b18d71c4b7f6d414694f01ed69b817ce8a832b94a7887",
"pubkey": "3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24",
"created_at": 1779112290,
"kind": 1,
"tags": [
[
"client",
"Ditto",
"31990:781a1527055f74c1f70230f10384609b34548f8ab6a0a6caa74025827f9fdae5:ditto"
]
],
"content": "hey claude, i want to create a script that i can run via a cronjob that checks the bitcoin balance of a specific address. if a balance over 10 USD is found, then the balance is automatically sent to a new wallet address derived from another wallet's XPUB. you can use this tool to learn how derive bitcoin addresses from extended public keys https://github.com/swan-bitcoin/xpub-tool. enter plan mode and devise a plan to build this. include risk analysis and potential stop gaps. the bitcoin private key for this will be a nostr nsec, which is a taproot address, so we'll need to convert it. we should also consider how we store this nsec/private key. thanks.",
"sig": "951e93a658e11b31151b9a68660a653a7862b9e4687f45172aedd78baf641279781a9152d33a1ce0335726d9a222eab83974e73885d3f09ea40a7d1ad60dd028"
}