Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 529 Bytes

gettransactionheight.md

File metadata and controls

40 lines (30 loc) · 529 Bytes

gettransactionheight method

Return the block index in which the transaction is found.

{
  "jsonrpc": "2.0",
  "method": "gettransactionheight",
  "params": [txid],
  "id": 1
}

Parameter Description

  • txid: Transaction id.

Example

Request body:

{
  "jsonrpc": "2.0",
  "method": "gettransactionheight",
  "params": ["9ae1fd32d525eff2a1bb1fc8d0cd2cfb4cc97a06a232bb87fc58e4fe3bc2a845"],
  "id": 1
}

Response body:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": 251488
}