# Endpoints

> Connection parameters for Algorand node services.

```python
from ai_economy_sdk.network import Endpoints
```

```python
class Endpoints(
    algod_url: str,
    algod_token: str,
    indexer_url: str,
    indexer_token: str,
)
```

Connection parameters for Algorand node services.

## Constructor parameters

- `algod_url` (`str`, required):
URL of the algod daemon endpoint.

- `algod_token` (`str`, required):
Authentication token header value for algod.

- `indexer_url` (`str`, required):
URL of the Algorand indexer service endpoint.

- `indexer_token` (`str`, required):
Authentication token header value for indexer.

## Examples

```python
>>> from ai_economy_sdk.network import Endpoints
>>> ep = Endpoints("http://localhost:4001", "a" * 64, "http://localhost:8980", "")
>>> ep.algod_url
'http://localhost:4001'
```

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

Source: https://x402-avm.github.io/reference/python/ai-economy-sdk/endpoints
