interface SerializeAettosParams {
    _computingMinFee?: BigNumber;
    buildTx: (params: TxParams) => `tx_${string}`;
    rebuildTx: (params: any) => `tx_${string}`;
    unpackTx: <TxType extends Tag>(
        encodedTx:
            | `tx_${string}`
            | `pi_${string}`
            | `ss_${string}`
            | `cs_${string}`,
        txType?: TxType,
    ) => TxUnpacked & { tag: TxType };
}

Other

transaction builder

Other

_computingMinFee?: BigNumber
rebuildTx: (params: any) => `tx_${string}`

transaction builder

buildTx: (params: TxParams) => `tx_${string}`

Type declaration

    • (params: TxParams): `tx_${string}`
    • Build transaction

      Parameters

      Returns `tx_${string}`

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

Type declaration

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

      Type Parameters

      • TxType extends Tag

      Parameters

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

        Encoded transaction

      • OptionaltxType: TxType

        Expected transaction type

      Returns TxUnpacked & { tag: TxType }

      Transaction params