Quai Network Docs home page
What can I build on Quai?
⌘K
Ask AI
Developer Discord
Claim Rewards
Quai Network
Quai Network
Search...
Navigation
Utils
getZoneForAddress
Learn
Build
SDK
Client
Guides
Get Involved
Getting Started
Introduction
Fundamentals
Addresses
Smart Contracts
Network Providers
Transactions
Wallets
Examples
Reference
Address
Application Binary Interface
Constants
Contract
Crypto
Encoding
Hash
Other
Providers
Signers
Transaction
Utils
EventPayload
FetchRequest
FetchResponse
FixedNumber
ActionRejectedError
BadDataError
BufferOverrunError
CallExceptionError
CancelledError
EventEmitterable
InsufficientFundsError
InvalidArgumentError
MissingArgumentError
NetworkError
NonceExpiredError
NotImplementedError
NumericFaultError
ReplacementUnderpricedError
ServerError
TimeoutError
TransactionReplacedError
UnexpectedArgumentError
UnknownError
UnsupportedOperationError
quaisError
BigNumberish
BytesLike
CallExceptionAction
CallExceptionTransaction
CodedquaisError
FetchGatewayFunc
FetchGetUrlFunc
FetchPreflightFunc
FetchProcessFunc
FetchRetryFunc
FixedFormat
GetUrlResponse
Listener
Numeric
concat
dataLength
dataSlice
formatQi
formatQuai
formatUnits
fromTwos
getAddressDetails
getBigInt
getBytes
getBytesCopy
getNumber
getTxType
getUint
getZoneForAddress
hexlify
isBytesLike
isCallException
isError
isHexString
makeError
mask
parseQi
parseQuai
parseUnits
stripZerosLeft
toBeArray
toBeHex
toBigInt
toNumber
toQuantity
toTwos
uuidV4
zeroPadBytes
zeroPadValue
Wallet
Wordlists
On this page
Parameters
Returns
Source
Utils
getZoneForAddress
Copy
Ask AI
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
hexadecimal representation.
Returns
Zone
|
null
An object containing the shard information, or null if no
Source
utils/shards.ts:15
Was this page helpful?
Yes
No
Suggest edits
Raise issue
getUint
hexlify
Assistant
Responses are generated using AI and may contain mistakes.