@pwngh/economy-lab
    Preparing search index...

    Function walletKindOf

    The wallet kind encoded after the last : in a user account id (usr_9:spendable gives 'spendable'), or null when the suffix is absent or unknown — platform accounts return null. The one parser for the id shape, shared with the built-in stores' known-account checks, so a custom store that recognizes accounts through it accepts exactly the same ids.

    • Pulls the wallet kind out of an id like usr_123:spendable. Returns null if there's no :kind suffix or it isn't a known kind — the one parser for the shape, shared with the store adapters' isKnownAccount checks.

      Parameters

      Returns AccountKind | null