选择语言
English
简体中文
https
简介
Base
Get-Overview
Get-Wealth-List
Account
Get-Account-Detail
Get-Account-Balance
Get-Subaccount-List
Get-Account-Tx
Get-Token-List
Producer
Get-Producer-Detail
Get-Producer-Voter
Block
Get-Block-Detail
Get-Latest-Block
Get-Block-Tx
Contract
Get-Contract-Detail
Get-Contract-Abi
Get-Contract-Tx
Token
Get-Token-Detail
Get-Token-Holder
Transaction
Get-Transaction-Detail
Get-Transaction-Action
Get-Transaction-Receipt
rpc
简介

# get-block-detail

获取区块数据

# 参数

参数名 参数类型 描述 是否必须
hash String block hash no
number String block number no

# 响应

参数名 参数类型 描述
block Object
block.gas_usage Number
block.hash String
block.info Object
block.number Number
block.parent_hash Number
block.time Number
block.tx_count String
block.tx_merkle_hash String
block.tx_receipt_merkle_hash String
block.version String
block.witness String
status String
witness_account String
curl -X GET https://api.iostabc.com/api/?apikey=6cfb2325fd0d6ccbd2e61d5793769eb0&module=block&action=get-block-detail&number=1

# get-latest-block

获取最新区块数据

# 参数

参数名 参数类型 描述 是否必须

# 响应

参数名 参数类型 描述
block Object
block.gas_usage Number
block.hash String
block.info Object
block.number Number
block.parent_hash Number
block.time Number
block.tx_count String
block.tx_merkle_hash String
block.tx_receipt_merkle_hash String
block.version String
block.witness String
status String
witness_account String
curl -X GET https://api.iostabc.com/api/?apikey=6cfb2325fd0d6ccbd2e61d5793769eb0&module=block&action=get-latest-block

# get-block-tx

获取区块交易

# 参数

参数名 参数类型 描述 是否必须
number String block number yes

# 响应

参数名 参数类型 描述
transactions Array
curl -X GET https://api.iostabc.com/api/?apikey=6cfb2325fd0d6ccbd2e61d5793769eb0&module=block&action=get-block-tx&number=1