> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qu.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# getZoneForAddress

```ts theme={null}
function getZoneForAddress(address): Zone | null
```

Retrieves the shard information for a given address based on its byte prefix. The function parses the address to
extract its byte prefix, then filters the ShardData to find a matching shard entry. If no matching shard is found, it
returns null.

## Parameters

| Parameter | Type     | Description                                                                                                                  |
| :-------- | :------- | :--------------------------------------------------------------------------------------------------------------------------- |
| `address` | `string` | The blockchain address to be analyzed. The address should start with "0x" followed by the<br />  hexadecimal representation. |

## Returns

[`Zone`](/sdk/content/enumerations/Zone) | `null`

An object containing the shard information, or null if no

## Source

[utils/shards.ts:15](https://github.com/dominant-strategies/quais.js/blob/c1c12d43f9d34c6baad2b0542bd6d0acd6fefcbf/src/utils/shards.ts#L15)
