Cell

An unspent cell output, that can serve as input to a transaction
Protobuf type TW.Nervos.Proto.Cell

Types

Link copied to clipboard
class Builder
An unspent cell output, that can serve as input to a transaction
Protobuf type TW.Nervos.Proto.Cell

Functions

Link copied to clipboard
open fun getBlockHash(): ByteString
Optional block hash
bytes block_hash = 7;
Link copied to clipboard
open fun getBlockNumber(): Long
Optional block number
uint64 block_number = 6;
Link copied to clipboard
open fun getCapacity(): Long
Amount of the cell
uint64 capacity = 2;
Link copied to clipboard
open fun getData(): ByteString
Data
bytes data = 5;
Link copied to clipboard
open fun getDefaultInstance(): Cell
Link copied to clipboard
open fun getInputType(): ByteString
Optional input type data to be included in witness
bytes input_type = 9;
Link copied to clipboard
open fun getLock(): Script
Lock script
.TW.Nervos.Proto.Script lock = 3;
Link copied to clipboard
open fun getOutPoint(): OutPoint
The unspent output
.TW.Nervos.Proto.OutPoint out_point = 1;
Link copied to clipboard
open fun getOutputType(): ByteString
Optional output type data to be included in witness
bytes output_type = 10;
Link copied to clipboard
open fun getSince(): Long
Optional since the cell is available to spend
uint64 since = 8;
Link copied to clipboard
open fun getType(): Script
Type script
.TW.Nervos.Proto.Script type = 4;
Link copied to clipboard
open fun hasLock(): Boolean
Lock script
.TW.Nervos.Proto.Script lock = 3;
Link copied to clipboard
open fun hasOutPoint(): Boolean
The unspent output
.TW.Nervos.Proto.OutPoint out_point = 1;
Link copied to clipboard
open fun hasType(): Boolean
Type script
.TW.Nervos.Proto.Script type = 4;
Link copied to clipboard
open fun newBuilder(prototype: Cell): Nervos.Cell.Builder
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream): Cell
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): Cell
Link copied to clipboard
open fun parseFrom(data: Array<Byte>): Cell
open fun parseFrom(data: ByteString): Cell
open fun parseFrom(input: CodedInputStream): Cell
open fun parseFrom(input: InputStream): Cell
open fun parseFrom(data: ByteBuffer): Cell
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): Cell
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): Cell
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): Cell
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): Cell
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): Cell
Link copied to clipboard
open fun parser(): Parser<Cell>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard