Builder

class Builder
One input for a transaction
Protobuf type TW.Cardano.Proto.TxInput

Functions

Link copied to clipboard
open fun addAllTokenAmount(values: Iterable<out TokenAmount>): Cardano.TxInput.Builder
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;
Link copied to clipboard
open fun addTokenAmount(builderForValue: Builder): Cardano.TxInput.Builder
open fun addTokenAmount(value: TokenAmount): Cardano.TxInput.Builder
open fun addTokenAmount(index: Int, builderForValue: Builder): Cardano.TxInput.Builder
open fun addTokenAmount(index: Int, value: TokenAmount): Cardano.TxInput.Builder
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;
Link copied to clipboard
The owner address (string)
string address = 2;
Link copied to clipboard
ADA amount in the UTXO
uint64 amount = 3;
Link copied to clipboard
The UTXO
.TW.Cardano.Proto.OutPoint out_point = 1;
Link copied to clipboard
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;
Link copied to clipboard
open fun getAddress(): String
The owner address (string)
string address = 2;
Link copied to clipboard
open fun getAddressBytes(): ByteString
The owner address (string)
string address = 2;
Link copied to clipboard
open fun getAmount(): Long
ADA amount in the UTXO
uint64 amount = 3;
Link copied to clipboard
open fun getOutPoint(): OutPoint
The UTXO
.TW.Cardano.Proto.OutPoint out_point = 1;
Link copied to clipboard
open fun getTokenAmount(index: Int): TokenAmount
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;
Link copied to clipboard
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;
Link copied to clipboard
open fun getTokenAmountList(): List<TokenAmount>
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;
Link copied to clipboard
open fun hasOutPoint(): Boolean
The UTXO
.TW.Cardano.Proto.OutPoint out_point = 1;
Link copied to clipboard
open fun mergeOutPoint(value: OutPoint): Cardano.TxInput.Builder
The UTXO
.TW.Cardano.Proto.OutPoint out_point = 1;
Link copied to clipboard
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;
Link copied to clipboard
The owner address (string)
string address = 2;
Link copied to clipboard
open fun setAddressBytes(value: ByteString): Cardano.TxInput.Builder
The owner address (string)
string address = 2;
Link copied to clipboard
ADA amount in the UTXO
uint64 amount = 3;
Link copied to clipboard
open fun setOutPoint(builderForValue: Builder): Cardano.TxInput.Builder
open fun setOutPoint(value: OutPoint): Cardano.TxInput.Builder
The UTXO
.TW.Cardano.Proto.OutPoint out_point = 1;
Link copied to clipboard
open fun setTokenAmount(index: Int, builderForValue: Builder): Cardano.TxInput.Builder
open fun setTokenAmount(index: Int, value: TokenAmount): Cardano.TxInput.Builder
optional token amounts in the UTXO
repeated .TW.Cardano.Proto.TokenAmount token_amount = 4;