@textile/hub > ThreadID > fromString
ThreadID.fromString() method
fromString parses an ID-encoded string and returns an ID object. For IDV1, an ID-encoded string is primarily a multibase string: <multibase-type-code><base-encoded-string> The base-encoded string represents a:
Signature:
static fromString(v: string | Uint8Array): ThreadID;
Parameters
Parameter | Type | Description |
---|---|---|
v | string | Uint8Array | The input encoded Thread ID. |
Returns: