Function serializeTypeValue

  • Given a value for a smart contract type, and the raw schema for that type, serialize the value into binary format.

    Returns

    serialized buffer of the value

    Parameters

    • value: any

      the value that should be serialized. Should correspond to the JSON representation

    • rawSchema: ArrayBuffer

      the schema for the type that the given value should be serialized as

    • verboseErrorMessage: boolean = false

      Whether errors are in a verbose format or not. Defaults to false.

    Returns Parameter.Type

Generated using TypeDoc