Constructors

  • Creates an instance of Cell.

    Parameters

    • outPoint: OutPoint

      The output point of the cell.

    • cellOutput: CellOutput

      The cell output of the cell.

    • outputData: `0x${string}`

      The output data of the cell.

    Returns Cell

Properties

outPoint: OutPoint

The output point of the cell.

cellOutput: CellOutput

The cell output of the cell.

outputData: `0x${string}`

The output data of the cell.

Accessors

  • get occupiedSize(): number
  • Occupied bytes of a cell on chain It's CellOutput.occupiedSize + bytesFrom(outputData).byteLength

    Returns number

Methods

  • Creates a Cell instance from a CellLike object.

    Parameters

    • cell: CellLike

      A CellLike object or an instance of Cell.

    Returns Cell

    A Cell instance.

  • Parameters

    • client: Client
    • Optionalphase: "deposited" | "withdrew"

    Returns Promise<boolean>