API ReferenceFunctions
uuidToHighLow
Function: uuidToHighLow()
function uuidToHighLow(uuid: string): {
high: bigint;
low: bigint;
};Defined in: api/_helpers.ts:91
Split a UUID into the {high, low} fixed64 pair Snap uses in some RPCs
(e.g. FriendAction.AddFriends) instead of the bytes16 wrapper.
Parameters
| Parameter | Type | Description |
|---|---|---|
uuid | string | Hyphenated UUID string. |
Returns
{
high: bigint;
low: bigint;
}{ high, low } — high is the big-endian uint64 of UUID
bytes 0..7, low is the big-endian uint64 of bytes 8..15.
| Name | Type | Defined in |
|---|---|---|
high | bigint | api/_helpers.ts:91 |
low | bigint | api/_helpers.ts:91 |