# Constants

> Network ids, genesis hashes, USDC asset ids and protocol limits exported by x402_algorand.

```python
from x402_algorand import ALGORAND_MAINNET_CAIP2, ALGORAND_TESTNET_CAIP2, MAINNET_GENESIS_HASH, TESTNET_GENESIS_HASH
```

## `ALGORAND_MAINNET_CAIP2`

```python
ALGORAND_MAINNET_CAIP2 = 'algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k'
```

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

## `ALGORAND_TESTNET_CAIP2`

```python
ALGORAND_TESTNET_CAIP2 = 'algorand:SGO1GKSzyE7IEPItTxCByw9x8FmnrCDe'
```

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

## `MAINNET_GENESIS_HASH`

```python
MAINNET_GENESIS_HASH = 'wGHE2Pwdvd7S12BL5FaOP20EGYesN73ktiC1qzkkit8='
```

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

## `TESTNET_GENESIS_HASH`

```python
TESTNET_GENESIS_HASH = 'SGO1GKSzyE7IEPItTxCByw9x8FmnrCDexi9/cOUJOiI='
```

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

## `USDC_MAINNET_ASA_ID`

```python
USDC_MAINNET_ASA_ID = 31566704
```

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

## `USDC_TESTNET_ASA_ID`

```python
USDC_TESTNET_ASA_ID = 10458941
```

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

## `SCHEME_EXACT`

```python
SCHEME_EXACT = 'exact'
```

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

## `DEFAULT_DECIMALS`

```python
DEFAULT_DECIMALS = 6
```

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

## `MIN_TXN_FEE`

```python
MIN_TXN_FEE = 1000
```

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

## `MAX_GROUP_SIZE`

```python
MAX_GROUP_SIZE = 16
```

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

## `SUPPORTED_NETWORKS`

```python
SUPPORTED_NETWORKS = [ALGORAND_MAINNET_CAIP2, ALGORAND_TESTNET_CAIP2]
```

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

## `V1_NETWORKS`

```python
V1_NETWORKS = ['algorand-mainnet', 'algorand-testnet']
```

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

## `V1_TO_V2_NETWORK_MAP`

```python
V1_TO_V2_NETWORK_MAP: dict[str, str] = {'algorand-mainnet': ALGORAND_MAINNET_CAIP2, 'algorand-testnet': ALGORAND_TESTNET_CAIP2, 'algorand': ALGORAND_MAINNET_CAIP2}
```

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

## `DEFAULT_ASSETS`

```python
DEFAULT_ASSETS: dict[str, list[dict[str, Any]]] = ...  # see source
```

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

## `NETWORK_CONFIGS`

```python
NETWORK_CONFIGS: dict[str, NetworkConfig] = ...  # see source
```

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

The payload error codes (`ERR_*` in `x402_algorand.constants`) are listed on [Error codes](https://x402-avm.github.io/reference/errors).

Source: https://x402-avm.github.io/reference/python/x402-algorand/constants
