我使用websocketapi作为kafka生产者来查看来自比特币的交易管道。我不明白什么是退货。我看到了json,但我正在寻找模式的解释。我试图分析来自比特币数据源的数据。你知道有什么资源可以帮助你吗?
------- 6003 --------
closing websocket
CloseReason[1000,Closing]
opening websocket
--Sending 6004 to topic: bitcoin --------
{
"op" : "utx",
"x" : {
"lock_time" : 0,
"ver" : 1,
"size" : 422,
"inputs" : [ {
"sequence" : 4294967295,
"prev_out" : {
"spent" : true,
"tx_index" : 327471315,
"type" : 0,
"addr" : "3K6GADZAGUY9wwpHNepYh4ftuxPiMHXAP3",
"value" : 89940000,
"n" : 1,
"script" : "a914bedf96bef59527b35737b2773c49bc016de542a587"
},
"script" : "160014887473e9feda6f65b5de955e211a9bb488e4b071"
}, {
"sequence" : 4294967295,
"prev_out" : {
"spent" : true,
"tx_index" : 327470386,
"type" : 0,
"addr" : "3LiPcUF3ZYNK8cEvPELFHdDBTwwyytUUbD",
"value" : 110000000,
"n" : 0,
"script" : "a914d0ace910be659d76de99dd80ef40a921169a974087"
},
"script" : "160014e318aae7a934fb5dfbf4826c11b9c6109dc6f120"
} ],
"time" : 1520916510,
"tx_index" : 336047432,
"vin_sz" : 2,
"hash" : "10b0db471e18cacc3c16215d5e6f3df0035c89ddff5a6bb18f095447b4f0a1e6",
"vout_sz" : 2,
"relayed_by" : "0.0.0.0",
"out" : [ {
"spent" : false,
"tx_index" : 336047432,
"type" : 0,
"addr" : "18sfS476hFMkuofHZrk8DdXCywQw7mUk23",
"value" : 100000000,
"n" : 0,
"script" : "76a914565dc28ca3096f16816adc010da34ec93939ca1588ac"
}, {
"spent" : false,
"tx_index" : 336047432,
"type" : 0,
"addr" : "3LLDLeqhnJWXweGDtdWrP1ZbFSoEyPuoUM",
"value" : 99934000,
"n" : 1,
"script" : "a914cc7b2f1c398a99e4602779273598bbad9d2bb10787"
} ]
}
}
1条答案
按热度按时间xbp102n01#
使用此工具https://jsonschema.net/ 我能产生这个