Type Parameters

Hierarchy

  • MPTree

Constructors

Accessors

Methods

Constructors

  • Deserialize Merkle Patricia Tree

    Returns

    Merkle Patricia Tree

    Type Parameters

    Parameters

    • binary: MPTreeBinary

      Binary

    • encoding: E
    • tag: T

      Tag to use to decode value

    • unpTx: (<TxType>(encodedTx: `tx_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}`, txType?: TxType) => TxUnpacked & {
          tag: TxType;
      })

      Implementation of unpackTx use to decode values

        • <TxType>(encodedTx: `tx_${string}` | `pi_${string}` | `ss_${string}` | `cs_${string}`, txType?: TxType): TxUnpacked & {
              tag: TxType;
          }
        • Unpack transaction encoded as string

          Category

          transaction builder

          Returns

          Object with transaction param's

          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;
          }

    Returns MPTree<E, T>

Accessors

Methods

  • Retrieve value from Merkle Patricia Tree

    Returns

    Value associated to the specified key

    Parameters

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

      The key of the element to retrieve

    Returns undefined | Object

Generated using TypeDoc