near-api-js - v7.5.3
    Preparing search index...

    Function deriveUniversalAccountId

    • Derives a universal account ID from exact raw bytes, without decoding or validating them.

      Parameters

      • stateInit: Uint8Array

        Versioned state-init bytes. Use UniversalStateInit.encode() for canonical V1 bytes.

      Returns string

      0u followed by lowercase Crockford Base32 of SHA3-256 over the supplied bytes.

      Future versions can be forwarded unchanged. Different encodings produce different IDs; deriving an ID does not imply that the node will accept the bytes for initialization.