> For the complete documentation index, see [llms.txt](https://docs.pulse.domains/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pulse.domains/contract-api-reference/subgraph/entities.md).

# Entities

## Entities

* [`Domain`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`DomainEvent`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`Transfer`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`NewOwner`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`NewResolver`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`NewTTL`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`Account`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`Registration`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`RegistrationEvent`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`NameRegistered`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`NameRenewed`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`NameTransferred`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`Resolver`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`ResolverEvent`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`AddrChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`MulticoinAddrChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`NameChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`AbiChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`PubKeyChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`TextChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`ContentHashChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`InterfaceChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)
* [`AuthorisationChanged`](broken://pages/2HFhXoN7BLufP5dZQhSc)

## Domain

Description:

| Field           | Type                                                  | Description                                                                                                     |
| --------------- | ----------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| id              | ID!                                                   | The namehash of the name                                                                                        |
| name            | String                                                | The human readable name, if known. Unknown portions replaced with hash in square brackets (eg, foo.\[1234].pls) |
| labelName       | String                                                | The human readable label name (imported from CSV), if known                                                     |
| labelhash       | Bytes                                                 | keccak256(labelName)                                                                                            |
| parent          | Domain                                                | The namehash (id) of the parent name                                                                            |
| subdomains      | [`Domain!`](broken://pages/2HFhXoN7BLufP5dZQhSc)      | Can count domains from length of array                                                                          |
| subdomainCount  | Int!                                                  | The number of subdomains                                                                                        |
| resolvedAddress | account                                               | Address logged from current resolver, if any                                                                    |
| owner           | Account!                                              |                                                                                                                 |
| resolver        | Resolver                                              |                                                                                                                 |
| ttl             | BigInt                                                |                                                                                                                 |
| isMigrated      | Boolean!                                              |                                                                                                                 |
| createdAt       | BigInt!                                               |                                                                                                                 |
| events          | [`DomainEvent!`](broken://pages/2HFhXoN7BLufP5dZQhSc) |                                                                                                                 |

## Transfer

Description:

| Field         | Type    | Description |
| ------------- | ------- | ----------- |
| id            | ID!     |             |
| domain        | Domain! |             |
| blockNumber   | Int!    |             |
| TransactionID | Bytes!  |             |

## NewOwner

Description:

| Field         | Type     | Description |
| ------------- | -------- | ----------- |
| id            | ID!      |             |
| parentDomain  | Domain!  |             |
| domain        | Domain!  |             |
| TransactionID | Bytes!   |             |
| owner         | Account! |             |

## NewResolver

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| domain        | Domain!   |             |
| blockNumber   | Int!      |             |
| TransactionID | Bytes!    |             |
| resolver      | Resolver! |             |

## NewTTL

Description:

| Field         | Type    | Description |
| ------------- | ------- | ----------- |
| id            | ID!     |             |
| domain        | Domain! |             |
| blockNumber   | Int!    |             |
| transactionID | Bytes!  |             |
| ttl           | BigInt! |             |

## Account

Description:

| Field        | Type                                                   | Description |
| ------------ | ------------------------------------------------------ | ----------- |
| id           | ID!                                                    |             |
| domain       | [`Domain!`](broken://pages/2HFhXoN7BLufP5dZQhSc)       |             |
| registration | [`Registration!`](broken://pages/2HFhXoN7BLufP5dZQhSc) |             |

## Registration

Description:

| Field            | Type                                                       | Description |
| ---------------- | ---------------------------------------------------------- | ----------- |
| id               | ID!                                                        |             |
| domain           | Domain                                                     |             |
| registrationDate | BigInt!                                                    |             |
| expiryDate       | BigInt!                                                    |             |
| cost             | BigInt!                                                    |             |
| registrant       | Account!                                                   |             |
| labelName        | String                                                     |             |
| events           | [`RegistrationEven!`](broken://pages/2HFhXoN7BLufP5dZQhSc) |             |

## RegistrationEvent

Description:

| Field         | Type              | Description |
| ------------- | ----------------- | ----------- |
| id            | ID!               |             |
| registration  | RegistrationEvent |             |
| blockNumber   | Int!              |             |
| transactionID | Bytes!            |             |

## NameRegistered

Description:

| Field         | Type          | Description |
| ------------- | ------------- | ----------- |
| id            | ID!           |             |
| registration  | Registration! |             |
| blockNumber   | Int!          |             |
| transactionID | Bytes!        |             |
| registrant    | Account!      |             |
| expiryDate    | BigInt!       |             |

## NameRenewed

Description:

| Field         | Type          | Description |
| ------------- | ------------- | ----------- |
| id            | ID!           |             |
| registration  | Registration! |             |
| blockNumber   | Int!          |             |
| transactionID | Bytes!        |             |
| expiryDate    | BigInt!       |             |

## NameTransferred

Description:

| Field         | Type          | Description |
| ------------- | ------------- | ----------- |
| id            | ID!           |             |
| registration  | Registration! |             |
| blockNumber   | Int!          |             |
| transactionID | Bytes!        |             |
| newOwner      | Account!      |             |

## Resolver

Description:

| Field      | Type                                                    | Description                                    |
| ---------- | ------------------------------------------------------- | ---------------------------------------------- |
| id         | ID!                                                     | Concatenation of resolver address and namehash |
| domain     | Domain                                                  |                                                |
| address    | Bytes!                                                  | Address of resolver contract                   |
| addr       | Account                                                 | Current value of addr record (per events)      |
| contenHash | Bytes                                                   | Content hash, in binary format                 |
| texts      | \[String!]                                              | Set of observed text record keys               |
| cointTypes | \[BigInt!]                                              | Set of observed SLIP-44 coin types             |
| events     | [`ResolverEvent!`](broken://pages/2HFhXoN7BLufP5dZQhSc) |                                                |

## ResolverEvent

Description:

| Field         | Type      | Description                               |
| ------------- | --------- | ----------------------------------------- |
| id            | ID!       | Concatenation of block number and log ID  |
| resolver      | Resolver! | Used to derive relationships to Resolvers |
| blockNumber   | Int!      |                                           |
| transactionID | Bytes!    |                                           |

## AddrChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| addr          | Account!  |             |

## MulticoinAddrChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| coinType      | BigInt!   |             |
| addr          | Bytes!    |             |

## NameChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| name          | String!   |             |

## AbiChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| contentType   | BigInt!   |             |

## PubkeyChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| x             | Bytes!    |             |
| y             | Bytes!    |             |

## TextChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| key           | String!   |             |
| value         | String    |             |

## ContenthashChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| hash          | Bytes!    |             |

## InterfaceChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| interfacedID  | Bytes!    |             |
| implementer   | Bytes!    |             |

## AuthorisationChanged

Description:

| Field         | Type      | Description |
| ------------- | --------- | ----------- |
| id            | ID!       |             |
| resolver      | Resolver! |             |
| blockNumber   | Int!      |             |
| transactionID | Bytes!    |             |
| owner         | Bytes!    |             |
| target        | Bytes!    |             |
| isAuthorized  | Boolean!  |             |


---

# 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.pulse.domains/contract-api-reference/subgraph/entities.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.
