@aptos-labs/ts-sdk - v7.1.0
    Preparing search index...

    Variable TEXT_ENCODERConst

    TEXT_ENCODER: { encode(input: string): Uint8Array } = ...

    Shared TextEncoder instance for string serialization to avoid repeated instantiation.

    The explicit structural type prevents TypeScript from inferring import("util").TextEncoder (from @types/node) into the emitted .d.ts, which would force every SDK consumer to have @types/node installed. The SDK is runtime-agnostic (browser/Node/Bun/Deno/RN), so we expose only the minimal shape the SDK actually uses.

    Type Declaration

    • encode: function