Skip to content

gettransaction blockindex does not return height of block that includes transaction #7532

@pinheadmz

Description

@pinheadmz

This transaction definitely did not get confirmed in block 634!

Is the documentation incorrect?

https://bitcoin.org/en/developer-reference#gettransaction

or...

" \"blockindex\" : xx, (numeric) The block index\n"

...or I am seriously misunderstanding the object returned by this RPC call?

$ gettransaction ef27b4d74497780096b466164e90ac12b1b7bd695246d4b1b232195ed168782e

  {
    "account": "",
    "address": "1DjDpiQaWtTeK4vLFqUH9G3ZkQF2oaxmap",
    "category": "receive",
    "amount": 0.00258000,
    "label": "",
    "vout": 0,
    "confirmations": 7,
    "blockhash": "000000000000000000ca6aa53efc2b89b82eca3e2dfcd942951e2b3fdfae6e67",
    "blockindex": 634,
    "blocktime": 1455395504,
    "txid": "ef27b4d74497780096b466164e90ac12b1b7bd695246d4b1b232195ed168782e",
    "walletconflicts": [
    ],
    "time": 1455394848,
    "timereceived": 1455394848,
    "bip125-replaceable": "no"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions