Builder

class Builder
Describes a preliminary transaction plan.
Protobuf type TW.Cardano.Proto.TransactionPlan

Functions

Link copied to clipboard
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
open fun addAllChangeTokens(values: Iterable<out TokenAmount>): Cardano.TransactionPlan.Builder
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
open fun addAllOutputTokens(values: Iterable<out TokenAmount>): Cardano.TransactionPlan.Builder
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
open fun addAllUtxos(values: Iterable<out TxInput>): Cardano.TransactionPlan.Builder
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;
Link copied to clipboard
open fun addAvailableTokens(builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addAvailableTokens(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addAvailableTokens(index: Int, value: TokenAmount): Cardano.TransactionPlan.Builder
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
open fun addChangeTokens(builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addChangeTokens(value: TokenAmount): Cardano.TransactionPlan.Builder
open fun addChangeTokens(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addChangeTokens(index: Int, value: TokenAmount): Cardano.TransactionPlan.Builder
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
open fun addOutputTokens(builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addOutputTokens(value: TokenAmount): Cardano.TransactionPlan.Builder
open fun addOutputTokens(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addOutputTokens(index: Int, value: TokenAmount): Cardano.TransactionPlan.Builder
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
open fun addUtxos(builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addUtxos(value: TxInput): Cardano.TransactionPlan.Builder
open fun addUtxos(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun addUtxos(index: Int, value: TxInput): Cardano.TransactionPlan.Builder
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;
Link copied to clipboard
coins in the output UTXO
uint64 amount = 2;
Link copied to clipboard
total coins in the utxos
uint64 available_amount = 1;
Link copied to clipboard
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
coins in the change UTXO
uint64 change = 4;
Link copied to clipboard
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
coins deposited (going to deposit) in this TX
uint64 deposit = 10;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 9;
Link copied to clipboard
coin amount deducted as fee
uint64 fee = 3;
Link copied to clipboard
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
coins undeposited (coming from deposit) in this TX
uint64 undeposit = 11;
Link copied to clipboard
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;
Link copied to clipboard
open fun getAmount(): Long
coins in the output UTXO
uint64 amount = 2;
Link copied to clipboard
total coins in the utxos
uint64 available_amount = 1;
Link copied to clipboard
open fun getAvailableTokens(index: Int): TokenAmount
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
open fun getAvailableTokensList(): List<TokenAmount>
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
open fun getChange(): Long
coins in the change UTXO
uint64 change = 4;
Link copied to clipboard
open fun getChangeTokens(index: Int): TokenAmount
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
open fun getChangeTokensList(): List<TokenAmount>
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
open fun getDeposit(): Long
coins deposited (going to deposit) in this TX
uint64 deposit = 10;
Link copied to clipboard
open fun getError(): SigningError
Optional error
.TW.Common.Proto.SigningError error = 9;
Link copied to clipboard
open fun getErrorValue(): Int
Optional error
.TW.Common.Proto.SigningError error = 9;
Link copied to clipboard
open fun getFee(): Long
coin amount deducted as fee
uint64 fee = 3;
Link copied to clipboard
open fun getOutputTokens(index: Int): TokenAmount
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
open fun getOutputTokensList(): List<TokenAmount>
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
open fun getUndeposit(): Long
coins undeposited (coming from deposit) in this TX
uint64 undeposit = 11;
Link copied to clipboard
open fun getUtxos(index: Int): TxInput
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;
Link copied to clipboard
open fun getUtxosCount(): Int
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;
Link copied to clipboard
open fun getUtxosList(): List<TxInput>
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;
Link copied to clipboard
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;
Link copied to clipboard
coins in the output UTXO
uint64 amount = 2;
Link copied to clipboard
total coins in the utxos
uint64 available_amount = 1;
Link copied to clipboard
open fun setAvailableTokens(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun setAvailableTokens(index: Int, value: TokenAmount): Cardano.TransactionPlan.Builder
total tokens in the utxos (optional)
repeated .TW.Cardano.Proto.TokenAmount available_tokens = 5;
Link copied to clipboard
coins in the change UTXO
uint64 change = 4;
Link copied to clipboard
open fun setChangeTokens(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun setChangeTokens(index: Int, value: TokenAmount): Cardano.TransactionPlan.Builder
tokens in the change (optional)
repeated .TW.Cardano.Proto.TokenAmount change_tokens = 7;
Link copied to clipboard
coins deposited (going to deposit) in this TX
uint64 deposit = 10;
Link copied to clipboard
open fun setError(value: SigningError): Cardano.TransactionPlan.Builder
Optional error
.TW.Common.Proto.SigningError error = 9;
Link copied to clipboard
Optional error
.TW.Common.Proto.SigningError error = 9;
Link copied to clipboard
coin amount deducted as fee
uint64 fee = 3;
Link copied to clipboard
open fun setOutputTokens(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun setOutputTokens(index: Int, value: TokenAmount): Cardano.TransactionPlan.Builder
tokens in the output (optional)
repeated .TW.Cardano.Proto.TokenAmount output_tokens = 6;
Link copied to clipboard
coins undeposited (coming from deposit) in this TX
uint64 undeposit = 11;
Link copied to clipboard
open fun setUtxos(index: Int, builderForValue: Builder): Cardano.TransactionPlan.Builder
open fun setUtxos(index: Int, value: TxInput): Cardano.TransactionPlan.Builder
The selected UTXOs, subset ot the input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 8;