@ensnode/ensrainbow-sdk
Version:
ENSRainbow SDK for interacting with the ENSRainbow API.
13 lines (10 loc) • 397 B
TypeScript
import { LabelHash } from '@ensnode/ensnode-sdk';
import { ByteArray } from 'viem';
/**
* Converts a Labelhash to bytes, with validation
* @param labelHash The Labelhash to convert
* @returns A ByteArray containing the bytes
* @throws Error if `labelHash` is not a valid 32-byte hex string
*/
declare function labelHashToBytes(labelHash: LabelHash): ByteArray;
export { labelHashToBytes };