getrawtransaction

Return the raw transaction data

If verbose is 'true', returns an Object with information about 'txid'. If verbose is 'false' or omitted, returns a string that is serialized, hex-encoded data for 'txid'.

Arguments:

  1. "txid" (string, required) The transaction id

  2. verbose (bool, optional, default=false) If false, return a string, otherwise return a json object

Example:

Request body:
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getrawtransaction",
  "params": ["6184be8245f2e0d29af318d2fedce6f3f3b63d03e50dd84ed754da00e00bc99e"]
}
Response body:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "02000000037287d9f75ffd06d8c44d64d41eb11597c02798d5d0844db1b568a3246043f905000000006a4730440220122681403f5ffbfbf8748ee02c5fecd5a3a28b5b08e311773e02c1b5c4d2492c022076706db95f3809ae3fd5200bcdc5fee30905e5c3f2b891a510d286bc054a3e5a012103a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7fefffffff3e08fd0f02ef5a1b22c31d035b63d3dbb6b13c152bcd1116a5255be2da39f48650100006a473044022004ea460f4f68c190dab7ca4eb41ee5f4ec86269359565f8806aaa864fecd15ad022010da19028bec62d37e9afd385014376ff54232ed189c7b31a6466f92077e85ba012103dd32b808f5993cf74afaaeff58137de5a4179462c3728a91d916165ff165f6c6feffffffa4c0da25c55fd0d62c04e114ffcb4d59dd27b74ab3ae95153b86ca7a95ec3398000000006b48304502210091c7f92ca06ed77d567218793eecf7f29e83cda77bc0983b4233c691edf722070220528001d43876a5c05b4cd33b86a5b4b7503a3adb59e5f3697ca56df0ca53c3ea012103a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7feffffff0200000000000000003a76a914dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a88acc01e72766e7411544553545f41535345545f414741494e2100e1f505000000007528b81000000000001976a914dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a88ac6a4b0300"
}


When verbose = true, the result in Json format is returned:
Request body:


{
  "jsonrpc": "2.0",
  "method": "getrawtransaction",
  "params": ["6184be8245f2e0d29af318d2fedce6f3f3b63d03e50dd84ed754da00e00bc99e", true],
  "id": 1
}



Response body:
{
  "txid": "6184be8245f2e0d29af318d2fedce6f3f3b63d03e50dd84ed754da00e00bc99e",
  "hash": "6184be8245f2e0d29af318d2fedce6f3f3b63d03e50dd84ed754da00e00bc99e",
  "version": 2,
  "size": 553,
  "vsize": 553,
  "locktime": 215914,
  "vin": [
    {
      "txid": "05f9436024a368b5b14d84d0d59827c09715b11ed4644dc4d806fd5ff7d98772",
      "vout": 0,
      "scriptSig": {
        "asm": "30440220122681403f5ffbfbf8748ee02c5fecd5a3a28b5b08e311773e02c1b5c4d2492c022076706db95f3809ae3fd5200bcdc5fee30905e5c3f2b891a510d286bc054a3e5a[ALL] 03a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7",
        "hex": "4730440220122681403f5ffbfbf8748ee02c5fecd5a3a28b5b08e311773e02c1b5c4d2492c022076706db95f3809ae3fd5200bcdc5fee30905e5c3f2b891a510d286bc054a3e5a012103a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7"
      },
      "sequence": 4294967294
    },
    {
      "txid": "489fa32dbe55526a11d1bc52c1136bbb3d3db635d0312cb2a1f52ef0d08fe0f3",
      "vout": 357,
      "scriptSig": {
        "asm": "3044022004ea460f4f68c190dab7ca4eb41ee5f4ec86269359565f8806aaa864fecd15ad022010da19028bec62d37e9afd385014376ff54232ed189c7b31a6466f92077e85ba[ALL] 03dd32b808f5993cf74afaaeff58137de5a4179462c3728a91d916165ff165f6c6",
        "hex": "473044022004ea460f4f68c190dab7ca4eb41ee5f4ec86269359565f8806aaa864fecd15ad022010da19028bec62d37e9afd385014376ff54232ed189c7b31a6466f92077e85ba012103dd32b808f5993cf74afaaeff58137de5a4179462c3728a91d916165ff165f6c6"
      },
      "sequence": 4294967294
    },
    {
      "txid": "9833ec957aca863b1595aeb34ab727dd594dcbff14e1042cd6d05fc525dac0a4",
      "vout": 0,
      "scriptSig": {
        "asm": "304502210091c7f92ca06ed77d567218793eecf7f29e83cda77bc0983b4233c691edf722070220528001d43876a5c05b4cd33b86a5b4b7503a3adb59e5f3697ca56df0ca53c3ea[ALL] 03a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7",
        "hex": "48304502210091c7f92ca06ed77d567218793eecf7f29e83cda77bc0983b4233c691edf722070220528001d43876a5c05b4cd33b86a5b4b7503a3adb59e5f3697ca56df0ca53c3ea012103a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7"
      },
      "sequence": 4294967294
    }
  ],
  "vout": [
    {
      "value": 0,
      "n": 0,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a OP_EQUALVERIFY OP_CHECKSIG OP_MEWC_ASSET 1e72766e7411544553545f41535345545f414741494e2100e1f5050000000075",
        "hex": "76a914dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a88acc01e72766e7411544553545f41535345545f414741494e2100e1f5050000000075",
        "reqSigs": 1,
        "type": "transfer_asset",
        "asset": {
          "name": "TEST_ASSET_AGAIN!",
          "amount": 1
        },
        "addresses": [
          "MU4wcTKpJs31KczQHjnmQKAXSKkvQDspuN"
        ]
      },
      "valueSat": 0
    },
    {
      "value": 0.0109572,
      "n": 1,
      "scriptPubKey": {
        "asm": "OP_DUP OP_HASH160 dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a OP_EQUALVERIFY OP_CHECKSIG",
        "hex": "76a914dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a88ac",
        "reqSigs": 1,
        "type": "pubkeyhash",
        "addresses": [
          "MU4wcTKpJs31KczQHjnmQKAXSKkvQDspuN"
        ]
      },
      "valueSat": 1095720
    }
  ],
  "hex": "02000000037287d9f75ffd06d8c44d64d41eb11597c02798d5d0844db1b568a3246043f905000000006a4730440220122681403f5ffbfbf8748ee02c5fecd5a3a28b5b08e311773e02c1b5c4d2492c022076706db95f3809ae3fd5200bcdc5fee30905e5c3f2b891a510d286bc054a3e5a012103a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7fefffffff3e08fd0f02ef5a1b22c31d035b63d3dbb6b13c152bcd1116a5255be2da39f48650100006a473044022004ea460f4f68c190dab7ca4eb41ee5f4ec86269359565f8806aaa864fecd15ad022010da19028bec62d37e9afd385014376ff54232ed189c7b31a6466f92077e85ba012103dd32b808f5993cf74afaaeff58137de5a4179462c3728a91d916165ff165f6c6feffffffa4c0da25c55fd0d62c04e114ffcb4d59dd27b74ab3ae95153b86ca7a95ec3398000000006b48304502210091c7f92ca06ed77d567218793eecf7f29e83cda77bc0983b4233c691edf722070220528001d43876a5c05b4cd33b86a5b4b7503a3adb59e5f3697ca56df0ca53c3ea012103a7f388e2f103bde878d2440f0fa2b2b6c2d9c0798c24bf0e95e49c981a6b0db7feffffff0200000000000000003a76a914dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a88acc01e72766e7411544553545f41535345545f414741494e2100e1f505000000007528b81000000000001976a914dd3c23f2e2130cdce8bef3e4e2adc8e7d9441f7a88ac6a4b0300",
  "blockhash": "00000000004cf0cfa040f65d5c45ae03d074a8f43c286ab86b84046fafab8d8c",
  "height": 215915,
  "confirmations": 3616,
  "time": 1675439535,
  "blocktime": 1675439535
}

Last updated