|
12 | 12 | description: |
|
13 | 13 | Welcome to the API reference overview for the <a href="https://docs.hiro.so/get-started/stacks-blockchain-api">Stacks Blockchain API</a>.
|
14 | 14 |
|
15 |
| - <a href="/collection.json" download="stacks-api-collection.json">Download Postman collection</a> |
| 15 | + <a href="https://hirosystems.github.io/stacks-blockchain-api/collection.json" download="stacks-api-collection.json">Download Postman collection</a> |
16 | 16 | tags:
|
17 | 17 | - name: Accounts
|
18 | 18 | description: Read-only endpoints to obtain Stacks account details
|
@@ -234,7 +234,10 @@ paths:
|
234 | 234 | tags:
|
235 | 235 | - Transactions
|
236 | 236 | operationId: get_mempool_transaction_list
|
237 |
| - description: Retrieves all transactions that have been recently broadcast to the mempool. These are pending transactions awaiting confirmation. |
| 237 | + description: | |
| 238 | + Retrieves all transactions that have been recently broadcast to the mempool. These are pending transactions awaiting confirmation. |
| 239 | +
|
| 240 | + If you need to monitor new transactions, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates. |
238 | 241 | parameters:
|
239 | 242 | - name: sender_address
|
240 | 243 | in: query
|
@@ -487,7 +490,10 @@ paths:
|
487 | 490 | tags:
|
488 | 491 | - Microblocks
|
489 | 492 | operationId: get_microblock_list
|
490 |
| - description: Retrieves a list of microblocks. |
| 493 | + description: | |
| 494 | + Retrieves a list of microblocks. |
| 495 | +
|
| 496 | + If you need to actively monitor new microblocks, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates. |
491 | 497 | parameters:
|
492 | 498 | - name: limit
|
493 | 499 | in: query
|
@@ -557,7 +563,10 @@ paths:
|
557 | 563 | /extended/v1/block:
|
558 | 564 | get:
|
559 | 565 | summary: Get recent blocks
|
560 |
| - description: Retrieves a list of recently mined blocks |
| 566 | + description: | |
| 567 | + Retrieves a list of recently mined blocks |
| 568 | +
|
| 569 | + If you need to actively monitor new blocks, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates. |
561 | 570 | tags:
|
562 | 571 | - Blocks
|
563 | 572 | operationId: get_block_list
|
@@ -1247,7 +1256,10 @@ paths:
|
1247 | 1256 | /extended/v1/address/{principal}/transactions:
|
1248 | 1257 | get:
|
1249 | 1258 | summary: Get account transactions
|
1250 |
| - description: Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). |
| 1259 | + description: | |
| 1260 | + Retrieves a list of all Transactions for a given Address or Contract Identifier. More information on Transaction types can be found [here](https://docs.stacks.co/understand-stacks/transactions#types). |
| 1261 | +
|
| 1262 | + If you need to actively monitor new transactions for an address or contract id, we highly recommend subscribing to [WebSockets or Socket.io](https://github.com/hirosystems/stacks-blockchain-api/tree/master/client) for real-time updates. |
1251 | 1263 | tags:
|
1252 | 1264 | - Accounts
|
1253 | 1265 | operationId: get_account_transactions
|
@@ -1658,10 +1670,11 @@ paths:
|
1658 | 1670 | $ref: ./api/core-node/get-info.schema.json
|
1659 | 1671 | example:
|
1660 | 1672 | $ref: ./api/core-node/get-info.example.json
|
| 1673 | + |
1661 | 1674 | /extended/v1/status:
|
1662 | 1675 | get:
|
1663 |
| - summary: Get Blockchain API status |
1664 |
| - description: Retrieves the current status of the blockchain API, including the server version |
| 1676 | + summary: API status |
| 1677 | + description: Retrieves the running status of the Stacks Blockchain API, including the server version and current chain tip information. |
1665 | 1678 | tags:
|
1666 | 1679 | - Info
|
1667 | 1680 | operationId: get_status
|
@@ -2649,71 +2662,71 @@ paths:
|
2649 | 2662 | example:
|
2650 | 2663 | $ref: ./api/bns/errors/bns-unsupported-blockchain.example.json
|
2651 | 2664 |
|
2652 |
| - /v1/subdomains: |
2653 |
| - get: |
2654 |
| - summary: Get All Subdomains |
2655 |
| - description: Retrieves a list of all subdomains known to the node. |
2656 |
| - tags: |
2657 |
| - - Names |
2658 |
| - operationId: get_all_subdomains |
2659 |
| - parameters: |
2660 |
| - - name: page |
2661 |
| - in: query |
2662 |
| - description: names are returned in pages of size 100, so specify the page number. |
2663 |
| - required: true |
2664 |
| - example: 3 |
2665 |
| - schema: |
2666 |
| - type: integer |
2667 |
| - responses: |
2668 |
| - 200: |
2669 |
| - description: Success |
2670 |
| - content: |
2671 |
| - application/json: |
2672 |
| - schema: |
2673 |
| - $ref: ./api/bns/name-querying/bns-get-all-subdomains-response.schema.json |
2674 |
| - example: |
2675 |
| - $ref: ./api/bns/name-querying/bns-get-all-subdomains-response.example.json |
2676 |
| - 400: |
2677 |
| - description: Error |
2678 |
| - content: |
2679 |
| - application/json: |
2680 |
| - schema: |
2681 |
| - $ref: ./api/bns/errors/bns-error.schema.json |
2682 |
| - example: |
2683 |
| - $ref: ./api/bns/errors/bns-invalid-page.example.json |
2684 |
| - |
2685 |
| - /v1/subdomains/{txid}: |
2686 |
| - get: |
2687 |
| - summary: Get Subdomain at Transaction |
2688 |
| - description: Retrieves the list of subdomain operations processed by a given transaction. The returned array includes subdomain operations that have not yet been accepted as part of any subdomain’s history (checkable via the accepted field). If the given transaction ID does not correspond to a Stacks transaction that introduced new subdomain operations, and empty array will be returned. |
2689 |
| - tags: |
2690 |
| - - Names |
2691 |
| - operationId: get_subdomain_at_transaction |
2692 |
| - parameters: |
2693 |
| - - name: txid |
2694 |
| - in: path |
2695 |
| - description: transaction id |
2696 |
| - required: true |
2697 |
| - example: d04d708472ea3c147f50e43264efdb1535f71974053126dc4db67b3ac19d41fe |
2698 |
| - schema: |
2699 |
| - type: string |
2700 |
| - responses: |
2701 |
| - 200: |
2702 |
| - description: Success |
2703 |
| - content: |
2704 |
| - application/json: |
2705 |
| - schema: |
2706 |
| - $ref: ./api/bns/name-querying/bns-get-subdomain-at-tx-response.schema.json |
2707 |
| - example: |
2708 |
| - $ref: ./api/bns/name-querying/bns-get-subdomain-at-tx-response.example.json |
2709 |
| - 400: |
2710 |
| - description: Error |
2711 |
| - content: |
2712 |
| - application/json: |
2713 |
| - schema: |
2714 |
| - $ref: ./api/bns/errors/bns-error.schema.json |
2715 |
| - example: |
2716 |
| - $ref: ./api/bns/errors/bns-invalid-tx-id.example.json |
| 2665 | +# /v1/subdomains: |
| 2666 | +# get: |
| 2667 | +# summary: Get All Subdomains |
| 2668 | +# description: Retrieves a list of all subdomains known to the node. |
| 2669 | +# tags: |
| 2670 | +# - Names |
| 2671 | +# operationId: get_all_subdomains |
| 2672 | +# parameters: |
| 2673 | +# - name: page |
| 2674 | +# in: query |
| 2675 | +# description: names are returned in pages of size 100, so specify the page number. |
| 2676 | +# required: true |
| 2677 | +# example: 3 |
| 2678 | +# schema: |
| 2679 | +# type: integer |
| 2680 | +# responses: |
| 2681 | +# 200: |
| 2682 | +# description: Success |
| 2683 | +# content: |
| 2684 | +# application/json: |
| 2685 | +# schema: |
| 2686 | +# $ref: ./api/bns/name-querying/bns-get-all-subdomains-response.schema.json |
| 2687 | +# example: |
| 2688 | +# $ref: ./api/bns/name-querying/bns-get-all-subdomains-response.example.json |
| 2689 | +# 400: |
| 2690 | +# description: Error |
| 2691 | +# content: |
| 2692 | +# application/json: |
| 2693 | +# schema: |
| 2694 | +# $ref: ./api/bns/errors/bns-error.schema.json |
| 2695 | +# example: |
| 2696 | +# $ref: ./api/bns/errors/bns-invalid-page.example.json |
| 2697 | +# |
| 2698 | +# /v1/subdomains/{txid}: |
| 2699 | +# get: |
| 2700 | +# summary: Get Subdomain at Transaction |
| 2701 | +# description: Retrieves the list of subdomain operations processed by a given transaction. The returned array includes subdomain operations that have not yet been accepted as part of any subdomain’s history (checkable via the accepted field). If the given transaction ID does not correspond to a Stacks transaction that introduced new subdomain operations, and empty array will be returned. |
| 2702 | +# tags: |
| 2703 | +# - Names |
| 2704 | +# operationId: get_subdomain_at_transaction |
| 2705 | +# parameters: |
| 2706 | +# - name: txid |
| 2707 | +# in: path |
| 2708 | +# description: transaction id |
| 2709 | +# required: true |
| 2710 | +# example: d04d708472ea3c147f50e43264efdb1535f71974053126dc4db67b3ac19d41fe |
| 2711 | +# schema: |
| 2712 | +# type: string |
| 2713 | +# responses: |
| 2714 | +# 200: |
| 2715 | +# description: Success |
| 2716 | +# content: |
| 2717 | +# application/json: |
| 2718 | +# schema: |
| 2719 | +# $ref: ./api/bns/name-querying/bns-get-subdomain-at-tx-response.schema.json |
| 2720 | +# example: |
| 2721 | +# $ref: ./api/bns/name-querying/bns-get-subdomain-at-tx-response.example.json |
| 2722 | +# 400: |
| 2723 | +# description: Error |
| 2724 | +# content: |
| 2725 | +# application/json: |
| 2726 | +# schema: |
| 2727 | +# $ref: ./api/bns/errors/bns-error.schema.json |
| 2728 | +# example: |
| 2729 | +# $ref: ./api/bns/errors/bns-invalid-tx-id.example.json |
2717 | 2730 |
|
2718 | 2731 | /extended/v1/tx/block/{block_hash}:
|
2719 | 2732 | get:
|
|
0 commit comments