# Configuration

To enable `swisstronikcli` to interact with Swisstronik Testnet you should configure it using the following commands.

First, set RPC address:

```bash
swisstronikcli config node https://rpc.testnet.swisstronik.com:443
```

Then, you should set chain id:

```bash
swisstronikcli config chain-id swisstronik_1291-1 
```

Next, you should specify what keyring you will use to store keys, as the default `os` keyring is not compatible with the `eth_secp256k1` key type. There are two options:

* **file** – keys will be stored in an encrypted file.\
  To use this option, run the following command: \
  `swisstronikcli config keyring-backend file`
* **test** – keys will be stored in an unencrypted format. Use this keyring only for local testing.\
  To use this option, run the following command: \
  `swisstronikcli config keyring-backend test`


---

# 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.swisstronik.com/swisstronik-docs/development/swisstronik-cli/configuration.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.
