common: {
    __tests__: {
        _commonTransfer: ((txSkeleton, fromInfos, amount, minimalChangeCapacity, __namedParameters?) => Promise<{
            capacity: bigint;
            changeCapacity: bigint;
            txSkeleton: TransactionSkeletonType;
        }>);
        calculateFee: ((size, feeRate) => bigint);
        calculateFeeCompatible: ((size, feeRate) => BI);
        generateLockScriptInfos: ((__namedParameters?) => void);
        getLockScriptInfos: (() => LockScriptInfosType);
        getTransactionSize: ((txSkeleton) => number);
        getTransactionSizeByTx: ((tx) => number);
        resetLockScriptInfos: (() => void);
    };
    injectCapacity: ((txSkeleton, fromInfos, amount, changeAddress?, tipHeader?, __namedParameters?) => Promise<TransactionSkeletonType>);
    payFee: ((txSkeleton, fromInfos, amount, tipHeader?, __namedParameters?) => Promise<TransactionSkeletonType>);
    payFeeByFeeRate: ((txSkeleton, fromInfos, feeRate, tipHeader?, __namedParameters?) => Promise<TransactionSkeletonType>);
    prepareSigningEntries: ((txSkeleton, __namedParameters?) => TransactionSkeletonType);
    registerCustomLockScriptInfos: ((infos) => void);
    setupInputCell: ((txSkeleton, inputCell, fromInfo?, options?) => Promise<TransactionSkeletonType>);
    transfer: ((txSkeleton, fromInfos, toAddress, amount, changeAddress?, tipHeader?, options?) => Promise<TransactionSkeletonType>);
}

Type declaration

  • __tests__: {
        _commonTransfer: ((txSkeleton, fromInfos, amount, minimalChangeCapacity, __namedParameters?) => Promise<{
            capacity: bigint;
            changeCapacity: bigint;
            txSkeleton: TransactionSkeletonType;
        }>);
        calculateFee: ((size, feeRate) => bigint);
        calculateFeeCompatible: ((size, feeRate) => BI);
        generateLockScriptInfos: ((__namedParameters?) => void);
        getLockScriptInfos: (() => LockScriptInfosType);
        getTransactionSize: ((txSkeleton) => number);
        getTransactionSizeByTx: ((tx) => number);
        resetLockScriptInfos: (() => void);
    }
    • _commonTransfer: ((txSkeleton, fromInfos, amount, minimalChangeCapacity, __namedParameters?) => Promise<{
          capacity: bigint;
          changeCapacity: bigint;
          txSkeleton: TransactionSkeletonType;
      }>)
        • (txSkeleton, fromInfos, amount, minimalChangeCapacity, __namedParameters?): Promise<{
              capacity: bigint;
              changeCapacity: bigint;
              txSkeleton: TransactionSkeletonType;
          }>
        • Parameters

          Returns Promise<{
              capacity: bigint;
              changeCapacity: bigint;
              txSkeleton: TransactionSkeletonType;
          }>

    • calculateFee: ((size, feeRate) => bigint)
        • (size, feeRate): bigint
        • Parameters

          • size: number
          • feeRate: bigint

          Returns bigint

    • calculateFeeCompatible: ((size, feeRate) => BI)
        • (size, feeRate): BI
        • Parameters

          • size: number
          • feeRate: BIish

          Returns BI

    • generateLockScriptInfos: ((__namedParameters?) => void)
        • (__namedParameters?): void
        • Parameters

          Returns void

    • getLockScriptInfos: (() => LockScriptInfosType)
        • (): LockScriptInfosType
        • Returns LockScriptInfosType

    • getTransactionSize: ((txSkeleton) => number)
    • getTransactionSizeByTx: ((tx) => number)
        • (tx): number
        • Parameters

          Returns number

    • resetLockScriptInfos: (() => void)
        • (): void
        • Returns void

  • injectCapacity: ((txSkeleton, fromInfos, amount, changeAddress?, tipHeader?, __namedParameters?) => Promise<TransactionSkeletonType>)
  • payFee: ((txSkeleton, fromInfos, amount, tipHeader?, __namedParameters?) => Promise<TransactionSkeletonType>)
  • payFeeByFeeRate: ((txSkeleton, fromInfos, feeRate, tipHeader?, __namedParameters?) => Promise<TransactionSkeletonType>)
  • prepareSigningEntries: ((txSkeleton, __namedParameters?) => TransactionSkeletonType)
  • registerCustomLockScriptInfos: ((infos) => void)
      • (infos): void
      • Registers LockScriptInfo for custom scripts.

        Parameters

        Returns void

  • setupInputCell: ((txSkeleton, inputCell, fromInfo?, options?) => Promise<TransactionSkeletonType>)
      • (txSkeleton, inputCell, fromInfo?, options?): Promise<TransactionSkeletonType>
      • A function to transfer input to output, and add input & output to txSkeleton. And it will deal with cell deps and witnesses too. (Add the input required cell deps and witnesses.) It should be noted that the output must be added to the end of txSkeleton.get("outputs").

        Parameters

        Returns Promise<TransactionSkeletonType>

  • transfer: ((txSkeleton, fromInfos, toAddress, amount, changeAddress?, tipHeader?, options?) => Promise<TransactionSkeletonType>)

Generated using TypeDoc