Skip to main content

get_tx_details

Returns transaction details by specified transaction hash identifier.

Request

{
"jsonrpc": "2.0",
"id": 0,
"method": "get_tx_details",
"params": {
"tx_hash": "ee25a5503726368eef558737f81f15fdc5f1e705b678df81315c83d8789ed4b3"
}
}

Request parameters

  • tx_hash - hash identifier of a transaction

Response

{
"id": 0,
"jsonrpc": "2.0",
"result": {
"status": "OK",
"tx_info": {
"amount": 50000000000000,
"attachments": [
{
"datails_view": "f8e7d6c5b4a39281",
"short_view": "P:",
"type": "service"
}
],
"blob": "",
"blob_size": 5377,
"extra": [
{
"datails_view": "",
"short_view": "(encrypted)",
"type": "payer"
},
{
"datails_view": "",
"short_view": "(encrypted)",
"type": "receiver"
},
{
"datails_view": "",
"short_view": "76a7575f488a5a32a766fc5da6d190cab4e90b1ab6d0178eed622a79e922a70d",
"type": "pub_key"
},
{
"datails_view": "0000",
"short_view": "0000",
"type": "FLAGS16"
},
{
"datails_view": "derivation_hash: 1c6e466c\nencrypted_key_derivation: 3d4cf9081c1abea76b595f7226a7d12faa596d33c93f16f4bbfb8856c4895ea9",
"short_view": "derivation_hash: 1c6e466c",
"type": "crypto_checksum"
},
{
"datails_view": "2013",
"short_view": "2 bytes",
"type": "derivation_hint"
},
{
"datails_view": ", \n\"sz\": 16, \n\"hsh\": \"eb9562934daa508c1f0d5a91cbe9322f0e363287676ab4398f65c9cb5bae8a99\", \n\"cnt\": 1",
"short_view": "16 bytes",
"type": "attachment_info"
}
],
"fee": 10000000000,
"id": "ee25a5503726368eef558737f81f15fdc5f1e705b678df81315c83d8789ed4b3",
"ins": [
{
"amount": 40000000000000,
"global_indexes": [
1471,
2212,
2224,
2231,
2410,
2508,
2689,
2823,
2969,
3017,
3379
],
"htlc_origin": "",
"kimage_or_ms_id": "e254e999afba8b58a608b2634a9420652b7ad084f27bc1a54328c67ea3a9ccad",
"multisig_count": 0
},
{
"amount": 5000000000000,
"global_indexes": [
1075,
1298,
12282,
12776,
14376,
15954,
16160,
17428,
18450,
24724,
27140
],
"htlc_origin": "",
"kimage_or_ms_id": "b4bbead78a93497bfc6e824f8912cde9293094086f8b9a1ece7a1de86bbe78b2",
"multisig_count": 0
},
{
"amount": 4000000000000,
"global_indexes": [
1426,
1664,
3516,
4478,
6674,
7302,
9144,
10512,
12721,
13115,
16637
],
"htlc_origin": "",
"kimage_or_ms_id": "8e59f6489a30ec67742dc81ab183b97f8a77bd9417f1a3d2578cf4091d32c564",
"multisig_count": 0
},
{
"amount": 900000000000,
"global_indexes": [
15912,
18039,
19507,
20049,
23693,
24192,
24966,
31687,
42782,
43082,
48814
],
"htlc_origin": "",
"kimage_or_ms_id": "3a684270c3ec0a32ed15123a17bd7f29ff0ee3ad2500831cbbc570f7b20b8c0e",
"multisig_count": 0
},
{
"amount": 90000000000,
"global_indexes": [
67559,
76419,
87859,
117969,
119009,
126366,
136622,
161655,
215760,
229083,
250363
],
"htlc_origin": "",
"kimage_or_ms_id": "61ff1dfb6b724c3dba0c16859aa72d014be37c92a44a7b48a17d8ae92d41030a",
"multisig_count": 0
},
{
"amount": 20000000000,
"global_indexes": [
13363,
17153,
34369,
46685,
65871,
75813,
93056,
97252,
113935,
120851,
133386
],
"htlc_origin": "",
"kimage_or_ms_id": "ec65b4482a5f8e49e09303da57f4054f19e68f4a4aeab935bca62a9d4297def7",
"multisig_count": 0
}
],
"keeper_block": 2110251,
"object_in_json": "",
"outs": [
{
"amount": 50000000000000,
"global_index": 3950,
"is_spent": false,
"minimum_sigs": 0,
"pub_keys": [
"e04eda49011a30b81629a279285ffda8d69e712b438ecfcc094a26481d8663de"
]
}
],
"pub_key": "76a7575f488a5a32a766fc5da6d190cab4e90b1ab6d0178eed622a79e922a70d",
"timestamp": 1684328300
}
}
}

Response information

  • status - string; call result. OK if the transaction was found and returned. If the hash is malformed or no transaction with the given hash exists in either the blockchain or the tx pool, the call returns a JSON-RPC error object instead of a result, so status is only ever present on success.

  • tx_info - object; the transaction details. Its fields are described below.

  • amount - unsigned int; sum of transaction outputs.

  • attachments - array of objects; list of transaction attachments. Each item has the same type / short_view / datails_view shape as the items of extra, described below.

  • blob - string; reserved for the raw serialized transaction blob. The core does not populate it for this call, so it is always returned as an empty string.

  • blob_size - unsigned int; size of serialized transaction in bytes.

  • extra - array of objects; list of extra items. Each item is a human-readable rendering of one entry of the transaction extra field:

    • type - string; the kind of the entry. Observed values: pub_key, payer, payer_old, receiver, receiver_old, crypto_checksum, derivation_hint, attachment_info, alias_info, user_data, extra_padding, comment, service, pos_time, unlock_time, expiration_time, details_flags, FLAGS16, string.
    • short_view - string; a compact one-line summary of the entry, suitable for a list view. For example a hex key for pub_key, "<N> bytes" for opaque blobs, "(encrypted)" for entries whose content is encrypted for the recipient only, or "<service_id>:<instruction>" for service entries.
    • datails_view - string; the expanded rendering of the same entry — typically the full hex dump or a JSON-serialized form. Empty for entries that carry no extra detail beyond short_view, and for entries whose content is encrypted. (The field name is misspelled in the API itself; the key really is datails_view, so it is documented here as-is.)
  • fee - unsigned int; transaction fee.

  • id - string; hash identifier of the transaction.

  • ins - array of objects; list of inputs. Fields of each item:

    • amount - unsigned int; amount of the input, in atomic units. 0 for the generation (coinbase) input of a miner tx.
    • global_indexes - array of unsigned ints; absolute global output indices of the outputs referenced by this input (the decoys and the real one, indistinguishable from each other). These are computed by expanding the relative offsets stored in the transaction. A value of 18446744073709551615 (2^64 - 1) indicates a reference stored by id rather than by global index.
    • kimage_or_ms_id - string; hex-encoded key image of the input for regular and HTLC inputs, or the multisig output id for multisig inputs. Empty for the generation input of a miner tx.
    • multisig_count - unsigned int; number of signatures provided for a multisig input. 0 for non-multisig inputs.
    • htlc_origin - string; for an HTLC redeem input, the hex-encoded origin secret that unlocks the HTLC. Empty for all other input types.
  • keeper_block - signed int; height of the block containing this transaction. -1 means the transaction is still unconfirmed and is only present in the tx pool.

  • object_in_json - string; JSON-serialized transaction object, as produced by the core's own serializer. Returned empty by this call.

  • outs - array of objects; list of transaction outputs. Fields of each item:

    • amount - unsigned int; amount of the output, in atomic units.
    • global_index - unsigned int; index of this output in the global index of outputs with the same amount; this is the value other transactions use to reference this output. 0 for outputs of transactions that are not yet in the blockchain.
    • is_spent - boolean; true if this output has already been spent in the main chain. Always false for outputs of unconfirmed transactions.
    • minimum_sigs - unsigned int; for a multisig output, the minimum number of signatures required to spend it. 0 for ordinary and HTLC outputs.
    • pub_keys - array of strings; hex-encoded one-time public keys of the output. An ordinary output has exactly one key, a multisig output has one per participant, and an HTLC output has two, suffixed with (htlc_pkey_redeem) and (htlc_pkey_refund). An ordinary output key may additionally be suffixed with (FORCED_NO_MIX) or (FORCED_MIX_LOWER_BOUND: N) when its mix attribute constrains how it may be mixed.
  • pub_key - string; transaction public key.

  • timestamp - unsigned int; actual timestamp of the block containing this transaction.