blockchain_entry
Fetches a block or transaction from the chain.
Header Parameters
x-cache-id string
Possible values: Value must match regular expression ^[a-z0-9]{32}$
An idempotent key for retrieving cached responses from the node
application/json
Request Body required
The hash of the block or transaction to fetch
string
Responses
- 200
- 400
Successful operation
application/json
Schema
Example (from schema)
Schema
id string
The ID of the call, which corresponds to the x-cache-id used in the header
status string
The status of the call, which will be one of either "Success", "Error", or "Pending"
reason string
The reason for the status of the call. Most useful to debug errors
route string
The endpoint route that was called
content object
{
"id": "45v340cd2f8c4782a5b058832565afb1",
"status": "Success",
"reason": "Database item(s) successfully retrieved",
"route": "blockchain_entry",
"content": {
"Transaction": {
"inputs": [
{
"previous_out": null,
"script_signature": {
"stack": [
{
"Num": 1585843
}
]
}
}
],
"outputs": [
{
"value": {
"Token": 5369041
},
"locktime": 1585943,
"drs_block_hash": null,
"script_public_key": "0dafb...afdb3"
}
],
"version": 5,
"druid_info": null
}
}
}
Invalid input
application/json
Schema
Example (from schema)
Schema
id string
status string
reason string
route string
content string
{
"id": null,
"status": "Error",
"reason": "Bad Request",
"route": null,
"content": null
}
Loading...