celestiaorg / docs

Celestia Documentation Site
https://docs.celestia.org
166 stars 353 forks source link

docs: make rpc and api sections more digestible #1746

Open jcstein opened 3 days ago

jcstein commented 3 days ago

discussion in slack

jcstein commented 3 days ago

AI suggestion:

I understand the confusion. Here's a structured plan to make the RPC/API sections more readable and clear:

1. Separate Consensus and DA Endpoints Clearly

Current Issue:

Solution:

2. Clarify Usage of Endpoints

Current Issue:

Solution:

Example:

Consensus Endpoints

3. Reduce Bulleted Lists and White Space

Current Issue:

Solution:

Example Table:

Endpoint Type Endpoint Port
Consensus RPC public-celestia-rpc.numia.xyz 26657
Consensus gRPC public-celestia-rpc.numia.xyz 9090
DA RPC public-celestia-lcd.numia.xyz 1317
DA gRPC public-celestia-lcd.numia.xyz 9090

5. Provide a Summary

Current Issue:

Solution:

Example Summary:

Consensus Endpoints:

DA Endpoints:

Implementation Example:

## Consensus Endpoints
**Purpose:** Used for consensus operations and can also be used by DA nodes to post data.

| Endpoint Type | Endpoint | Port |
| ------------- | -------- | ---- |
| Consensus RPC | `public-celestia-rpc.numia.xyz` | 26657 |
| Consensus gRPC | `public-celestia-rpc.numia.xyz` | 9090 |
| Consensus RPC | `celestia-rpc.mesa.newmetric.xyz` | 26657 |
| Consensus gRPC | `celestia-rpc.mesa.newmetric.xyz` | 9090 |

## Data Availability (DA) Endpoints
**Purpose:** Used for querying the chain’s state and broadcasting transactions without running a full node.

| Endpoint Type | Endpoint | Port |
| ------------- | -------- | ---- |
| DA RPC | `public-celestia-lcd.numia.xyz` | 1317 |
| DA gRPC | `public-celestia-lcd.numia.xyz` | 9090 |
| DA RPC | `celestia-rest.mesa.newmetric.xyz` | 1317 |
| DA gRPC | `celestia-rest.mesa.newmetric.xyz` | 9090 |

## Trusted Endpoints
**Provider:** DevOps, P-OPS

| Endpoint Type | Endpoint | Port |
| ------------- | -------- | ---- |
| Trusted RPC | `trusted-celestia-rpc.devops.xyz` | 26657 |
| Trusted gRPC | `trusted-celestia-rpc.devops.xyz` | 9090 |
| Trusted RPC | `trusted-celestia-rpc.pops.xyz` | 26657 |
| Trusted gRPC | `trusted-celestia-rpc.pops.xyz` | 9090 |

## Community Endpoints
**Provider:** Various community members

| Endpoint Type | Endpoint | Port |
| ------------- | -------- | ---- |
| Community RPC | `public-celestia-rpc.numia.xyz` | 26657 |
| Community gRPC | `public-celestia-rpc.numia.xyz` | 9090 |
| Community RPC | `celestia-rpc.mesa.newmetric.xyz` | 26657 |
| Community gRPC | `celestia-rpc.mesa.newmetric.xyz` | 9090 |

Relevant Links:

This should make the documentation more readable and user-friendly.