Closed mikemilla closed 4 years ago
What is the proper syntax for the descriptor of scantxoutset
scantxoutset
Here is what I've tried:
const descriptorAttempts = [ '{ desc: addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo) }', '{ "desc": "addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo)" }', '"desc": "addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo)"', "addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo)", "addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo)", "addr=34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo", "34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo", "{ addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo) }", "{ addr: 34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo }", "{\"desc\": \"addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo)\"}", '\"{\"desc": \"addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo)\"}\"', '"{"desc": "addr(34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo)"}"', '"{"desc": "addr("34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo")"}"', '\"{\"desc": \"addr(\"34xp4vRoCGJym3xR7yCVPFHoCNxv4Twseo\")\"}\"', ] descriptorAttempts.forEach(attempt => { client.command('scantxoutset', 'start', [ attempt ]) .then((res) => { console.log("Success! 🙌") console.log(res) }) .catch((error) => { console.log("Failed attempt of -> " + attempt) // console.log(error) }) })
Results in RpcError: Invalid descriptor
RpcError: Invalid descriptor
I've looked all over the internet and can't find the proper syntax for the life of me!
Note: This is also posted on the stack exchange as well, just want to make sure I didn't discover an implementation issue.
https://bitcoin.stackexchange.com/questions/89580/how-to-use-scantxoutset
The address is invalid. Resolved this by trying a valid address and using:
client.command('scantxoutset', 'start', ['addr(mfe87Qheq7SSveCDedyDUBEjMD9tgzRiU7)'])
What is the proper syntax for the descriptor of
scantxoutset
Here is what I've tried:
Results in
RpcError: Invalid descriptor
I've looked all over the internet and can't find the proper syntax for the life of me!
Note: This is also posted on the stack exchange as well, just want to make sure I didn't discover an implementation issue.
https://bitcoin.stackexchange.com/questions/89580/how-to-use-scantxoutset