# 2. Configuring JSONRPC

Configuring JSONRPC in Environment Variables.

## [Build RPC of Lumoz Chian](/verifier/setup-verifier-node/setup-node/build-your-own/1.-build-rpc-of-lumoz-chain.md)

## Configuring Environment Variables

### For Linux/macOS

1. Open the configuration file:

```
nano ~/.bashrc
```

*(For Zsh, use \~/.zshrc instead.)*

2. Add the following line:

```
export JSONRPC_URL=https://your-rpc-endpoint.example.com
```

3. Save the file and apply changes:

```
source ~/.bashrc
```

4. Verify:

```
echo $JSONRPC_URL
```

### For Windows

#### Using the System Settings:

1\. Open Environment Variables:

• Press Win + R, type sysdm.cpl, and hit Enter.

• Go to the Advanced tab and click on Environment Variables.

2\. Add a New Variable:

• Under User variables or System variables, click New.

• Enter JSONRPC\_URL as the name and {your\_rpc} as the value.

• Click OK to save.

3\. Verify:

• Open a new Command Prompt and run:

```
echo %JSONRPC_URL%
```

#### Using Command Prompt:

```
setx JSONRPC_URL https://your-rpc-endpoint.example.com
```

Verify:

• Close and reopen Command Prompt.

• Run:

```
echo %JSONRPC_URL%
```

#### Using PowerShell:

```
[System.Environment]::SetEnvironmentVariable("JSONRPC_URL", "https://your-rpc-endpoint.example.com", "User")
```

Verify:

• Close and reopen PowerShell.

• Run:

```
$env:JSONRPC_URL
```

### For Docker

[See here](/verifier/setup-verifier-node/setup-node/build-your-own/2.-run-the-node/run-with-docker-recommended-for-multiple-nodes.md).


---

# 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.lumoz.org/verifier/setup-verifier-node/setup-node/build-your-own/2.-configuring-jsonrpc.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.
