Type Parameters

Hierarchy

  • MPTree

Constructors

Accessors

Methods

Constructors

  • Deserialize Merkle Patricia Tree

    Type Parameters

    Parameters

    • binary: MPTreeBinary

      Binary

    • encoding: E
    • tag: T

      Tag to use to decode value

    • unpTx: (<TxType>(encodedTx, txType?) => TxUnpacked & {
          tag: TxType;
      })

      Implementation of unpackTx use to decode values

        • <TxType>(encodedTx, txType?): TxUnpacked & {
              tag: TxType;
          }
        • Unpack transaction encoded as string

          Type Parameters

          • TxType extends Tag

          Parameters

          • encodedTx: `tx_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}`

            Transaction to unpack

          • Optional txType: TxType

            Expected transaction type

          Returns TxUnpacked & {
              tag: TxType;
          }

          Object with transaction param's

          Category

          transaction builder

    Returns MPTree<E, T>

    Merkle Patricia Tree

Accessors

Methods

  • Retrieve value from Merkle Patricia Tree

    Parameters

    • key: `${E}_${string}`

      The key of the element to retrieve

    Returns undefined | Object

    Value associated to the specified key

Generated using TypeDoc