NetworksResource
Access via urblock.networks.
Query supported blockchain networks, including chain IDs, explorer URLs, and fhEVM capability metadata.
Methods
list()
List all supported networks (mainnet and testnet).
const networks = await urblock.networks.list();
for (const net of networks.data) {
console.log(`${net.name} (chain ${net.chain_id}) — ${net.is_testnet ? "testnet" : "mainnet"}`);
}
Returns: ListResponse<NetworkResponse>
retrieve(id)
Get a single network by ID.
const network = await urblock.networks.retrieve("net_polygon_amoy");
console.log(network.name); // "Polygon Amoy"
console.log(network.chain_id); // 80002
console.log(network.explorer_url); // "https://amoy.polygonscan.com"
console.log(network.is_testnet); // true
console.log(network.is_fhevm); // false
Returns: NetworkResponse
| Field | Type | Description |
|---|---|---|
id | string | Network ID (net_...) |
name | string | Human-readable network name |
chain_id | number | EVM chain ID |
explorer_url | string | Block explorer base URL |
is_testnet | boolean | Whether this is a test network |
is_active | boolean | Whether the network is currently enabled |
is_fhevm | boolean | Whether confidential fhEVM deploys are supported |
gateway_url | string | null | fhEVM gateway URL when available |
fhe_public_key | string | null | Optional network FHE public key metadata |
coprocessor_url | string | null | Optional coprocessor service URL |
confidential_factory_address | string | null | Confidential factory contract address |
acl_address | string | null | fhEVM ACL contract address |
coprocessor_address | string | null | fhEVM executor/coprocessor contract address |
kms_verifier_address | string | null | fhEVM KMS verifier contract address |
See Also
- Networks API — full endpoint reference
- Testnet Onboarding Guide — get started on testnet