Builder

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
Optional block hash
bytes block_hash = 7;
Link copied to clipboard
Optional block number
uint64 block_number = 6;
Link copied to clipboard
Amount of the cell
uint64 capacity = 2;
Link copied to clipboard
Data
bytes data = 5;
Link copied to clipboard
Optional input type data to be included in witness
bytes input_type = 9;
Link copied to clipboard
Lock script
.TW.Nervos.Proto.Script lock = 3;
Link copied to clipboard
The unspent output
.TW.Nervos.Proto.OutPoint out_point = 1;
Link copied to clipboard
Optional output type data to be included in witness
bytes output_type = 10;
Link copied to clipboard
Optional since the cell is available to spend
uint64 since = 8;
Link copied to clipboard
Type script
.TW.Nervos.Proto.Script type = 4;
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 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 mergeLock(value: Script): Nervos.Cell.Builder
Lock script
.TW.Nervos.Proto.Script lock = 3;
Link copied to clipboard
open fun mergeOutPoint(value: OutPoint): Nervos.Cell.Builder
The unspent output
.TW.Nervos.Proto.OutPoint out_point = 1;
Link copied to clipboard
open fun mergeType(value: Script): Nervos.Cell.Builder
Type script
.TW.Nervos.Proto.Script type = 4;
Link copied to clipboard
open fun setBlockHash(value: ByteString): Nervos.Cell.Builder
Optional block hash
bytes block_hash = 7;
Link copied to clipboard
Optional block number
uint64 block_number = 6;
Link copied to clipboard
Amount of the cell
uint64 capacity = 2;
Link copied to clipboard
open fun setData(value: ByteString): Nervos.Cell.Builder
Data
bytes data = 5;
Link copied to clipboard
open fun setInputType(value: ByteString): Nervos.Cell.Builder
Optional input type data to be included in witness
bytes input_type = 9;
Link copied to clipboard
open fun setLock(builderForValue: Builder): Nervos.Cell.Builder
open fun setLock(value: Script): Nervos.Cell.Builder
Lock script
.TW.Nervos.Proto.Script lock = 3;
Link copied to clipboard
open fun setOutPoint(builderForValue: Builder): Nervos.Cell.Builder
open fun setOutPoint(value: OutPoint): Nervos.Cell.Builder
The unspent output
.TW.Nervos.Proto.OutPoint out_point = 1;
Link copied to clipboard
open fun setOutputType(value: ByteString): Nervos.Cell.Builder
Optional output type data to be included in witness
bytes output_type = 10;
Link copied to clipboard
Optional since the cell is available to spend
uint64 since = 8;
Link copied to clipboard
open fun setType(builderForValue: Builder): Nervos.Cell.Builder
open fun setType(value: Script): Nervos.Cell.Builder
Type script
.TW.Nervos.Proto.Script type = 4;