Function hexToString

  • Parameters

    • Optional _value: null | string

    Returns string

    Name

    hexToU8a

    Summary

    Creates a Uint8Array object from a hex string.

    Description

    Hex input values return the actual bytes value converted to a string. Anything that is not a hex string (including the 0x prefix) throws an error.

    Example


    import { hexToString } from '@polkadot/util';

    hexToU8a('0x68656c6c6f'); // hello

Generated using TypeDoc