> For the complete documentation index, see [llms.txt](https://docs.hatsprotocol.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hatsprotocol.xyz/for-developers/v1-protocol-spec/interfaces/ihatstoggle.sol.md).

# IHatsToggle.sol

## IHatsToggle

[Git Source](https://github.com/Hats-Protocol/hats-protocol/blob/b43ad0d1dbe4a4190febc036ee8a2849e3f221b4/src/Interfaces/IHatsToggle.sol)

### Functions

#### getHatStatus

```solidity
function getHatStatus(uint256 _hatId) external view returns (bool);
```

**Parameters**

<table><thead><tr><th width="162.66666666666666">Name</th><th width="217">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>_hatId</code></td><td><code>uint256</code></td><td>The id of the hat in question</td></tr></tbody></table>

**Returns**

<table><thead><tr><th width="166">Name</th><th width="212.66666666666666">Type</th><th>Descriptiom</th></tr></thead><tbody><tr><td>-</td><td><code>bool</code></td><td>Whether the hat is active (true) or inactive (false</td></tr></tbody></table>
