> 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/hats-signer-gate-sdk.md).

# Hats Signer Gate SDK

{% hint style="warning" %}
This SDK currently uses Hats Signer Gate v1. There is a new version, [Hats Signer Gate v2](/for-developers/hats-signer-gate-v2.md), which should be used instead. The docs for this SDK will be updated and this note will be removed once this SDK has been updated to work with v2.
{% endhint %}

## Overview

Hats Signer Gate (HSG) is a contract that grants multisig signing rights to addresses wearing a given Hat, enabling on-chain organizations (such as DAOs) to revocably delegate constrained signing authority and responsibility to individuals.

Multi Hats Signer Gate (MHSG) is a modification of HSG that supports setting multiple Hats as valid signer Hats.

The SDK is an open source JavaScript client for creating and interacting with HSG and/or MHSG instances and was designed to work both in the browser and in Node.js.

For an in-depth overview of Hats Signer Gate, click [here](/hats-integrations/permissions-and-authorities/safe-multisig-signing-authority.md).

{% content-ref url="/pages/m5nGvYqOAMIi6fGewOGD" %}
[Getting Started](/for-developers/hats-signer-gate-sdk/getting-started.md)
{% endcontent-ref %}

{% content-ref url="/pages/gH4ufoQCEiRDeWEDaqE3" %}
[Creating New Instances](/for-developers/hats-signer-gate-sdk/creating-new-instances.md)
{% endcontent-ref %}

{% content-ref url="/pages/2sLbzuta4lrQmOlxS6kR" %}
[Hats Signer Gate](/for-developers/hats-signer-gate-sdk/hats-signer-gate.md)
{% endcontent-ref %}

{% content-ref url="/pages/C7azsZei0dpCoRu6TfYF" %}
[Multi Hats Signer Gate](/for-developers/hats-signer-gate-sdk/multi-hats-signer-gate.md)
{% endcontent-ref %}

{% content-ref url="/pages/d7juAtMW0ruP19Y6pT1p" %}
[HSG & MHSG Handlers](/for-developers/hats-signer-gate-sdk/hsg-and-mhsg-handlers.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.hatsprotocol.xyz/for-developers/hats-signer-gate-sdk.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
