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
uuidV4
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
uuidV4
Copy
Ask AI
function
uuidV4
(
randomBytes
)
:
string
Returns the version 4
UUID
for the
randomBytes
.
Parameters
Parameter
Type
Description
randomBytes
BytesLike
The random bytes to use.
Returns
string
The UUID.
Source
utils/uuid.ts:15
Was this page helpful?
Yes
No
Suggest edits
Raise issue
toTwos
zeroPadBytes
Assistant
Responses are generated using AI and may contain mistakes.