> For the complete documentation index, see [llms.txt](https://docs.chainupcloud.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.chainupcloud.com/zhong-wen/qu-kuai-lian-api/ethereum-beacon/json-rpc-methods.md).

# JSON-RPC methods

### Ethereum Beacon API

You can review the official Ethereum Beacon API documentation [**HERE**](https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Beacon)

### Example API

{% tabs %}
{% tab title="Curl" %}

```
curl https://api.chainup.net/ethereum2/mainnet/<YOUR_API_KEY>/eth/v1/node/syncing \
-X GET \
-H 'content-type: application/json' \
-H "CONSISTENT-HASH: true" 
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const axios = require('axios');
//npm install axios if you don have the module installed`

let options = {
    url: "https://api.chainup.net/ethereum2/mainnet/<YOUR_API_KEY>/eth/v1/node/syncing",
    method: "get",
    headers:
    { 
     "content-type": "application/json",
     "CONSISTENT-HASH": "true"
    }
};

axios(options)
.then(response => {
console.log('Post successful: response:', response.data);
})
.catch(error => {
console.error('An error has occurred:', error);
});
```

{% endtab %}

{% tab title="Python" %}

<pre class="language-python"><code class="lang-python">
<strong>import requests
</strong>import json

headers = {"content-type": "application/json",
    "CONSISTENT-HASH": "true"}
r = requests.get(url="https://api.chainup.net/ethereum2/mainnet/&#x3C;YOUR_API_KEY>/eth/v1/node/syncing", headers=headers)
if r.status_code == 200:
    print("Get successful: response: ", r.content)
else:
    print("An error has occurred: ", r.status_code)

</code></pre>

{% endtab %}
{% endtabs %}


---

# 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:

```
GET https://docs.chainupcloud.com/zhong-wen/qu-kuai-lian-api/ethereum-beacon/json-rpc-methods.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.
