# get_genesis_hash

> Get the full base64 genesis hash for a network.

```python
from x402_algorand import get_genesis_hash
```

```python
def get_genesis_hash(network: str) -> str
```

Get the full base64 genesis hash for a network.

## Parameters

- `network` (`str`, required):
Network identifier (legacy long ID, short CAIP-2 ID, or V1 name).

## Returns

- `returns` (`str`):
Base64-encoded 32-byte genesis hash.

## Raises

- `NetworkError`: If network is unknown or unregistered (subclass of `ValueError`).

Source: [x402_algorand/utils.py](https://github.com/x402-avm/x402-algorand/blob/main/x402_algorand/utils.py#L240)

Source: https://x402-avm.github.io/reference/python/x402-algorand/get-genesis-hash
