Builder

class Builder
One output for a transaction
Protobuf type TW.Cardano.Proto.TxOutput

Functions

Link copied to clipboard
open fun addAllTokenAmount(values: Iterable<out TokenAmount>): Cardano.TxOutput.Builder
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;
Link copied to clipboard
open fun addTokenAmount(builderForValue: Builder): Cardano.TxOutput.Builder
open fun addTokenAmount(value: TokenAmount): Cardano.TxOutput.Builder
open fun addTokenAmount(index: Int, builderForValue: Builder): Cardano.TxOutput.Builder
open fun addTokenAmount(index: Int, value: TokenAmount): Cardano.TxOutput.Builder
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;
Link copied to clipboard
Destination address (string)
string address = 1;
Link copied to clipboard
ADA amount
uint64 amount = 2;
Link copied to clipboard
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;
Link copied to clipboard
open fun getAddress(): String
Destination address (string)
string address = 1;
Link copied to clipboard
open fun getAddressBytes(): ByteString
Destination address (string)
string address = 1;
Link copied to clipboard
open fun getAmount(): Long
ADA amount
uint64 amount = 2;
Link copied to clipboard
open fun getTokenAmount(index: Int): TokenAmount
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;
Link copied to clipboard
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;
Link copied to clipboard
open fun getTokenAmountList(): List<TokenAmount>
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;
Link copied to clipboard
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;
Link copied to clipboard
Destination address (string)
string address = 1;
Link copied to clipboard
open fun setAddressBytes(value: ByteString): Cardano.TxOutput.Builder
Destination address (string)
string address = 1;
Link copied to clipboard
ADA amount
uint64 amount = 2;
Link copied to clipboard
open fun setTokenAmount(index: Int, builderForValue: Builder): Cardano.TxOutput.Builder
open fun setTokenAmount(index: Int, value: TokenAmount): Cardano.TxOutput.Builder
optional token amounts
repeated .TW.Cardano.Proto.TokenAmount token_amount = 3;