Nado Typescript SDK Documentation
    Preparing search index...

    Function subaccountToHex

    • When interacting with the engine, we need to send a hex string representation of the bytes32 of a subaccount for serialization reasons. This util converts a subaccount object (owner + name) to such hex representation.

      Parameters

      • subaccount: Subaccount

        subaccount object (owner + name)

      Returns `0x${string}`

      hex string representation of a subaccount