Networks

CAN supports three Algorand network presets. Set the network with --network on any command that connects to the chain.

Localnet (default)

Local sandbox for development. Start with algokit localnet start.

ServiceURL
Algodhttp://localhost:4001
Indexerhttp://localhost:8980
KMDhttp://localhost:4002
can run --network localnet

Testnet

Algorand TestNet via Nodely public APIs. Free to use, requires testnet ALGO from the dispenser.

ServiceURL
Algodhttps://testnet-api.4160.nodely.dev
Indexerhttps://testnet-idx.4160.nodely.dev
can run --network testnet

Mainnet

Algorand MainNet via Nodely public APIs. Uses real ALGO.

ServiceURL
Algodhttps://mainnet-api.4160.nodely.dev
Indexerhttps://mainnet-idx.4160.nodely.dev
can run --network mainnet

Custom URLs

Override any network preset with explicit URLs:

can run \
  --network localnet \
  --algod-url http://custom-node:4001 \
  --algod-token mytoken \
  --indexer-url http://custom-indexer:8980 \
  --indexer-token mytoken

All URL overrides can also be set via environment variables:

VariableDescription
CAN_NETWORKNetwork preset
CAN_ALGOD_URLAlgod URL override
CAN_ALGOD_TOKENAlgod API token
CAN_INDEXER_URLIndexer URL override
CAN_INDEXER_TOKENIndexer API token