Skip to content

Commit 386a20a

Browse files
alexis-stacksclaude
authored andcommitted
Address reviewer feedback from wileyj and rafa-stacks
- Use mainnet API URL with real principal in nonce example (wileyj) - Remove "Express.js" from routes reference (rafa-stacks) - Update stale docs link to docs.stacks.co (rafa-stacks) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d5afa19 commit 386a20a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/reference/api/stacks-blockchain-api/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The Stacks Blockchain API implements additional endpoints that provide data unav
2626
- The `stacks-node` may not persist certain data or may not serve it efficiently to many clients. For instance, while it can return the current STX balance of an account, it cannot provide a history of account transactions.
2727
- The API previously included an embedded Rosetta implementation, but this was removed in favor of the standalone [Stacks Mesh API](../stacks-mesh-api/).
2828
- The API includes support for the Blockchain Naming System (BNS) endpoints.
29-
- For Express.js routes, see [`/src/api/routes`](https://github.com/hirosystems/stacks-blockchain-api/tree/master/src/api/routes) in the API repo.
29+
- For routes, see [`/src/api/routes`](https://github.com/hirosystems/stacks-blockchain-api/tree/master/src/api/routes) in the API repo.
3030

3131
The API creates an "event observer" http server which listens for events from a stacks-node "event emitter".
3232

@@ -46,7 +46,7 @@ The API processes and stores these events as relational data in PostgreSQL. For
4646
All http endpoints and responses are defined in OpenAPI and JSON Schema.
4747

4848
- See [`openapi.yaml`](https://github.com/hirosystems/stacks-blockchain-api/blob/master/openapi.yaml) in the API repo
49-
- These are used to auto-generate the docs at https://hirosystems.github.io/stacks-blockchain-api/
49+
- These are used to auto-generate the docs at https://docs.stacks.co/reference/api/stacks-blockchain-api
5050
- JSON Schemas are converted into TypeScript interfaces, which are used internally by the db controller module to transform SQL query results into the correct object shapes.
5151
- OpenAPI and JSON Schemas are also used to generate a standalone `@stacks/blockchain-api-client`.
5252

docs/reference/api/stacks-blockchain-api/nonce-handling.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ In order to prevent "stuck" transactions, you must track the next available nonc
88
Stacks Blockchain API provides an endpoint to make nonce handling simpler when using the following command:
99

1010
```bash
11-
curl 'https://api.testnet.hiro.so/extended/v1/address/<principal>/nonces'
11+
curl 'https://api.hiro.so/extended/v1/address/SP3XXK8BG5X7CRH7W07RRJK3JZJXJ799WX3Y0SMCR/nonces'
1212
```
1313

1414
```json
1515
{
16-
"last_executed_tx_nonce": 5893,
17-
"last_mempool_tx_nonce": null,
18-
"possible_next_nonce": 5894,
16+
"last_executed_tx_nonce": 2789412,
17+
"last_mempool_tx_nonce": 2789413,
18+
"possible_next_nonce": 2789414,
1919
"detected_missing_nonces": []
2020
}
2121
```

0 commit comments

Comments
 (0)