@lelantos-org/sdk / internal / classifyRef
Function: classifyRef()
ts
function classifyRef(ref): RefKind;Defined in: @lelantos-org/sdk/dist/wallet/assets/asset-ref.d.ts:28
Classify ref without needing a registry.
A 0x string that is not 20 bytes is rejected as a malformed address instead of falling through to a symbol lookup, which would report a misleading error.
Parameters
| Parameter | Type |
|---|---|
ref | AssetRef |
Returns
Throws
for an empty ref, a malformed address, or id 0.