Builder

class Builder
Nervos transaction plan
Protobuf type TW.Nervos.Proto.TransactionPlan

Functions

Link copied to clipboard
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
open fun addAllHeaderDeps(values: Iterable<out ByteString>): Nervos.TransactionPlan.Builder
A list of header deps.
repeated bytes header_deps = 2;
Link copied to clipboard
open fun addAllOutputs(values: Iterable<out CellOutput>): Nervos.TransactionPlan.Builder
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
open fun addAllOutputsData(values: Iterable<out ByteString>): Nervos.TransactionPlan.Builder
A list of outputs data.
repeated bytes outputs_data = 5;
Link copied to clipboard
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;
Link copied to clipboard
open fun addCellDeps(builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun addCellDeps(index: Int, builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun addCellDeps(index: Int, value: CellDep): Nervos.TransactionPlan.Builder
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
open fun addHeaderDeps(value: ByteString): Nervos.TransactionPlan.Builder
A list of header deps.
repeated bytes header_deps = 2;
Link copied to clipboard
open fun addOutputs(builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun addOutputs(value: CellOutput): Nervos.TransactionPlan.Builder
open fun addOutputs(index: Int, builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun addOutputs(index: Int, value: CellOutput): Nervos.TransactionPlan.Builder
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
open fun addOutputsData(value: ByteString): Nervos.TransactionPlan.Builder
A list of outputs data.
repeated bytes outputs_data = 5;
Link copied to clipboard
open fun addSelectedCells(builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun addSelectedCells(index: Int, builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun addSelectedCells(index: Int, value: Cell): Nervos.TransactionPlan.Builder
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;
Link copied to clipboard
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 6;
Link copied to clipboard
A list of header deps.
repeated bytes header_deps = 2;
Link copied to clipboard
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
A list of outputs data.
repeated bytes outputs_data = 5;
Link copied to clipboard
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;
Link copied to clipboard
open fun getCellDeps(index: Int): CellDep
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
open fun getCellDepsCount(): Int
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
open fun getCellDepsList(): List<CellDep>
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
open fun getError(): SigningError
Optional error
.TW.Common.Proto.SigningError error = 6;
Link copied to clipboard
open fun getErrorValue(): Int
Optional error
.TW.Common.Proto.SigningError error = 6;
Link copied to clipboard
open fun getHeaderDeps(index: Int): ByteString
A list of header deps.
repeated bytes header_deps = 2;
Link copied to clipboard
A list of header deps.
repeated bytes header_deps = 2;
Link copied to clipboard
open fun getHeaderDepsList(): List<ByteString>
A list of header deps.
repeated bytes header_deps = 2;
Link copied to clipboard
open fun getOutputs(index: Int): CellOutput
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
open fun getOutputsCount(): Int
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
open fun getOutputsData(index: Int): ByteString
A list of outputs data.
repeated bytes outputs_data = 5;
Link copied to clipboard
A list of outputs data.
repeated bytes outputs_data = 5;
Link copied to clipboard
open fun getOutputsDataList(): List<ByteString>
A list of outputs data.
repeated bytes outputs_data = 5;
Link copied to clipboard
open fun getOutputsList(): List<CellOutput>
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
open fun getSelectedCells(index: Int): Cell
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;
Link copied to clipboard
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;
Link copied to clipboard
open fun getSelectedCellsList(): List<Cell>
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;
Link copied to clipboard
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;
Link copied to clipboard
open fun setCellDeps(index: Int, builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun setCellDeps(index: Int, value: CellDep): Nervos.TransactionPlan.Builder
A list of cell deps.
repeated .TW.Nervos.Proto.CellDep cell_deps = 1;
Link copied to clipboard
open fun setError(value: SigningError): Nervos.TransactionPlan.Builder
Optional error
.TW.Common.Proto.SigningError error = 6;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 6;
Link copied to clipboard
open fun setHeaderDeps(index: Int, value: ByteString): Nervos.TransactionPlan.Builder
A list of header deps.
repeated bytes header_deps = 2;
Link copied to clipboard
open fun setOutputs(index: Int, builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun setOutputs(index: Int, value: CellOutput): Nervos.TransactionPlan.Builder
A list of 1 or more outputs by this transaction
repeated .TW.Nervos.Proto.CellOutput outputs = 4;
Link copied to clipboard
open fun setOutputsData(index: Int, value: ByteString): Nervos.TransactionPlan.Builder
A list of outputs data.
repeated bytes outputs_data = 5;
Link copied to clipboard
open fun setSelectedCells(index: Int, builderForValue: Builder): Nervos.TransactionPlan.Builder
open fun setSelectedCells(index: Int, value: Cell): Nervos.TransactionPlan.Builder
A list of 1 or more selected cells for this transaction
repeated .TW.Nervos.Proto.Cell selected_cells = 3;