@textile/hub > ThreadID > getEncoding
ThreadID.getEncoding() method
getEncoding returns the multibase encoding for a multibase encoded string. Returns the name of the encoding if it is encoded, and throws an error otherwise.
Signature:
static getEncoding(v: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
v | string | The Thread ID to check. |
Returns:
string