> ## Documentation Index
> Fetch the complete documentation index at: https://blackswan-23965643.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# BlackSwan Python SDK Configuration Reference

> Configure the BlackSwan Python SDK client with your chosen network and RPC endpoint to start reading on-chain credit data.

After installing the SDK, initialize a `BlackSwanClient` instance with the network and RPC URL you want to use. The client is the entry point for all SDK method calls.

## BlackSwanClient

Initialize the client with your network and RPC URL.

### Parameters

| Parameter | Type | Required | Description                                    |
| --------- | ---- | -------- | ---------------------------------------------- |
| network   | str  | Yes      | Network to connect to: `"amoy"` or `"sepolia"` |
| rpc\_url  | str  | Yes      | RPC endpoint URL                               |

### Example

```python theme={null}
from blackswan import BlackSwanClient

# Polygon Amoy (testnet)
client = BlackSwanClient(
    network="amoy",
    rpc_url="https://polygon-amoy.g.alchemy.com/v2/your-api-key"
)

# Or Sepolia (testnet)
client = BlackSwanClient(
    network="sepolia",
    rpc_url="https://eth-sepolia.g.alchemy.com/v2/your-api-key"
)
```

## Supported Networks

* `amoy` — Polygon Amoy testnet
* `sepolia` — Ethereum Sepolia testnet
