Function buildTx

  • Build transaction hash

    Throws

    InvalidTxParamsError

    Returns

    object

    Returns

    object.tx Base64Check transaction hash with 'tx_' prefix

    Returns

    object.rlpEncoded rlp encoded transaction

    Returns

    object.binary binary transaction

    Type Parameters

    • TxType extends Tag

    • Prefix

    Parameters

    • _params: Omit<TxTypeSchemas[TxType], "tag" | "VSN"> & { VSN?: number }

      Object with tx params

    • type: TxType

      Transaction type

    • options: { denomination?: AE_AMOUNT_FORMATS; excludeKeys?: string[]; prefix?: Encoding; vsn?: number } = {}

      options

      • Optional denomination?: AE_AMOUNT_FORMATS

        Denomination of amounts

      • Optional excludeKeys?: string[]

        Array of keys to exclude for validation and build

      • Optional prefix?: Encoding

        Prefix of transaction

      • Optional vsn?: number

    Returns BuiltTx<TxSchema, Prefix extends Encoding ? Prefix : Transaction>

Generated using TypeDoc