You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
Hello,
I try to use WebSocket API to get notifications about new unconfirmed bitcoin transactions ( subscribing to wss://ws.blockchain.info/inv with
{"op": "unconfirmed_sub"} ).
Everything works perfectly except that in the transaction data all tr_index fields have value 0, so I can't get the input transaction data correctly. Below an example of the trx I'm getting.
Could you please help me to find out how to fix this problem?
Hello,
I try to use WebSocket API to get notifications about new unconfirmed bitcoin transactions ( subscribing to wss://ws.blockchain.info/inv with
{"op": "unconfirmed_sub"} ).
Everything works perfectly except that in the transaction data all tr_index fields have value 0, so I can't get the input transaction data correctly. Below an example of the trx I'm getting.
Could you please help me to find out how to fix this problem?
"op":"utx","x":{"lock_time":691712,"ver":2,"size":519,"inputs":[{"sequence":4294967294,"prev_out":{"spent":false,"tx_index":0,"type":0,"addr":"16rNHDJGCr1AF1di2AmcoEZWhDW6r1yta7","value":1410000,"n":4,"script":"76a914402ec63817be13807f168b8fe5b636380639004488ac"},
"script":"47304402204a35f99f26cd83d889f90966445c73d87234fa408e92545e8ff520cf0acd1830022070b5447dd52bc115bd492048b40b2cf238fc39507b5a6d9c5a28f83524eef7360121020705228d4d987b192f2553850af53a52dd9f8efb20946b8be20c5fdd0cfb2a44"},
{"sequence":4294967294,"prev_out":{"spent":false,"tx_index":0,"type":0,"addr":"1DQVrDXYhg2cF4U8oebun4tboSPkVWjb8T","value":110000,"n":1,"script":"76a914881328783805d7924525be9fb61609ea5cf9781388ac"},"script":"483045022100b5404e486e2254a4f311781440b2235c2081d6a4596114ac8d9413265b1f6ba802200fdd24c81d6b19b25ac34aca054a6e56d53e4acf5b79b13ad202f62e760b52cb0121034db3f39c7a092f7662075ca78c6962bb3989dab669fcde82f04585e4368aa8ce"},{"sequence":4294967294,"prev_out":{"spent":false,"tx_index":0,"type":0,"addr":"17p7cAMCNRH9Jzh3Yidg1mY9r1411iYxYT","value":148000,"n":0,"script":"76a9144ab9d1cb3e324b94cb80be7791d835a891248bdc88ac"},"script":"483045022100c711916c5b963fbfa05d393d66e05adcbecbfa7e85dc34a6f80e000a5cd123280220048abba527f2ea0cc1041209ff88f85f44da55493a5ec9705429f7d907ae29fb012103888f7df7a377f85750aa9f1dece1af682a31535ff205a4bf51e36ed844c32f00"}],
"time":1626694146,
"tx_index":0,
"vin_sz":3,
"hash":"5bb988ac204d1d95c8dde2186dcc026aaed64ad5b694879e46f661d9e30a95af",
"vout_sz":2,
"relayed_by":"",
"out":[{"spent":false,"tx_index":0,"type":0,"addr":"31spfJ7BMtaH1KKqXPjyS6ZzqCFVX2ebj5","value":668000,"n":0,"script":"a914020b2c7d50a2342f599013080215f64affbd657d87"},{"spent":false,"tx_index":0,"type":0,"addr":"12GBytrYwWxpAFoJic6w4ZpHMdiiSB2p6S","value":948000,"n":1,"script":"76a9140dd78818f4cfbb15157e16b33e60e12dfd1e8dbf88ac"}]}}
The text was updated successfully, but these errors were encountered: