# API endpoints

## 🔌 Landslide Network Testnet Endpoints

The following endpoints are available for connecting to the Landslide Network testnet:

### RPC Endpoint

```bash
https://cometrpc.testnet.landslide.network
```

The RPC (Remote Procedure Call) endpoint allows for direct interaction with the blockchain through JSON-RPC calls. Use this for submitting transactions, querying chain state, and other blockchain interactions.

### gRPC Endpoint

```bash
https://grpc.testnet.landslide.network
```

The gRPC endpoint provides high-performance, bi-directional streaming capabilities. Ideal for applications requiring efficient data streaming and complex service definitions.

### REST API Endpoint

```bash
https://api.testnet.landslide.network
```

The REST API endpoint offers a RESTful interface for blockchain interactions. Perfect for web applications and clients that prefer standard HTTP methods.

### Usage Examples

#### RPC Connection (JavaScript)

```javascript
const provider = new JsonRpcProvider("https://cometrpc.testnet.landslide.network");
```

#### REST API Query (cURL)

```bash
curl https://api.testnet.landslide.network/cosmos/bank/v1beta1/balances/{address}
```

#### gRPC Connection (Python)

```python
import grpc
channel = grpc.insecure_channel('grpc.testnet.landslide.network:443')
```

### ⚠️ Note

These endpoints are for the testnet environment and should not be used for production applications. Network performance and availability may vary as this is a test network.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.landslide.network/product-guides/api-endpoints.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
