# Blockmeta API

# 使用方式

Base URL:bcapi.movapi.com/blockmeta/bytom2/v1

Curl -X GET http://bcapi.movapi.com/blockmeta/bytom2/v1/block?height=100

# 自定义错误码

错误码 错误消息 错误描述
10000 "server inner error" 服务器内部错误
20001 "request param is not valid" 参数错误
20002 "request param is null" 参数缺失
30001 "block hash is not correct" 区块哈希错误
30002 "block height is not correct" 区块高度错误
30003 "transaction hash is not correct" 交易哈希错误
30004 "asset id is not correct" 资产id错误
30005 "timestamp is not correct" 时间戳错误

# API列表


# 查询参数

GET /search

查询参数是否在数据库中,并获取数据类型(地址/区块高度/交易哈希/区块哈希)

# 请求参数
  • String - data, 待查询的数据
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • String - type, 数据类型,包括[transaction,block,address]
# 示例
Curl -X GET /search?data=c335a393db951760acb8a74c739e0e4c860598d64421bfc563ce6d367c822122

{
  "code": 200,
  "msg": "",
  "data": {
    "type": "transaction"
  }
}

# 查询区块

GET /block

根据区块高度或者区块哈希查询区块信息

# 请求参数

请求参数不能为空,必须至少含有以下之一

  • String - hash, 待查询的区块哈希
  • Integer - height, 待查询的区块高度
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Object - header, 区块头信息
    • String - hash, 区块哈希
    • Integer - height, 区块高度
    • String - previous_block_hash, 上一个区块哈希
    • String - merkle_root, 默克尔树根
    • integer - size,区块大小
    • integer - timestamp, 时间戳
    • integer - transaction_count, 交易数
  • Object - validator, 出块节点
    • String - pub_key, 节点公钥
    • String - validator_name, 出块节点中文名
    • String - validator_name_english, 出块节点英文名
  • Array of Object - transactions, 交易信息列表,包含该区块的所有交易
    • String - hash, 交易哈希
    • String - fee, 交易费用
    • Integer - size, 交易体积
    • Array of String -tx_types,交易类型[普通交易"ordinary",出块交易"coinbase",资产发行交易"issuance",投票交易"vote",取消投票交易"veto",跨链交易 "cross_chain",链式交易"chain_tx"]
    • Array of Object - inputs, 交易输入信息
      • String -type, 输入类型['spend', 'issue', 'coinbase','veto']
      • String - amount, 资产数值
      • String - program, control_program
      • Object -* decoded_program*, 解析的control_program
      • String - address, 账户地址,在输入类型是spend时存在
      • Object - asset, 输入的资产信息
        • String - id, 资产id
        • String - symbol, 资产名称
    • Array of Object - outputs, 交易输出信息
      • String - type, 输出类型["ordinary", "vote","retire"]
      • String - address, 输出地址
      • String - amount, 资产数值
      • String - program, control_program
      • Object - decoded_program, 解析的control_program
      • Object - asset, 输出的资产信息
        • String - id, 资产id
        • String - symbol, 资产名称
# 示例
Curl -X GET /block?height=100

{
  "code": 200,
  "msg": "",
  "data": {
    "header": {
      "hash": "c7bfc4f264c183bf67518496dad1860f83aced4bbb69d0d5483e4c5c6c5d4289",
      "height": 100,
      "previous_block_hash": "b376ad51d35e81c65f333e9a3e45520ee9da30b3384aaf113f0ad9ff1b187666",
      "merkle_root": "c47d425b3e2c04d19050ef98cf994a2402e915dacd420e64439a1d39a8cc4be4",
      "size": 652,
      "timestamp": 1629425448,
      "transaction_count": 1,
      "validator": {
        "pub_key": "1313379b05c38ff2d171d512f23f199f0f068a67d77b9d5b6db040f2da1edc0c35c68a21b068956f448fed6441b9c27294f1ca6aaedc2c580de322f3f0260c1f",
        "name_zh": "创世节点",
        "name_en": "Genesis node"
      }
    },
    "transactions": [
      {
        "hash": "54f48bcc033886bc28fd7cfe2a15d3b82690280726c40ddc12045f86bcd3d08b",
        "fee": "0.0000000000",
        "size": 152,
        "tx_types": [
          "coinbase"
        ],
        "inputs": [
          {
            "type": "coinbase",
            "amount": "0.0000000000",
            "program": "",
            "decoded_program": "",
            "address": "smart contract",
            "asset": {
              "id": "0000000000000000000000000000000000000000000000000000000000000000",
              "symbol": ""
            }
          }
        ],
        "outputs": [
          {
            "type": "ordinary",
            "amount": "0.0000000000",
            "program": "00147979dd397652cc9e02e6f361614a645ea0f79cfc",
            "decoded_program": "DUP \nHASH160 \nDATA_20 7979dd397652cc9e02e6f361614a645ea0f79cfc\nEQUALVERIFY \nTXSIGHASH \nSWAP \nCHECKSIG \n",
            "address": "bn1q09ua6wtk2txfuqhx7dskzjnyt6s0088ulmsrpr",
            "asset": {
              "id": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
              "symbol": "BTM"
            }
          }
        ]
      }
    ]
  }
}

# 查询区块头

GET /block-headers

分页查询区块头

# 请求参数
  • Integer - start, 分页开始位置
  • Integer - limit, 每页数量
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Array - object, 区块头信息
    • String - hash, 区块哈希
    • Integer - height, 区块高度
    • String - previous_block_hash, 上一个区块哈希
    • String - merkle_root, 默克尔树根
    • Integer - size, 区块大小
    • Integer - timestamp, 时间戳
    • Integer - transaction_count, 交易数
    • Object - validator, 出块节点
      • String - pub_key, 节点公钥
      • String - name_zh, 出块节点中文名
      • String - name_en, 出块节点英文名
# 示例
Curl -X GET /block-headers?/blocks?start=10&limit=2

{
  "code": 200,
  "msg": "",
  "data": [
    {
      "hash": "2f5bfa3a2b6f6b917c0b81d938a012563bfa1d26bd2709f2314864e55dad9b78",
      "height": 54705,
      "previous_block_hash": "7f36f3855102d427074f8679b8ce506b82cb086d1bdfda1ddd55a2f429f855e3",
      "merkle_root": "e7ec1b0cf151c8e97ae696d744bbe3e4d69af5d424eb2841f17b3f3d4226d0af",
      "size": 446,
      "timestamp": 1629798444,
      "transaction_count": 1,
      "validator": {
        "pub_key": "380d8820818167c67b8e677062e6d6daf6302583b7e205f1eaa2e3446c777aab1d0fc48b101cc2a081e6cbf361d78016596c241d5e69eca09176ce05c1bf397b",
        "name_zh": "Bytom海外社区",
        "name_en": "Bytom-Community"
      }
    },
    {
      "hash": "7f36f3855102d427074f8679b8ce506b82cb086d1bdfda1ddd55a2f429f855e3",
      "height": 54704,
      "previous_block_hash": "1c62b0deda7d7dfb80407f21bc850ec696f3c0e44d4e9cbbafb58d924510d21d",
      "merkle_root": "73c259ec9b04ddda4dc624ec6d58690284d82f83c356412daf89231f459399f4",
      "size": 446,
      "timestamp": 1629798438,
      "transaction_count": 1,
      "validator": {
        "pub_key": "1ab83450661e1de973e7be2a8a4ba7d4634996f327a6c59b10d59bfd96df6dc5d7afd5b287b1ad96809d89b915ef7002143a33dd06872376927fff589046ec0d",
        "name_zh": "链节点",
        "name_en": "ChainNode"
      }
    }
  ],
  "pagination": {
    "start": 0,
    "limit": 2,
    "total": 54706,
    "_links": {
      "next": "/blockmeta/bytom2/v1/block-headers?limit=2&start=2"
    }
  }
}

# 查询交易

GET /transaction

通过交易ID查询交易

# 请求参数
  • String - hash, 交易ID
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Object - data, 区块信息
    • String - hash, 交易哈希
    • Integer - block_height, 区块高度
    • Integer - block_hash, 区块哈希
    • String - fee, 交易费用
    • integer - size,交易体积
    • integer - timestamp, 时间戳
    • Array of String -tx_types,交易类型[普通交易"ordinary",出块交易"coinbase",资产发行交易"issuance",投票交易"vote",取消投票交易"veto",跨链交易 "cross_chain",链式交易"chain_tx"]
    • Array of Object - inputs, 交易输入信息
      • String -type, 输入类型['spend', 'issue', 'coinbase','veto']
      • String - amount, 资产数值
      • String - program, control_program
      • Object -* decoded_program*, 解析的control_program
      • String - address, 账户地址,在输入类型是spend时存在
      • Object - asset, 输入的资产信息
        • String - id, 资产id
        • String - symbol, 资产名称
    • Array of Object - outputs, 交易输出信息
      • String - type, 输出类型["ordinary", "vote","retire"]
      • String - address, 输出地址
      • String - amount, 资产数值
      • String - program, control_program
      • Object - decoded_program, 解析的control_program
      • Object - asset, 输出的资产信息
        • String - id, 资产id
        • String - symbol, 资产名称
# 示例
Curl -X GET /transaction?hash=19e7fc0bf5d8a2c9c1ec663b948d9be4ceb573d2f4922452febc25cac7d3c23d

{
  "code": 200,
  "msg": "",
  "data": {
    "hash": "19e7fc0bf5d8a2c9c1ec663b948d9be4ceb573d2f4922452febc25cac7d3c23d",
    "fee": "0.0000000000",
    "size": 156,
    "block_height": 54949,
    "block_hash": "f9068faced79a08545ff2abe0584e068c5f30275050cb81582f1eca196dda807",
    "timestamp": 1629799908,
    "tx_types": [
      "coinbase"
    ],
    "inputs": [
      {
        "type": "coinbase",
        "amount": "0.0000000000",
        "program": "",
        "decoded_program": "",
        "address": "smart contract",
        "asset": {
          "id": "0000000000000000000000000000000000000000000000000000000000000000",
          "symbol": ""
        }
      }
    ],
    "outputs": [
      {
        "type": "ordinary",
        "amount": "0.0000000000",
        "program": "0014978f30da1cd774799f7a4229b14dfdb5e6baffe7",
        "decoded_program": "DUP \nHASH160 \nDATA_20 978f30da1cd774799f7a4229b14dfdb5e6baffe7\nEQUALVERIFY \nTXSIGHASH \nSWAP \nCHECKSIG \n",
        "address": "bn1qj78npksu6a68n8m6gg5mzn0akhnt4ll8hln2cn",
        "asset": {
          "id": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
          "symbol": "BTM"
        }
      }
    ]
  }
}

# 查询一组交易

GET /transactions

根据查询参数查询一组相关交易

# 请求参数
  • String - address, 查询指定地址参与的交易
  • String - asset, 查询交易的资产为指定资产的交易
  • String- type, 查询指定交易类型的交易 // vote、cross_chain
  • Integer- start, 分页开始位置
  • Integer- limit, 请求数量
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Array of Object - data, 区块信息
    • String - hash, 交易哈希
    • Integer - block_height, 区块高度
    • Integer - block_hash, 区块哈希
    • String - fee, 交易费用
    • integer - size,交易体积
    • integer - timestamp, 时间戳
    • Array of String -tx_types,交易类型[普通交易"ordinary",出块交易"coinbase",资产发行交易"issuance",投票交易"vote",取消投票交易"veto",跨链交易 "cross_chain",链式交易"chain_tx"]
    • Array of Object - inputs, 交易输入信息
      • String -type, 输入类型['spend', 'issue', 'coinbase','veto']
      • String - amount, 资产数值
      • String - program, control_program
      • Object -* decoded_program*, 解析的control_program
      • String - address, 账户地址,在输入类型是spend时存在
      • Object - asset, 输入的资产信息
        • String - id, 资产id
        • String - symbol, 资产名称
    • Array of Object - outputs, 交易输出信息
      • String - type, 输出类型["ordinary", "vote","retire"]
      • String - address, 输出地址
      • String - amount, 资产数值
      • String - program, control_program
      • Object - decoded_program, 解析的control_program
      • Object - asset, 输出的资产信息
        • String - id, 资产id
        • String - symbol, 资产名称
  • Object - pagination, 分页信息
    • Integer- start, 分页开始
    • Integer- limit, 每页数量
    • Integer- total, 交易总数
    • Object - _links, 前后链接
      • String - next, 下一页信息
      • String - prev, 上一页信息
# 示例
Curl -X GET /transactions?block_height=100&start=1&limit=1

{
  "code": 200,
  "msg": "",
  "data": [
    {
      "hash": "8fb8802b4777d78aad9a1067a0e44badc83a6d78737c7cfef9197e2e4dc3901a",
      "fee": "0.0000000000",
      "size": 156,
      "block_height": 55113,
      "block_hash": "ebe54bd2e2f253dbd91483b0d880a4c4a7e063a7ee60bb3de0cee7a3904caabe",
      "timestamp": 1629800892,
      "tx_types": [
        "coinbase"
      ],
      "inputs": [
        {
          "type": "coinbase",
          "amount": "0.0000000000",
          "program": "",
          "decoded_program": "",
          "address": "smart contract",
          "asset": {
            "id": "0000000000000000000000000000000000000000000000000000000000000000",
            "symbol": ""
          }
        }
      ],
      "outputs": [
        {
          "type": "ordinary",
          "amount": "0.0000000000",
          "program": "0014eddab573568136a66b0ab7345dee57bb204616b7",
          "decoded_program": "DUP \nHASH160 \nDATA_20 eddab573568136a66b0ab7345dee57bb204616b7\nEQUALVERIFY \nTXSIGHASH \nSWAP \nCHECKSIG \n",
          "address": "bn1qahdt2u6ksym2v6c2ku69mmjhhvsyv94hwr8evp",
          "asset": {
            "id": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
            "symbol": "BTM"
          }
        }
      ]
    }
  ],
  "pagination": {
    "start": 1,
    "limit": 1,
    "total": 57564,
    "_links": {
      "next": "/blockmeta/bytom2/v1/transactions?limit=1&start=2",
      "prev": "/blockmeta/bytom2/v1/transactions?limit=1&start=0"
    }
  }
}

# 查询地址

GET /address

根据地址查询地址关联资产信息

# 请求参数
  • String - address, 待查询的地址,必填
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Array of Object - data, 地址关联信息
    • Object - asset, 资产信息
      • String - id, 资产id
      • String - symbol, 资产名称
    • String - address, 地址
    • String - balance, 余额.
    • String - total_received, 总共接收的资产数量
    • String - total_sent, 总共发送的资产数量
# 示例
Curl -X GET /address?address=bn1qj78npksu6a68n8m6gg5mzn0akhnt4ll8hln2cn

{
  "code": 200,
  "msg": "",
  "data": [
    {
      "asset": {
        "id": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
        "symbol": "BTM"
      },
      "address": "bn1qj78npksu6a68n8m6gg5mzn0akhnt4ll8hln2cn",
      "balance": "4092.7782370400",
      "total_received": "10495.0772679500",
      "total_sent": "6402.2990309100"
    }
  ]
}

# 查询资产排名

GET /forbes

查询某一种资产的所有拥有者,并按照余额从大到小排序

# 请求参数
  • String - asset, 待查询的资产,必填
  • Integer- start, 分页开始位置
  • Integer- limit, 请求数量
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Array of Object - data, 每个地址的资产信息
    • Object - asset, 资产信息
      • String - id, 资产id
      • String - symbol, 资产名称
    • String - address, 地址
    • String - balance, 余额
    • String - total_received, 接收总数
    • String - total_sent, 发送总数
  • Object - pagination, 分页信息
    • Integer- start, 分页开始
    • Integer- limit, 每页数量
    • Integer- total, 交易总数
    • Object - _links, 前后链接
      • String - next, 下一页信息
      • String - prev, 上一页信息
# 示例
Curl -X GET /forbes?asset=47fcd4d7c22d1d38931a6cd7767156babbd5f05bbbb3f7d3900635b56eb1b67e

{
  "code": 200,
  "msg": "",
  "data": [
    {
      "asset": {
        "id": "47fcd4d7c22d1d38931a6cd7767156babbd5f05bbbb3f7d3900635b56eb1b67e",
        "symbol": "SUP"
      },
      "address": "bn1qr5q0sh3zpc66yv5zelrlj8l8kd9ldhqc642epn",
      "balance": "87839.3193166200",
      "total_received": "87888.9028510100",
      "total_sent": "49.5835343900"
    },
    {
      "asset": {
        "id": "47fcd4d7c22d1d38931a6cd7767156babbd5f05bbbb3f7d3900635b56eb1b67e",
        "symbol": "SUP"
      },
      "address": "bn1qcj7dzpjlnsg7pf24nj6pduar9dc24uxe7ue4y3",
      "balance": "334.6012919800",
      "total_received": "334.6012919800",
      "total_sent": "0.0000000000"
    }
  ],
  "pagination": {
    "start": 0,
    "limit": 10,
    "total": 175,
    "_links": {
      "next": "/blockmeta/bytom2/v1/forbes?limit=10&start=10"
    }
  }
}

# 查询资产列表

GET /assets

查询所有链上的资产

# 请求参数
  • Integer- start, 分页开始位置
  • Integer- limit, 请求数量
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Array of Object - assets, 资产信息
    • String - total_supply, 总发行量
    • Integer - decimals, 精度
    • String - name, 资产名称
    • String - symbol, 资产名称缩写.
    • String - asset, 资产id
    • Integer - issue_timestamp, 首次发行时间
    • String - program, 发行程序(合约)
    • Bool - is_bap_2, 是否是BAP-2类型资产
    • Object - definition 资产定义
      • Object - description 资产描述
      • String - logo, asset's logo. 资产logo
      • Integer - quorum, 资产签名数量
      • Bool - reissue, 资产是否支持增发
    • Object - external (omit)
    • Integer - address_count, 持有资产的地址总数
    • Integer - tx_count, 该资产的总交易数
  • Object - pagination, 分页信息
    • Integer- start, 分页开始
    • Integer- limit, 每页数量
    • Integer- total, 交易总数
    • Object - _links, 前后链接
      • String - next, 下一页信息
      • String - prev, 上一页信息
# 示例
Curl -X GET /assets

{
  "code": 200,
  "msg": "",
  "data": [
    {
      "total_supply": "1596306453.6991328000",
      "decimals": 8,
      "name": "BTM",
      "symbol": "BTM",
      "asset": "ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
      "issue_timestamp": 1629427444,
      "program": "",
      "is_bap_2": true
    },
    {
      "total_supply": "1000000.0000000000",
      "decimals": 8,
      "name": "MAG",
      "symbol": "MAG",
      "asset": "a0a71c215764e342d10d003be6369baf4145d9c7977f7b8f6bf446e628d8b8b8",
      "issue_timestamp": 1629427459,
      "program": "ae20d66ab117eca2bba6aefed569e52d6bf68a7a4ad7d775cbc01f7b2cfcd798f7b22031ab3c2147c330c5e360b4e585047d1dea5f529476ad5aff475ecdd55541923120851b4a24975df6dbeb4f8e5348542764f85bed67b763875325aa5e45116751b35253ad",
      "is_bap_2": true,
      "definition": {
        "description": {},
        "logo": "",
        "quorum": 2,
        "reissue": true
      }
    },
    {
      "total_supply": "98667.0129104500",
      "decimals": 8,
      "name": "SUP",
      "symbol": "SUP",
      "asset": "47fcd4d7c22d1d38931a6cd7767156babbd5f05bbbb3f7d3900635b56eb1b67e",
      "issue_timestamp": 1629427459,
      "program": "0354df07cda069ae203c939b7ba615a49adf57b5b4c9c37e80666436970f8507d56a272539cabcb9e15151ad",
      "is_bap_2": true,
      "definition": {
        "description": {},
        "logo": "",
        "quorum": 1,
        "reissue": false
      }
    }
  ],
  "pagination": {
    "start": 0,
    "limit": 10,
    "total": 3,
    "_links": {}
  }
}

# 查询资产详情

GET /asset

通过资产id来获取资产详情

# 请求参数
  • String- asset, 资产id,必填
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Object - asset, 资产信息
    • String - total_supply, 总发行量
    • Integer - decimals, 精度
    • String - name, 资产名称
    • String - symbol, 资产名称缩写.
    • String - asset, 资产id
    • Integer - issue_timestamp, 首次发行时间
    • String - program, 发行程序(合约)
    • Bool - is_bap_2, 是否是BAP-2类型资产
    • Object - definition 资产定义
      • Object - description 资产描述
      • String - logo, asset's logo. 资产logo
      • Integer - quorum, 资产签名数量
      • Bool - reissue, 资产是否支持增发
    • Object - external (omit)
    • Integer - address_count, 持有资产的地址总数
    • Integer - tx_count, 该资产的总交易数
# 示例
Curl -X GET /asset?asset=a0a71c215764e342d10d003be6369baf4145d9c7977f7b8f6bf446e628d8b8b8

{
  "code": 200,
  "msg": "",
  "data": {
    "total_supply": "1000000.0000000000",
    "decimals": 8,
    "name": "MAG",
    "symbol": "MAG",
    "asset": "a0a71c215764e342d10d003be6369baf4145d9c7977f7b8f6bf446e628d8b8b8",
    "issue_timestamp": 1629427459,
    "program": "ae20d66ab117eca2bba6aefed569e52d6bf68a7a4ad7d775cbc01f7b2cfcd798f7b22031ab3c2147c330c5e360b4e585047d1dea5f529476ad5aff475ecdd55541923120851b4a24975df6dbeb4f8e5348542764f85bed67b763875325aa5e45116751b35253ad",
    "is_bap_2": true,
    "definition": {
      "description": {},
      "logo": "",
      "quorum": 2,
      "reissue": true
    },
    "external": {
      "address_count": 50,
      "tx_count": 3
    }
  }
}

# 每日统计数据

GET /summary/daily

查询以日为单位的地址,区块,交易等等汇总信息,当日只能查询到上一日的信息

# 请求参数
  • Integer- start, 开始日期,时间戳格式
  • Integer- end, 结束日期,时间戳格式
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Object - data, 汇总信息
    • Integer - new_address_count, 每日新增地址
    • Integer - active_address_count, 每日活跃地址
    • Integer - block_count, 每日出块总数
    • Integer - transaction_count, 每日交易总数
    • String - vote_amount, 每日投票总数
    • String - veto_amount, 每日取消投票总数
    • Integer - timestamp, 每日统计数据的时间
# 示例
Curl -X GET /summary/daily?start=1629614272&end=1629873563

{
  "code": 200,
  "msg": "",
  "data": [
    {
      "block_count": 14400,
      "transaction_count": 14917,
      "vote_amount": "1159667250729465.00000000",
      "veto_amount": "732844616000000.00000000",
      "new_address_count": 17,
      "active_address_count": 17,
      "timestamp": 1629648000
    },
    {
      "block_count": 14400,
      "transaction_count": 14962,
      "vote_amount": "713679135535571.00000000",
      "veto_amount": "424472519090000.00000000",
      "new_address_count": 111,
      "active_address_count": 111,
      "timestamp": 1629734400
    }
  ]
}

# 获取投票交易

GET /node/vote-transactions

通过节点公钥,获取对该节点所有投票交易

# 请求参数
  • String - pub_key, 节点公钥,必填
  • Integer- start, 分页开始位置
  • Integer- limit, 每页数量
# 返回值
  • Integer - code, 状态码
  • String - msg, 返回错误信息
  • Array of Object - data, 交易信息
    • Integer - timestamp, 交易时间戳
    • String - amount, 投票数量
    • String - voter, 投票地址
    • String - type, 投票类型,投票(vote)和取消投票(veto)
    • String - voted_pub_key, 接受投票的节点公钥
  • Object - pagination, 分页信息
    • Integer- start, 分页开始
    • Integer- limit, 每页数量
    • Integer- total, 交易总数
    • Object - _links, 前后链接
      • String - next, 下一页信息
      • String - prev, 上一页信息
# 示例
Curl -X GET /node/vote-transactions?pub_key=f9003633ccbd8cc37e034f4dbe70d9fae980d437948d8cb908d0cab7909780d74a324b4decb5dfcd43fbc6b896ac066b7e02c733a1537360e933278a101a850c

{
  "code": 200,
  "msg": "",
  "data": [
    {
      "timestamp": 1629557064,
      "amount": "410000.00",
      "voter": "bn1q95s6aen3qrez88ayz3ehql3c029kzv5unygajd",
      "type": "2",
      "voted_pub_key": "f9003633ccbd8cc37e034f4dbe70d9fae980d437948d8cb908d0cab7909780d74a324b4decb5dfcd43fbc6b896ac066b7e02c733a1537360e933278a101a850c"
    },
    {
      "timestamp": 1629724344,
      "amount": "290000.00",
      "voter": "bn1q23q74m3xurqeys39ctp2xwhadr9l77wmsq7ps8",
      "type": "2",
      "voted_pub_key": "f9003633ccbd8cc37e034f4dbe70d9fae980d437948d8cb908d0cab7909780d74a324b4decb5dfcd43fbc6b896ac066b7e02c733a1537360e933278a101a850c"
    },
    {
      "timestamp": 1629446640,
      "amount": "250000.00",
      "voter": "bn1q95s6aen3qrez88ayz3ehql3c029kzv5unygajd",
      "type": "2",
      "voted_pub_key": "f9003633ccbd8cc37e034f4dbe70d9fae980d437948d8cb908d0cab7909780d74a324b4decb5dfcd43fbc6b896ac066b7e02c733a1537360e933278a101a850c"
    }
  ],
  "pagination": {
    "start": 0,
    "limit": 10,
    "total": 34,
    "_links": {
      "next": "/blockmeta/bytom2/v1/node/vote-transactions?limit=10&start=10"
    }
  }
}
上次更新: 2021/8/25下午3:26:58