Bitcoin Forum
May 14, 2024, 05:13:58 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Service Discussion / Help defining the schema for the Web Socket Kafka Producer API for bitcoin data? on: March 13, 2018, 02:42:31 AM
Hello,

I am looking for help in identifying the fields and the data that the Web Socket Kafka Producer API produces.  Below is a sample of a block.  Is there a resource that explains the JSON below? Shocked

closing websocket
CloseReason[1000,Session closed by the container because of the idle timeout.]
opening websocket
--Sending 53 to topic: bitcoin --------
{
  "op" : "utx",
  "x" : {
    "lock_time" : 0,
    "ver" : 1,
    "size" : 408,
    "inputs" : [ {
      "sequence" : 4294967295,
      "prev_out" : {
        "spent" : true,
        "tx_index" : 336028388,
        "type" : 0,
        "addr" : "3Q6gAbAEoBMFA8kdRit1g7agoCjzZF6JRt",
        "value" : 177182689,
        "n" : 1,
        "script" : "a914f5cc41dfe156bd6bb4b44c1dfd19564187bcd2ca87"
      },
      "script" : "220020c5439b038acf098b546010ad591d8ab6b3be6eff52c0f957983942badc911918"
    } ],
    "time" : 1520908327,
    "tx_index" : 336033077,
    "vin_sz" : 1,
    "hash" : "d9b95f25a38cda92db18f7cab1643601492ed81a7876abddd60eb478673bd7fb",
    "vout_sz" : 2,
    "relayed_by" : "0.0.0.0",
    "out" : [ {
      "spent" : false,
      "tx_index" : 336033077,
      "type" : 0,
      "addr" : "32CD6SjV2PkdpnL9qpB7XiCr1o4rDRmKdc",
      "value" : 176843231,
      "n" : 0,
      "script" : "a91405856341e929164a5ba7584bbe6fcd706576938687"
    }, {
      "spent" : false,
      "tx_index" : 336033077,
      "type" : 0,
      "addr" : "1GqXdfPBzFJJsVfvquibWkwBC58JNhq6dF",
      "value" : 338497,
      "n" : 1,
      "script" : "76a914adb76c5e23d0ab92404bd77059ce26c5d278be0d88ac"
    } ]
  }
2  Economy / Service Discussion / Help understanding the WebSocket API Kafka Producer to analyze Bitcoin data on: March 13, 2018, 02:16:26 AM
Hello,

I am working on a data analysis project using the WebSocket API as a Kafka producer to analyze Bitcoin data. I am looking for help with these questions to help better understand what data is being returned:

1. I am looking for more information about the API.  I have this site, https://blockchain.info/api/api_websocket but looking for more details.
2.  what data is being provided?
3. What can I do with the unconfirmed transactions?
4. How does it relate to the block clearing events?
5.  How can I analyze the data coming from the API?

Thanks, Smiley

Paul

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!