SigningInput

Input data necessary to create a signed transaction.
Protobuf type TW.Bitcoin.Proto.SigningInput

Types

Link copied to clipboard
class Builder
Input data necessary to create a signed transaction.
Protobuf type TW.Bitcoin.Proto.SigningInput

Functions

Link copied to clipboard
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
open 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
open fun getByteFee(): Long
Transaction fee rate, satoshis per byte, used to compute required fee (when planning)
int64 byte_fee = 3;
Link copied to clipboard
Change address, as string.
string change_address = 5;
Link copied to clipboard
open fun getChangeAddressBytes(): ByteString
Change address, as string.
string change_address = 5;
Link copied to clipboard
open fun getCoinType(): Int
Coin type (used by forks).
uint32 coin_type = 10;
Link copied to clipboard
open fun getDefaultInstance(): SigningInput
Link copied to clipboard
open fun getHashType(): Int
Hash type to use when signing.
uint32 hash_type = 1;
Link copied to clipboard
open 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
open fun getOutputOpReturn(): ByteString
Optional zero-amount, OP_RETURN output
bytes output_op_return = 13;
Link copied to clipboard
open fun getPlan(): TransactionPlan
Optional transaction plan. If missing, plan will be computed.
.TW.Bitcoin.Proto.TransactionPlan plan = 11;
Link copied to clipboard
open 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
The available secret private key or keys required for signing (32 bytes each).
repeated bytes private_key = 6;
Link copied to clipboard
open 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
open fun getScripts(): Map<String, ByteString>
Use getScriptsMap instead.
Link copied to clipboard
open fun getScriptsCount(): Int
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
open fun getScriptsMap(): Map<String, ByteString>
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
open fun getScriptsOrDefault(key: String, defaultValue: ByteString): ByteString
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
open fun getScriptsOrThrow(key: String): ByteString
Available redeem scripts indexed by script hash.
map<string, bytes> scripts = 7;
Link copied to clipboard
open fun getToAddress(): String
Recipient's address, as string.
string to_address = 4;
Link copied to clipboard
open fun getToAddressBytes(): ByteString
Recipient's address, as string.
string to_address = 4;
Link copied to clipboard
Set if sending max amount is requested.
bool use_max_amount = 9;
Link copied to clipboard
open fun getUtxo(index: Int): UnspentTransaction
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
open fun getUtxoCount(): Int
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
open fun getUtxoList(): List<UnspentTransaction>
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
open fun getUtxoOrBuilder(index: Int): UnspentTransactionOrBuilder
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
open fun getUtxoOrBuilderList(): List<out UnspentTransactionOrBuilder>
Available input unspent transaction outputs.
repeated .TW.Bitcoin.Proto.UnspentTransaction utxo = 8;
Link copied to clipboard
open fun hasPlan(): Boolean
Optional transaction plan. If missing, plan will be computed.
.TW.Bitcoin.Proto.TransactionPlan plan = 11;
Link copied to clipboard
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream): SigningInput
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): SigningInput
Link copied to clipboard
open fun parseFrom(data: Array<Byte>): SigningInput
open fun parseFrom(data: ByteString): SigningInput
open fun parseFrom(input: CodedInputStream): SigningInput
open fun parseFrom(input: InputStream): SigningInput
open fun parseFrom(data: ByteBuffer): SigningInput
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): SigningInput
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): SigningInput
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): SigningInput
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): SigningInput
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): SigningInput
Link copied to clipboard
open fun parser(): Parser<SigningInput>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard