# AlgorandNetwork

> Network configuration and endpoints for an Algorand network.

```ts
import type { AlgorandNetwork } from 'x402-avm-js';
```

```ts
export interface AlgorandNetwork {
  /** CAIP-2 id, "algorand:<genesis hash>" */
  caip2: string;
  genesisHash: string;
  genesisId: string;
  algodUrl: string;
  indexerUrl: string;
  /** Circle USDC asset id, where it exists */
  usdc?: number;
}
```

Network configuration and endpoints for an Algorand network.

## Properties

- `caip2` (`string`, required):
CAIP-2 id: `algorand:` followed by the first 32 characters of the URL-safe base64 genesis hash.

- `genesisHash` (`string`, required):
Base64 genesis hash (44 characters).

- `genesisId` (`string`, required):
Genesis id, for example `mainnet-v1.0`.

- `algodUrl` (`string`, required):
Default algod URL (public AlgoNode endpoint).

- `indexerUrl` (`string`, required):
Default indexer URL (public AlgoNode endpoint).

- `usdc` (`number`):
Circle USDC asset id on this network, where it exists.

## Example

```ts
const net: AlgorandNetwork = MAINNET;
console.log(net.caip2, net.algodUrl);
```

Source: [src/index.ts](https://github.com/x402-avm/x402-avm-js/blob/main/src/index.ts#L137)

Source: https://x402-avm.github.io/reference/js/algorand-network
