Download OpenAPI specification:Download
Signal21 provides various information about Stacks blockchain through REST API. The data is as real-time as it appears on Stacks node. Finalized blocks, transactions and corresponding events are visible once the consensus is reached. This document describes what information is available and how to query it to produce various reports and dashboards.
Runs a predefined report, the report might use provided block. If block is not specified the latest one is assumed.
reportName must be one of active_contracts, active_recent_contracts, smart_contracts, smart_contracts_total, pools, wallets, wallets_dist, whales, nft_contracts.
reportName | string |
blockHeight | integer <int64> |
{- "reportName": "string",
- "blockHeight": 0
}
{- "columns": {
- "property1": [
- { }
], - "property2": [
- { }
]
}, - "order": [
- "string"
], - "types": [
- "string"
], - "time": 0,
- "cached": true,
- "plan": { }
}
Runs a predefined time-series report (e.g. price feed).
reportName | string |
blockHeight | integer <int64> |
{- "reportName": "string",
- "blockHeight": 0
}
{- "columns": {
- "property1": [
- { }
], - "property2": [
- { }
]
}, - "order": [
- "string"
], - "types": [
- "string"
], - "time": 0,
- "cached": true,
- "plan": { }
}
Executes a provided SQL. See SQL API guide for details. https://app.signal21.io/docs/api.html.html
SQL query
{- "columns": {
- "property1": [
- { }
], - "property2": [
- { }
]
}, - "order": [
- "string"
], - "types": [
- "string"
], - "time": 0,
- "cached": true,
- "plan": { }
}
Executes a provided SQL. See SQL API guide for details https://app.signal21.io/docs/api.html.
query | string |
offset | integer <int64> |
next | string |
{- "query": "string",
- "offset": 0,
- "next": "string"
}
{- "columns": {
- "property1": [
- { }
], - "property2": [
- { }
]
}, - "order": [
- "string"
], - "types": [
- "string"
], - "time": 0,
- "cached": true,
- "plan": { }
}
NFT events history for a specific address
address required | string |
[- {
- "block_height": 0,
- "block_time": "string",
- "tx_hash": "string",
- "sender": "string",
- "recipient": "string",
- "contract": "string",
- "asset_event_type": "string",
- "value": "string"
}
]
name | string |
Array of objects (Column) |
{- "name": "string",
- "schema": [
- {
- "name": "string",
- "type": "string"
}
]
}
{- "name": "string",
- "table": "string",
- "spec": {
- "version": 0,
- "schema": [
- {
- "name": "string",
- "type": "string"
}
], - "indices": [
- "string"
]
}
}
name | string |
query | string |
indices | Array of strings |
{- "name": "string",
- "query": "string",
- "indices": [
- "string"
]
}
{- "name": "string",
- "query": "string",
- "table": "string",
- "spec": {
- "version": 0,
- "schema": [
- {
- "name": "string",
- "type": "string"
}
], - "indices": [
- "string"
]
}, - "state": 0,
- "ts": "2019-08-24T14:15:22Z"
}
{- "status": "string",
- "value": {
- "name": "string",
- "table": "string",
- "spec": {
- "version": 0,
- "schema": [
- {
- "name": "string",
- "type": "string"
}
], - "indices": [
- "string"
]
}, - "state": 0,
- "ts": "2019-08-24T14:15:22Z"
}
}