Skip to main content

get_out_info

Looks up an output in the global outputs table by specified amount and output global index.

Request

{
"jsonrpc": "2.0",
"id": 0,
"method": "get_out_info",
"params": {
"amount": 1,
"i": 1
}
}

Request parameters

  • amount - unsigned int; the output denomination, in atomic units. The global output table is partitioned per amount, so this selects which table to look in.
  • i - unsigned int; the global index of the output within the table for the given amount — that is, the zero-based position of the output among all outputs of that amount, in the order they were added to the blockchain. This is the same value that appears as global_index in get_tx_details and in the global_indexes arrays of transaction inputs.

Response

{
"id": 0,
"jsonrpc": "2.0",
"result": {
"out_no": 0,
"status": "OK",
"tx_id": "5b3bb20dee6307b11f65f8fe2b976efdec570b46241e41df33e85f4cf2332b2a"
}
}

Response information

  • out_no - unsigned int; output local index in its source transaction.
  • status - string; "OK" if the output was found, "NOT FOUND" if the requested output was not found.
  • tx_id - string; hash identifier of output's source transaction.