Builder

class Builder
Message for simple Transfer tx
Protobuf type TW.Cardano.Proto.Transfer

Functions

Link copied to clipboard
Requested ADA amount to be transferred. Output can be different only in use_max_amount case.
Note that Cardano has a minimum amount per UTXO, see TWCardanoMinAdaAmount.
uint64 amount = 3;
Link copied to clipboard
Change address
string change_address = 2;
Link copied to clipboard
Optional fee overriding. If left to 0, optimal fee will be calculated. If set, exactly this value will be used as fee.
Use it with care, it may result in underfunded or wasteful fee.
uint64 force_fee = 6;
Link copied to clipboard
Destination address as string
string to_address = 1;
Link copied to clipboard
Optional token(s) to be transferred
Currently only one token type to be transferred per transaction is supported
.TW.Cardano.Proto.TokenBundle token_amount = 4;
Link copied to clipboard
Request max amount option. If set, tx will send all possible amounts from all inputs, including all tokens; there will be no change; requested amount and token_amount is disregarded in this case.
bool use_max_amount = 5;
Link copied to clipboard
open fun getAmount(): Long
Requested ADA amount to be transferred. Output can be different only in use_max_amount case.
Note that Cardano has a minimum amount per UTXO, see TWCardanoMinAdaAmount.
uint64 amount = 3;
Link copied to clipboard
Change address
string change_address = 2;
Link copied to clipboard
open fun getChangeAddressBytes(): ByteString
Change address
string change_address = 2;
Link copied to clipboard
open fun getForceFee(): Long
Optional fee overriding. If left to 0, optimal fee will be calculated. If set, exactly this value will be used as fee.
Use it with care, it may result in underfunded or wasteful fee.
uint64 force_fee = 6;
Link copied to clipboard
open fun getToAddress(): String
Destination address as string
string to_address = 1;
Link copied to clipboard
open fun getToAddressBytes(): ByteString
Destination address as string
string to_address = 1;
Link copied to clipboard
open fun getTokenAmount(): TokenBundle
Optional token(s) to be transferred
Currently only one token type to be transferred per transaction is supported
.TW.Cardano.Proto.TokenBundle token_amount = 4;
Link copied to clipboard
Request max amount option. If set, tx will send all possible amounts from all inputs, including all tokens; there will be no change; requested amount and token_amount is disregarded in this case.
bool use_max_amount = 5;
Link copied to clipboard
Optional token(s) to be transferred
Currently only one token type to be transferred per transaction is supported
.TW.Cardano.Proto.TokenBundle token_amount = 4;
Link copied to clipboard
open fun mergeTokenAmount(value: TokenBundle): Cardano.Transfer.Builder
Optional token(s) to be transferred
Currently only one token type to be transferred per transaction is supported
.TW.Cardano.Proto.TokenBundle token_amount = 4;
Link copied to clipboard
Requested ADA amount to be transferred. Output can be different only in use_max_amount case.
Note that Cardano has a minimum amount per UTXO, see TWCardanoMinAdaAmount.
uint64 amount = 3;
Link copied to clipboard
Change address
string change_address = 2;
Link copied to clipboard
open fun setChangeAddressBytes(value: ByteString): Cardano.Transfer.Builder
Change address
string change_address = 2;
Link copied to clipboard
Optional fee overriding. If left to 0, optimal fee will be calculated. If set, exactly this value will be used as fee.
Use it with care, it may result in underfunded or wasteful fee.
uint64 force_fee = 6;
Link copied to clipboard
Destination address as string
string to_address = 1;
Link copied to clipboard
open fun setToAddressBytes(value: ByteString): Cardano.Transfer.Builder
Destination address as string
string to_address = 1;
Link copied to clipboard
open fun setTokenAmount(builderForValue: Builder): Cardano.Transfer.Builder
open fun setTokenAmount(value: TokenBundle): Cardano.Transfer.Builder
Optional token(s) to be transferred
Currently only one token type to be transferred per transaction is supported
.TW.Cardano.Proto.TokenBundle token_amount = 4;
Link copied to clipboard
Request max amount option. If set, tx will send all possible amounts from all inputs, including all tokens; there will be no change; requested amount and token_amount is disregarded in this case.
bool use_max_amount = 5;