# Linking to an External Node

**Contents**

[#seda-rpc-endpoints](#seda-rpc-endpoints "mention")\
[#configuring-external-node](#configuring-external-node "mention")

### SEDA RPC Endpoints

When connecting externally, choose a trustworthy node operator. Unscrupulous operators might tamper with query outcomes or block transactions. The SEDA team currently provides the following RPC endpoint:

* Mainnet RPC address: `https://rpc.mainnet.seda.xyz`
* Testnet RPC address: `https://rpc.testnet.seda.xyz`

### Configuring External Node

This section is for those linking to an external node, so if you want to run commands from your local machine, or don't feel like running a node yourself you can use the `sedad` binary to connect to an external node. This can be done two ways:

1. Add the `--node` flag to your CLI commands, followed by the RPC endpoint in the `https://<hostname>:<port>` format.
2. Alternatively, tweak configurations in `client.toml` in your chain's configuration directory (default location `~/.sedad/config/client.toml`):

Recommended client configuration for mainnet:

```
###############################################################################
###                           Client Configuration                            ###
###############################################################################

# The network chain ID
chain-id = "seda-1"
# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory)
keyring-backend = "file"
# CLI output format (text|json)
output = "text"
# <host>:<port> to CometBFT RPC interface for this chain
node = "https://rpc.mainnet.seda.xyz"
# Transaction broadcasting mode (sync|async)
broadcast-mode = "sync"
```

Recommended client configuration for testnet:

```
###############################################################################
###                           Client Configuration                            ###
###############################################################################

# The network chain ID
chain-id = "seda-1-testnet"
# The keyring's backend, where the keys are stored (os|file|kwallet|pass|test|memory)
keyring-backend = "file"
# CLI output format (text|json)
output = "text"
# <host>:<port> to CometBFT RPC interface for this chain
node = "https://rpc.testnet.seda.xyz"
# Transaction broadcasting mode (sync|async)
broadcast-mode = "sync"
```

**License**\
Contents of this repository are open source under [GNU General Public License v3.0](https://github.com/sedaprotocol/seda-chain/blob/main/LICENSE).
