The output point of the cell.
The cell output of the cell.
The output data of the cell.
The output point of the cell.
The cell output of the cell.
The output data of the cell.
Occupied bytes of a cell on chain It's CellOutput.occupiedSize + bytesFrom(outputData).byteLength
Static
fromCreates a Cell instance from a CellLike object.
This method accepts either outPoint
or previousOutput
to specify the cell's location,
and supports automatic capacity calculation for the cell output.
A CellLike object or an instance of Cell. The object can use either:
- outPoint
: For referencing a cell output
- previousOutput
: For referencing a cell input (alternative name for outPoint)
The cellOutput can omit capacity for automatic calculation.
A Cell instance.
// Using outPoint with explicit capacity
const cell1 = Cell.from({
outPoint: { txHash: "0x...", index: 0 },
cellOutput: {
capacity: 1000n,
lock: { codeHash: "0x...", hashType: "type", args: "0x..." }
},
outputData: "0x"
});
// Using previousOutput with automatic capacity calculation
const cell2 = Cell.from({
previousOutput: { txHash: "0x...", index: 0 },
cellOutput: {
lock: { codeHash: "0x...", hashType: "type", args: "0x..." }
// capacity will be calculated automatically
},
outputData: "0x1234"
});
Gets confirmed Nervos DAO profit of a Cell It returns non-zero value only when the cell is in withdrawal phase 2 See https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0023-dao-deposit-withdraw/0023-dao-deposit-withdraw.md
A client for searching DAO related headers
Profit
Optional
phase: "deposited" | "withdrew"
Creates an instance of Cell.