Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Frodek on August 12, 2019, 11:12:45 AM



Title: [LTC][RPC] How get coinbase transaction
Post by: Frodek on August 12, 2019, 11:12:45 AM
For block 500000 RPC returns:
Code:
{
   "result":{
      "hash":"65858117fadcff3b591ad4cbd320ecd3b0a63ffda1db9609822cf09ade790aa9",
      "confirmations":1183701,
      "strippedsize":10184,
      "size":10184,
      "weight":40736,
      "height":500000,
      "version":2,
      "versionHex":"00000002",
      "merkleroot":"2a5a10a1fdfb8f1d4278fb15a04d5b0b1d0859f711172528478fceb40dfdb199",
      "tx":[
         "7290af5dd8bfebda2852c0949742b110cfcf8931c40ff5a5aac18329bcbf0540",
         "9b9047924ce1a690b90d38c922666baf18ea5259d26890193f5b7d3a9921b5a5"
      ],
      "time":1390125501,
      "mediantime":1390125244,
      "nonce":3490506240,
      "bits":"1b10641b",
      "difficulty":3998.221714145278,
      "chainwork":"0000000000000000000000000000000000000000000000000ccc596c88108dfb",
      "nTx":2,
      "previousblockhash":"10eace66f33e4648a202c88a9a3296a01737e9d3f5bfa1a2b90df57efde5498f",
      "nextblockhash":"dd7c727ff0f5d825c3ce15d608dd63d48a41647369ba1afa79d5ae9760b8f209"
   },
   "error":null,
   "id":"curltest"
}

Second (9b9047924ce1a690b90d38c922666baf18ea5259d26890193f5b7d3a9921b5a5) is big transaction, but first (7290af5dd8bfebda2852c0949742b110cfcf8931c40ff5a5aac18329bcbf0540) is not found, and block explorer also has not this:
https://live.blockcypher.com/ltc/block/65858117fadcff3b591ad4cbd320ecd3b0a63ffda1db9609822cf09ade790aa9/ (https://live.blockcypher.com/ltc/block/65858117fadcff3b591ad4cbd320ecd3b0a63ffda1db9609822cf09ade790aa9/)