beaushinkle@Beaus-MBP ~/l/t/s/scripts (master) [SIGINT]> curl -d '01000000000101fa42b57a4f75570a53889128db1a13b71dd553fd876269ca59987c46af5285810000000000000000000309cc320000000000160014a0aedee089b0cfa34e1e29c2dd2e618b19e8b95309cc320000000000160014f8c4e8695f8c2e0f598f8f00c2c4a83b17b0c4fa09cc320000000000160014fada4235022b32a31f97adbc954e6a7bbb7b32ba02473044022016442860250764c171b0a28a35e3dc14591ba6c6032539691281350d9e8518f90220774bcdbda9b3729edb5b50d35e56fa13f58236a0597e5624620ad09b4b720936012102a0ef9e7f1677e58ae82326970647c8e0fa2624540a6ef9a340a2a4adee054edf00000000' -X POST localhost:3002/tx
sendrawtransaction RPC error: {"code":-25,"message":"bad-txns-inputs-missingorspent”}
beaushinkle@Beaus-MBP ~> bitcoind-wallet sendRawTransaction 01000000000101fa42b57a4f75570a53889128db1a13b71dd553fd876269ca59987c46af5285810000000000000000000309cc320000000000160014a0aedee089b0cfa34e1e29c2dd2e618b19e8b95309cc320000000000160014f8c4e8695f8c2e0f598f8f00c2c4a83b17b0c4fa09cc320000000000160014fada4235022b32a31f97adbc954e6a7bbb7b32ba02473044022016442860250764c171b0a28a35e3dc14591ba6c6032539691281350d9e8518f90220774bcdbda9b3729edb5b50d35e56fa13f58236a0597e5624620ad09b4b720936012102a0ef9e7f1677e58ae82326970647c8e0fa2624540a6ef9a340a2a4adee054edf00000000
(node:69393) ExperimentalWarning: Importing JSON modules is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Error: Promise rejected with value: { code: -25, message: 'bad-txns-inputs-missingorspent' }
at process.<anonymous> (/Users/beaushinkle/local/bitcoind-wallet/node_modules/hard-rejection/index.js:15:12)
at process.emit (node:events:379:20)
at emit (node:internal/process/promises:202:22)
at processPromiseRejections (node:internal/process/promises:223:25)
at processTicksAndRejections (node:internal/process/task_queues:95:32)
(shows that electrs and bitcoind-wallet are both returning the same result on the same transaction)
These additional methods provide convenience around verifying the liquidation recovery flow. To test:
(shows that electrs and bitcoind-wallet are both returning the same result on the same transaction)
tagging @nkuba for review