# genesis_hash_for

> Return the full 44-character base64 genesis hash for a network.

```python
from ai_economy_sdk import genesis_hash_for
```

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

Return the full 44-character base64 genesis hash for a network.

## Parameters

- `network` (`str`, required):
Network name (`"mainnet"`, `"testnet"`, `"localnet"`), canonical
short CAIP-2 identifier (`"algorand:<32-char-prefix>"`), or legacy long ID.

## Returns

- `returns` (`str`):
Full 44-character base64-encoded genesis hash including trailing `=`.

## Examples

```python
>>> from ai_economy_sdk.network import genesis_hash_for
>>> genesis_hash_for("mainnet")
'wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8='
>>> genesis_hash_for("testnet")
'SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI='
```

## See also

- `resolve_network`: Resolves network names and aliases to short CAIP-2 IDs.

Source: [ai_economy_sdk/network.py](https://github.com/x402-avm/ai-economy-sdk/blob/main/ai_economy_sdk/network.py#L377)

Source: https://x402-avm.github.io/reference/python/ai-economy-sdk/genesis-hash-for
