SigningInputOrBuilder

Functions

Link copied to clipboard
abstract fun containsScripts(key: String): Boolean
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
abstract fun getAmount(): Long
Amount to send.  Transaction created will have this amount in its output, 
except when use_max_amount is set, in that case this amount is not relevant, maximum possible amount will be used (max avail less fee).
If amount is equal or more than the available amount, also max amount will be used.
int64 amount = 2;
Link copied to clipboard
abstract fun getByteFee(): Long
Transaction fee rate, satoshis per byte, used to compute required fee (when planning)
int64 byte_fee = 3;
Link copied to clipboard
abstract fun getChangeAddress(): String
Change address, as string.
string change_address = 5;
Link copied to clipboard
abstract fun getChangeAddressBytes(): ByteString
Change address, as string.
string change_address = 5;
Link copied to clipboard
abstract fun getCoinType(): Int
Coin type (used by forks).
uint32 coin_type = 10;
Link copied to clipboard
abstract fun getHashType(): Int
Hash type to use when signing.
uint32 hash_type = 1;
Link copied to clipboard
abstract fun getLockTime(): Int
Optional lockTime, default value 0 means no time locking.
If all inputs have final (`0xffffffff`) sequence numbers then `lockTime` is irrelevant.
Otherwise, the transaction may not be added to a block until after `lockTime`.
 value  < 500000000 : Block number at which this transaction is unlocked
 value >= 500000000 : UNIX timestamp at which this transaction is unlocked
uint32 lock_time = 12;
Link copied to clipboard
abstract fun getOutputOpReturn(): ByteString
Optional zero-amount, OP_RETURN output
bytes output_op_return = 13;
Link copied to clipboard
abstract fun getPlan(): TransactionPlan
Optional transaction plan. If missing, plan will be computed.
.TW.Bitcoin.Proto.TransactionPlan plan = 11;
Link copied to clipboard
abstract fun getPrivateKey(index: Int): ByteString
The available secret private key or keys required for signing (32 bytes each).
repeated bytes private_key = 6;
Link copied to clipboard
abstract fun getPrivateKeyCount(): Int
The available secret private key or keys required for signing (32 bytes each).
repeated bytes private_key = 6;
Link copied to clipboard
abstract fun getPrivateKeyList(): List<ByteString>
The available secret private key or keys required for signing (32 bytes each).
repeated bytes private_key = 6;
Link copied to clipboard
abstract fun getScripts(): Map<String, ByteString>
Use getScriptsMap instead.
Link copied to clipboard
abstract fun getScriptsCount(): Int
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
abstract fun getScriptsMap(): Map<String, ByteString>
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
abstract fun getScriptsOrDefault(key: String, defaultValue: ByteString): ByteString
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
abstract fun getScriptsOrThrow(key: String): ByteString
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
abstract fun getToAddress(): String
Recipient's address, as string.
string to_address = 4;
Link copied to clipboard
abstract fun getToAddressBytes(): ByteString
Recipient's address, as string.
string to_address = 4;
Link copied to clipboard
abstract fun getUseMaxAmount(): Boolean
Set if sending max amount is requested.
bool use_max_amount = 9;
Link copied to clipboard
abstract fun getUtxo(index: Int): UnspentTransaction
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
abstract fun getUtxoCount(): Int
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
abstract fun getUtxoList(): List<UnspentTransaction>
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
abstract fun hasPlan(): Boolean
Optional transaction plan. If missing, plan will be computed.
.TW.Bitcoin.Proto.TransactionPlan plan = 11;

Inheritors

Link copied to clipboard