# IFlareContractRegistry

> Registry interface with all Flare contract addresses.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Source: https://dev.flare.network/network/solidity-reference/IFlareContractRegistry

Registry interface with all Flare contract addresses.

Check out the [guide](/network/guides/flare-contracts-registry) for instructions on how to interact with the Flare contracts registry.

Sourced from `IFlareContractRegistry.sol` on [GitHub](https://github.com/flare-foundation/flare-smart-contracts-v2/blob/main/contracts/userInterfaces/IFlareContractRegistry.sol).

## Functions[​](#functions "Direct link to Functions")

### getContractAddressByName[​](#getcontractaddressbyname "Direct link to getContractAddressByName")

Returns contract address for the given name - might be address(0).

```
function getContractAddressByName(    string _name) external view returns (    address);
```

#### Parameters[​](#parameters "Direct link to Parameters")

-   `_name`: name of the contract which is **case-sensitive**, so you should use the proper capitalization.

### getContractAddressByHash[​](#getcontractaddressbyhash "Direct link to getContractAddressByHash")

Returns contract address for the given name hash - might be address(0).

```
function getContractAddressByHash(    bytes32 _nameHash) external view returns (    address);
```

#### Parameters[​](#parameters-1 "Direct link to Parameters")

-   `_nameHash`: hash of the contract name (keccak256(abi.encode(name))

### getContractAddressesByName[​](#getcontractaddressesbyname "Direct link to getContractAddressesByName")

Returns contract addresses for the given names - might be address(0).

```
function getContractAddressesByName(    string[] _names) external view returns (    address[]);
```

#### Parameters[​](#parameters-2 "Direct link to Parameters")

-   `_names`: names of the contracts which is **case-sensitive**, so you should use the proper capitalization.

### getContractAddressesByHash[​](#getcontractaddressesbyhash "Direct link to getContractAddressesByHash")

Returns contract addresses for the given name hashes - might be address(0)

```
function getContractAddressesByHash(    bytes32[] _nameHashes) external view returns (    address[]);
```

#### Parameters[​](#parameters-3 "Direct link to Parameters")

-   `_nameHashes`: hashes of the contract names (keccak256(abi.encode(name))

### getAllContracts[​](#getallcontracts "Direct link to getAllContracts")

Returns all contract names and corresponding addresses

```
function getAllContracts() external view returns (    string[] _names,    address[] _addresses);
```
