Skip to content

Commit

Permalink
mocha: fix RPC docs section. Populate DA RPC first (#1395)
Browse files Browse the repository at this point in the history
* mocha: fix RPC docs section. Populate DA RPC first

* feat: Update nodes/mocha-testnet.md from code review

---------

Co-authored-by: Josh Stein <[email protected]>
  • Loading branch information
Bidon15 and jcstein authored Feb 6, 2024
1 parent 8c12369 commit c6f78f8
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions nodes/mocha-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,23 @@ import MochaVersionTags from '../.vitepress/components/MochaVersionTags.vue'

<MochaVersionTags/>

## RPC endpoints
Below is a list of RPC endpoints you can use to connect to Mocha testnet:

The RPC endpoint is to allow users to interact with Celestia's nodes by
querying the node's state and broadcasting transactions on the
Celestia network. The default port is 26657.
## RPC for DA bridge, full, and light nodes

Below is a list of RPC endpoints you can use to connect to Mocha testnet:
These RPC endpoints for DA nodes are to provide state access for querying the
chain’s state and broadcasting transactions (balances, blobs, etc.) to the
Celestia network. For users, they will need to provide a `–core.ip string`
from a consensus node’s URL or IP that populates 2 ports for 2 types
(RPC and gRPC, at ports 26657 and 9090, respectively) to their respective DA
node.

### Bridge, full, and light nodes
:::tip Bridge nodes
Mentioned below RPC endpoints do not guarantee you the download of full blocks from
them. We advise that if you are running a bridge node, that you also
run a local [full consensus node](./consensus-node.md) in order to download
full blocks from it.
:::

- `full.consensus.mocha-4.celestia-mocha.com`
- `consensus-full-mocha-4.celestia-mocha.com`
Expand All @@ -68,12 +76,11 @@ Below is a list of RPC endpoints you can use to connect to Mocha testnet:
- `mocha.celestia.rpc.cumulo.me`
- `rpc-mocha-4.spidey.services`

### Full and light nodes ONLY
## RPC endpoints

These RPC endpoints do not allow you to download full blocks from
them. We advise that if you are running a bridge node, that you also
run a local [full consensus node](./consensus-node.md) in order to download
full blocks from it.
The RPC endpoint is to allow users to interact with Celestia's nodes by
querying the node's state and broadcasting transactions on the
Celestia network. The default port is 26657.

- `rpc.celestia-mocha.com`
- `rpc-2.celestia-mocha.com`
Expand Down

0 comments on commit c6f78f8

Please sign in to comment.