Skip to main content

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

FieldTypeDescription
idstringNetwork ID (net_...)
namestringHuman-readable network name
chain_idnumberEVM chain ID
explorer_urlstringBlock explorer base URL
is_testnetbooleanWhether this is a test network
is_activebooleanWhether the network is currently enabled
is_fhevmbooleanWhether confidential fhEVM deploys are supported
gateway_urlstring | nullfhEVM gateway URL when available
fhe_public_keystring | nullOptional network FHE public key metadata
coprocessor_urlstring | nullOptional coprocessor service URL
confidential_factory_addressstring | nullConfidential factory contract address
acl_addressstring | nullfhEVM ACL contract address
coprocessor_addressstring | nullfhEVM executor/coprocessor contract address
kms_verifier_addressstring | nullfhEVM KMS verifier contract address

See Also​