# /v1/beacon/genesis

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

GET https://eth-mainnetbeacon.g.alchemy.com/v2/docs-demo/eth/v1/beacon/genesis

Retrieve details of the chain's genesis which can be used to identify the chain.


Reference: https://www.alchemy.com/docs/chains/ethereum/ethereum-beacon-api-endpoints/ethereum-beacon-api-endpoints/v-1-beacon-genesis

## Code Examples

### cURL

```bash
curl --request GET \
  --url https://eth-mainnetbeacon.g.alchemy.com/v2/docs-demo/eth/v1/beacon/genesis
```

### JavaScript

```javascript
const options = {method: 'GET'};

fetch('https://eth-mainnetbeacon.g.alchemy.com/v2/docs-demo/eth/v1/beacon/genesis', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://eth-mainnetbeacon.g.alchemy.com/v2/docs-demo/eth/v1/beacon/genesis"

response = requests.get(url)

print(response.text)
```

### Go

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://eth-mainnetbeacon.g.alchemy.com/v2/docs-demo/eth/v1/beacon/genesis"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
```

### Java

```java
HttpResponse<String> response = Unirest.get("https://eth-mainnetbeacon.g.alchemy.com/v2/docs-demo/eth/v1/beacon/genesis")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://eth-mainnetbeacon.g.alchemy.com/v2/docs-demo/eth/v1/beacon/genesis");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);

Console.WriteLine("{0}", response.Content);

```


## Operation Specification

```yaml
path: /eth/v1/beacon/genesis
method: GET
operation:
  summary: /v1/beacon/genesis
  description: |
    Retrieve details of the chain's genesis which can be used to identify the chain.
  tags:
    - Ethereum Beacon API Endpoints
  security:
    - apiKey: []
  responses:
    '200':
      description: Request successful.
      content:
        application/json:
          schema:
            type: object
            properties:
              data:
                type: object
                properties:
                  genesis_time:
                    type: string
                    description: Time of chain genesis in Unix timestamp (seconds).
                    example: '1606824023'
                  genesis_validators_root:
                    type: string
                    description: Root of all validators at genesis.
                    example: '0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95'
                  genesis_fork_version:
                    type: string
                    description: Fork version of the chain at genesis.
                    example: '0x00000000'
          examples:
            response:
              summary: Example response
              value:
                data:
                  genesis_time: '1606824023'
                  genesis_validators_root: '0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95'
                  genesis_fork_version: '0x00000000'
```
