Crypto Legal Assistant
Crypto Legal Assistant · Acciones GPT
Blockchain API
GET /latestblockGet the latest blockGET /rawblock/{block_hash}Get a raw block by its hashGET /rawtx/{tx_hash}Get a raw transaction by its hashGET /charts/{chart-type}Get chart data for a specific chart typeGET /block-height/{block_height}Get blocks at a specified heightGET /rawaddr/{bitcoin_address}Get details of a single Bitcoin addressGET /multiaddrGet details of multiple Bitcoin addressesGET /unspentGet unspent outputs for Bitcoin addressesGET /balanceGet balance summary for Bitcoin addressesGET /unconfirmed-transactionsGet unconfirmed Bitcoin transactionsGET /blocks/{time_in_milliseconds}Get blocks for a specific time in millisecondsGET /blocks/{pool_name}Get blocks for a specific pool name
Esquema original API
{
"openapi": "3.0.0",
"info": {
"title": "Blockchain API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://blockchain.info"
}
],
"paths": {
"/latestblock": {
"get": {
"summary": "Get the latest block",
"operationId": "getLatestBlock",
"responses": {
"200": {
"description": "A response containing details of the latest block",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"hash": {
"type": "string",
"description": "The hash of the latest block"
},
"time": {
"type": "integer",
"format": "int64",
"description": "The timestamp of the block"
},
"block_index": {
"type": "integer",
"format": "int64",
"description": "The index of the block"
},
"height": {
"type": "integer",
"format": "int64",
"description": "The height of the block"
},
"txIndexes": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Transaction indexes in the block"
}
}
}
}
}
}
}
}
},
"/rawblock/{block_hash}": {
"get": {
"summary": "Get a raw block by its hash",
"operationId": "getRawBlock",
"parameters": [
{
"name": "block_hash",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing details of the raw block"
}
}
}
},
"/rawtx/{tx_hash}": {
"get": {
"summary": "Get a raw transaction by its hash",
"operationId": "getRawTransaction",
"parameters": [
{
"name": "tx_hash",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing details of the raw transaction"
}
}
}
},
"/charts/{chart-type}": {
"get": {
"summary": "Get chart data for a specific chart type",
"operationId": "getChartData",
"parameters": [
{
"name": "chart-type",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing chart data"
}
}
}
},
"/block-height/{block_height}": {
"get": {
"summary": "Get blocks at a specified height",
"operationId": "getBlocksAtHeight",
"parameters": [
{
"name": "block_height",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "A response containing blocks at the specified height"
}
}
}
},
"/rawaddr/{bitcoin_address}": {
"get": {
"summary": "Get details of a single Bitcoin address",
"operationId": "getSingleAddress",
"parameters": [
{
"name": "bitcoin_address",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing details of the Bitcoin address"
}
}
}
},
"/multiaddr": {
"get": {
"summary": "Get details of multiple Bitcoin addresses",
"operationId": "getMultipleAddresses",
"parameters": [
{
"name": "active",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing details of multiple Bitcoin addresses"
}
}
}
},
"/unspent": {
"get": {
"summary": "Get unspent outputs for Bitcoin addresses",
"operationId": "getUnspentOutputs",
"parameters": [
{
"name": "active",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing unspent outputs"
}
}
}
},
"/balance": {
"get": {
"summary": "Get balance summary for Bitcoin addresses",
"operationId": "getBalanceSummary",
"parameters": [
{
"name": "active",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing balance summary"
}
}
}
},
"/unconfirmed-transactions": {
"get": {
"summary": "Get unconfirmed Bitcoin transactions",
"operationId": "getUnconfirmedTransactions",
"responses": {
"200": {
"description": "A response containing unconfirmed transactions"
}
}
}
},
"/blocks/{time_in_milliseconds}": {
"get": {
"summary": "Get blocks for a specific time in milliseconds",
"operationId": "getBlocksByTime",
"parameters": [
{
"name": "time_in_milliseconds",
"in": "path",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"200": {
"description": "A response containing blocks for the specified time"
}
}
}
},
"/blocks/{pool_name}": {
"get": {
"summary": "Get blocks for a specific pool name",
"operationId": "getBlocksByPool",
"parameters": [
{
"name": "pool_name",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A response containing blocks for the specified pool"
}
}
}
}
}
}