snapcap
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

ParameterTypeDescription
uuidstringHyphenated 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.

NameTypeDefined in
highbigintapi/_helpers.ts:91
lowbigintapi/_helpers.ts:91

See

highLowToUuid

On this page