New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

波场交易数据结构 #17

Closed
kaidiren opened this Issue Dec 27, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@kaidiren
Copy link
Owner

kaidiren commented Dec 27, 2018

TRX 转账交易

image

原始链接 https://tronscan.org/#/block/5280765/transfers
交易数据如下, trx 的进度为 6位

{
  "ret": [
    {
      "contractRet": "SUCCESS"
    }
  ],
  "signature": [
    "a2d57b74cdbbfddf2a770ff1521f6a7811d1ed23474e2a4774324bd8a3e779810bcb5685bff32aeac50d5c0ee74ab5ff53d4ae901394d88ed666c8e03865c21801"
  ],
  "txID": "d7ac8443d29c96748f2ca2dd0f04b0027ad6e40a534eddfe841a3dd6c37a7536",
  "raw_data": {
    "contract": [
      {
        "parameter": {
          "value": {
            "amount": 199999900000,
            "owner_address": "410d0707963952f2fba59dd06f2b425ace40b492fe",
            "to_address": "41bcaf8ed84fb2fd98dbd81a74613d607abf88745e"
          },
          "type_url": "type.googleapis.com/protocol.TransferContract"
        },
        "type": "TransferContract"
      }
    ],
    "ref_block_bytes": "9274",
    "ref_block_hash": "950e6861e80b6fbc",
    "expiration": 1545897029528,
    "fee_limit": 100000
  }
}

TRX 智能合约调用

image

原始链接 https://tronscan.org/#/transaction/f878b9b7cd351e512357de2b85be7ea9f85041cbbe7e1057b1cdf18244e4b176

{
  "ret": [
    {
      "contractRet": "SUCCESS"
    }
  ],
  "signature": [
    "a44921271007dd995e2ce5cc7ca76d9b378d9e03328e577ebd5a95b5b4db964c82d358b01ecd71412a1eebea3e3f7e773d6f9a211dec77cfae9809ef7b53e93500"
  ],
  "txID": "f878b9b7cd351e512357de2b85be7ea9f85041cbbe7e1057b1cdf18244e4b176",
  "raw_data": {
    "contract": [
      {
        "parameter": {
          "value": {
            "data": "a3082be900000000000000000000000000000000000000000000000000000000000000540000000000000000000000000000000000000000000000000000000000000000",
            "owner_address": "41ff587581be807d3a90d73a7fd1def7c51d6c62ed",
            "contract_address": "412ec5f63da00583085d4c2c5e8ec3c8d17bde5e28",
            "call_value": 260000000
          },
          "type_url": "type.googleapis.com/protocol.TriggerSmartContract"
        },
        "type": "TriggerSmartContract"
      }
    ],
    "ref_block_bytes": "93fb",
    "ref_block_hash": "ce06b75e2217ad39",
    "expiration": 1545895287000,
    "fee_limit": 6000000,
    "timestamp": 1545895230504
  }
}

TRX 通证转账

image

原始链接 https://tronscan.org/#/transaction/228b24129b2dbde8692e44f6943b28f3df6f6a514667ea316894cddbac6c8d4c

{
  "ret": [
    {
      "contractRet": "SUCCESS"
    }
  ],
  "signature": [
    "09c9354006b6854217241f7061eb32ae0d03537c1caa7c4fdf2b99f1b8b906bb7ae9e9be80a24db4008f90bf83955612ec31a594e394f2e835324b1a11f18c3b01"
  ],
  "txID": "228b24129b2dbde8692e44f6943b28f3df6f6a514667ea316894cddbac6c8d4c",
  "raw_data": {
    "contract": [
      {
        "parameter": {
          "value": {
            "amount": 4,
            "asset_name": "434244",
            "owner_address": "41ed7c12a59e5134c3e365e6e0711803ea16328e60",
            "to_address": "4116d7c90a41da1b2cc818704124bfbfa6d0de84dd"
          },
          "type_url": "type.googleapis.com/protocol.TransferAssetContract"
        },
        "type": "TransferAssetContract"
      }
    ],
    "ref_block_bytes": "9397",
    "ref_block_hash": "48ee569e4bf577bc",
    "expiration": 1545895218000,
    "timestamp": 1545894920723
  }

其他全部详情 https://github.com/tronprotocol/Documentation/blob/master/%E4%B8%AD%E6%96%87%E6%96%87%E6%A1%A3/%E6%B3%A2%E5%9C%BA%E5%8D%8F%E8%AE%AE/%E4%BA%A4%E6%98%93%E6%93%8D%E4%BD%9C%E7%B1%BB%E5%9E%8B%E8%AF%B4%E6%98%8E.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment