Skip to content

@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 โ€‹

ParameterType
refAssetRef

Returns โ€‹

RefKind

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub