/
BS
bsv-blockchain
/
Teranode Asset Service API.
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Sources
Checked 1h ago · Updated 3w ago
View markdown
bsv-blockchain
Teranode Asset Service API.
get
Get aggregate blockchain statistics.
v1
latest
Swagger 2.0
Open BSV License
2026-07-17
71
64
113.9 KB
admin
3
block
15
get
Get a block by hash in binary format.
get
Get the fork tree for a block.
get
Get a block by hash in hexadecimal format.
get
Get a block by hash in JSON format.
get
Get the nearest fork heights relative to a block.
get
Get a legacy format block by hash in binary format.
get
Get block locator hashes for chain synchronization.
get
Get block data points for charting.
get
Get a paginated list of blocks.
get
Get N blocks starting from hash in binary format.
get
Get N blocks starting from hash in hexadecimal format.
get
Get N blocks starting from hash in JSON format.
get
Get aggregate blockchain statistics.
get
Get the last N blocks.
get
Get a legacy format block by hash in binary (REST interface).
chain
1
fsm
4
header
15
health
2
peers
2
policy
1
proof
3
search
1
settings
2
status
2
subtree
7
transaction
5
txmeta
4
utxo
4
block
Get aggregate blockchain statistics.
Returns block count, transaction count, average sizes, and timestamps.
get
/api/v1/blockstats
Response
Block statistics
BlockStats
required
avg_block_size
number
double
avg_tx_count_per_block
number
double
block_count
integer
chain_work
integer[]
first_block_time
integer
last_block_time
integer
max_height
integer
tx_count
integer