@lelantos-org/sdk / wallet / classifyRef
Function: classifyRef() โ
ts
function classifyRef(ref): RefKind;Defined in: @lelantos-org/sdk/dist/wallet/asset-ref.d.ts:27
Classify ref without needing a registry.
A 0x string that is not 20 bytes is rejected here rather than falling through to a symbol lookup: it is a mistyped address, and reporting it as an unknown symbol sends the reader hunting in the wrong place.
Parameters โ
| Parameter | Type |
|---|---|
ref | AssetRef |
Returns โ
RefKind