Skip to content

Commit b8e2b9f

Browse files
eric-stacksgitbook-bot
authored andcommitted
GitBook: No commit message
1 parent 59d9520 commit b8e2b9f

File tree

4 files changed

+43
-3
lines changed

4 files changed

+43
-3
lines changed

docs/reference/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We'll go over all the building blocks you need to be aware of to build high-qual
1010

1111
#### Clarity
1212

13-
[Clarity](https://app.gitbook.com/s/H74xqoobupBWwBsVMJhK/clarity/overview) is the smart contract language on Stacks. If you want to build the next decentralized social network, DeFi protocol, or any other Stacks dapp, you'll need to know Clarity.
13+
[Clarity](/broken/spaces/H74xqoobupBWwBsVMJhK/pages/f5e52a03a2c80c85f49f56d1684b87757fb9ec73) is the smart contract language on Stacks. If you want to build the next decentralized social network, DeFi protocol, or any other Stacks dapp, you'll need to know Clarity.
1414

1515
#### Post Conditions
1616

docs/reference/SUMMARY.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@
66

77
* [Stacks Node Configuration](node-operations/stacks-node-configuration.md)
88
* [Signer Configuration](node-operations/signer-configuration.md)
9-
* [RPC API](node-operations/rpc-api.md)
9+
* [RPC API (old)](node-operations/rpc-api-old.md)
10+
* [RPC API Endpoints](node-operations/rpc-api/README.md)
11+
* ```yaml
12+
type: builtin:openapi
13+
props:
14+
models: false
15+
downloadLink: false
16+
dependencies:
17+
spec:
18+
ref:
19+
kind: openapi
20+
spec: stacks-blockchain-api-dereferenced
21+
```
1022
1123
## Clarity
1224

docs/reference/node-operations/rpc-api.md renamed to docs/reference/node-operations/rpc-api-old.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# RPC-API
1+
---
2+
hidden: true
3+
---
4+
5+
# RPC API (old)
26

37
### Introduction
48

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# RPC API Endpoints
2+
3+
{% hint style="info" %}
4+
For the complete OpenAPI spec, navigate [here](https://raw.githubusercontent.com/stacks-network/stacks-core/master/docs/rpc/openapi.yaml).
5+
{% endhint %}
6+
7+
The Stacks Node RPC API is exposed by every running Stacks node. It allows you to query the Stacks blockchain and interact with smart contracts. It was built to maintain pageable materialized views of the Stacks network.
8+
9+
{% hint style="warning" %}
10+
If you run a local Stacks node, it exposes an HTTP server on port `20443`. The info endpoint would be `localhost:20443/v2/info`.
11+
{% endhint %}
12+
13+
Note that the [Stacks Node RPC API](https://github.com/stacks-network/stacks-blockchain/) and the [Hiro Stacks Blockchain API](https://www.hiro.so/stacks-api) are two different things. The Hiro API is a centralized service run by Hiro, a developer tooling company, that makes it easy to get onboarded and begin interacting with the Stacks blockchain in a RESTful way. The Hiro API is a proxy for the Stacks Node RPC API that makes it a bit easier to work with by providing additional functionality.
14+
15+
The Stacks Node RPC API is generated by every Stacks node and allows developers to self-host their own node and API for a more decentralized architecture.
16+
17+
The RPC API can be used without any authorization. The basepath for the hosted API is:
18+
19+
```bash
20+
# for mainnet, replace `testnet` with `mainnet`
21+
https://api.testnet.hiro.so/
22+
```
23+
24+
The Stacks Node RPC API endpoints can also be accessed via Hiro's docs [here](https://docs.hiro.so/apis/stacks-node-rpc-api).

0 commit comments

Comments
 (0)