The previous outpoint of the cell.
OptionalcellOptionaloutputStatic OptionalbyteThe bytes length of the entity, if it is fixed, otherwise undefined
StaticencodeEncode the entity into bytes
The entity to encode
The encoded bytes
StaticdecodeDecode the entity from bytes
StaticfromCreate an entity from bytes
StaticfromCreates a CellInput instance from a CellInputLike object.
A CellInputLike object or an instance of CellInput.
A CellInput instance.
Complete extra infos in the input. Including
true if succeed.
The extra capacity created when consume this input. This is usually NervosDAO interest, see https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0023-dao-deposit-withdraw/0023-dao-deposit-withdraw.md. And it can also be miners' income. (But this is not implemented yet)
StaticBaseGenerate a base class of CCC to create a serializable instance. This should be used with the codec decorator.
Check if the entity is equal to another entity
The other entity to compare with
True if the entities are equal, false otherwise
Calculate the hash of the entity
The hash of the entity
Convert the entity to a full-byte untrimmed Hex representation
The entity full-byte untrimmed hexadecimal representation
StaticBaseGenerate a base class of CCC to create a serializable Union instance. This should be used with the codec decorator.
Creates an instance of CellInput.