Blockchair / Blockchair.Support

Public repository for issues and feature requests. Submit your favorite bug!
425 stars 318 forks source link

API does not serve TX timestamp #168

Open 1Hyena opened 5 years ago

1Hyena commented 5 years ago

As you can see, the below response to the given API call does not include the timestamp of the TX nor the block time.

https://api.blockchair.com/bitcoin-sv/raw/transaction/e995f5b50e96cf900efa274a0687a2a2e095127acc24de2dbf0c1c99798a867f

{
  "data": {
    "e995f5b50e96cf900efa274a0687a2a2e095127acc24de2dbf0c1c99798a867f": {
      "raw_transaction": "0200000001b027d46c09b43e7d99fd7f1543d1ffdcb5431d125f8dd1057a4b21978e0623cb000000006a47304402207b82f4359f8ec6864a7ddcc2c149375ff10f07559b0044e915e1664cd636afe3022045aaa1c7b76980ab75a14a9d7c4243a74d0319ea7a81af94d59bee5637c61aa44121026581457292212bdd776c37aea66a8623c82da1fabb36a3f57cf244f9f32c7d1effffffff0222020000000000001976a914736f6d65206d6f72652074657374696e672e2e2e88acb51e0000000000001976a914e0d5bb445eb24541a8a921fb5db14de5479b779388ac00000000",
      "decoded_raw_transaction": {
        "txid": "e995f5b50e96cf900efa274a0687a2a2e095127acc24de2dbf0c1c99798a867f",
        "hash": "e995f5b50e96cf900efa274a0687a2a2e095127acc24de2dbf0c1c99798a867f",
        "size": 225,
        "version": 2,
        "locktime": 0,
        "vin": [
          {
            "txid": "cb23068e97214b7a05d18d5f121d43b5dcffd143157ffd997d3eb4096cd427b0",
            "vout": 0,
            "scriptSig": {
              "asm": "304402207b82f4359f8ec6864a7ddcc2c149375ff10f07559b0044e915e1664cd636afe3022045aaa1c7b76980ab75a14a9d7c4243a74d0319ea7a81af94d59bee5637c61aa4[ALL|FORKID] 026581457292212bdd776c37aea66a8623c82da1fabb36a3f57cf244f9f32c7d1e",
              "hex": "47304402207b82f4359f8ec6864a7ddcc2c149375ff10f07559b0044e915e1664cd636afe3022045aaa1c7b76980ab75a14a9d7c4243a74d0319ea7a81af94d59bee5637c61aa44121026581457292212bdd776c37aea66a8623c82da1fabb36a3f57cf244f9f32c7d1e"
            },
            "sequence": 4294967295
          }
        ],
        "vout": [
          {
            "value": 0.00000546,
            "n": 0,
            "scriptPubKey": {
              "asm": "OP_DUP OP_HASH160 736f6d65206d6f72652074657374696e672e2e2e OP_EQUALVERIFY OP_CHECKSIG",
              "hex": "76a914736f6d65206d6f72652074657374696e672e2e2e88ac",
              "reqSigs": 1,
              "type": "pubkeyhash",
              "addresses": [
                "bitcoincash:qpek7mt9ypkk7un9yp6x2um5d9hxwt3w9cgy8xcc5m"
              ]
            }
          },
          {
            "value": 0.00007861,
            "n": 1,
            "scriptPubKey": {
              "asm": "OP_DUP OP_HASH160 e0d5bb445eb24541a8a921fb5db14de5479b7793 OP_EQUALVERIFY OP_CHECKSIG",
              "hex": "76a914e0d5bb445eb24541a8a921fb5db14de5479b779388ac",
              "reqSigs": 1,
              "type": "pubkeyhash",
              "addresses": [
                "bitcoincash:qrsdtw6yt6ey2sdg4yslkhd3fhj50xmhjv3rnw63sf"
              ]
            }
          }
        ]
      }
    }
  },
  "context": {
    "code": 200,
    "source": "R",
    "time": 0.0015299320220947266,
    "results": 1,
    "state": 567042,
    "cache": {
      "live": true,
      "duration": 60,
      "since": "2019-01-27 11:38:11",
      "until": "2019-01-27 11:39:11",
      "time": null
    },
    "api": {
      "version": "2.0.9e",
      "last_major_update": "2018-07-19 18:07:19",
      "next_major_update": null,
      "tested_features": "omni-v.a1,whc-v.a1,aggregate-v.b2,ipfs-nodes-v.a1,bsv-v.b1",
      "documentation": "https://github.com/Blockchair/Blockchair.Support/blob/master/API.md"
    }
  }
}
Har01d commented 5 years ago

Hello,

This API call returns data directly from our SV node. In order to get data generated by Blockchair (including the timestamp) you can use this call: https://api.blockchair.com/bitcoin-sv/dashboards/transaction/e995f5b50e96cf900efa274a0687a2a2e095127acc24de2dbf0c1c99798a867f

1Hyena commented 5 years ago

@Har01d thanks for the reply. Does blockchair also accept Bitcoin SV donations? If so then have you published your donation address somewhere publicly?

Har01d commented 5 years ago

Thank you for your kind words! We don’t have a donation address, but we’ll soon announce our Private API plans, so if you’d like to support Blockchair while using our API, you’d be able to switch to some of the paid plans.

1Hyena commented 5 years ago

@Har01d I would like to keep using your public API but my business model allows sending a part of the profits to the block explorers that my clients use behind the scenes. For that reason I would like it if you gave me your BSV receiving address.