> For the complete documentation index, see [llms.txt](https://docs.bloq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bloq.com/bloq-services/bloqnodes/nodes-usage.md).

# Nodes Usage

To access a node, you will need to use the IP address which you can obtain via `bcl nodes list` or `bcl nodes info`.

From there you may access the REST or RPC interfaces (described in the [Technical Reference](/advanced-documentation/technical-reference/nodes-api.md)) using `curl` or any other HTTP client.

### REST <a href="#rest" id="rest"></a>

*Use REST for connecting to Bitcoin, Bitcoin Cash, and Litecoin nodes.*

```shell
curl -k -X GET \
  --user <nodeUser>:<nodePass> \
  https://<ip-address>:8332/rest/chaininfo.json
```

### JSON RPC <a href="#json-rpc" id="json-rpc"></a>

*Use JSON RPC for connecting to Ethereum and Avalanche nodes.*

```shell
curl -k -X POST \
  --user <nodeUser>:<nodePass> \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockchaininfo", "params": [] }' \
  https://<ip-address>:8332/
```

#### Client-token

To generate a client token, run the following command:

`bcl client-token`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bloq.com/bloq-services/bloqnodes/nodes-usage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
