Builder

class Builder
Input data necessary to create a signed transaction.
Protobuf type TW.Cardano.Proto.SigningInput

Functions

Link copied to clipboard
open fun addAllPrivateKey(values: Iterable<out ByteString>): Cardano.SigningInput.Builder
Available private keys (double extended keys); every input UTXO address should be covered
In case of Plan only, keys should be present, in correct number
repeated bytes private_key = 2;
Link copied to clipboard
open fun addAllUtxos(values: Iterable<out TxInput>): Cardano.SigningInput.Builder
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
open fun addPrivateKey(value: ByteString): Cardano.SigningInput.Builder
Available private keys (double extended keys); every input UTXO address should be covered
In case of Plan only, keys should be present, in correct number
repeated bytes private_key = 2;
Link copied to clipboard
open fun addUtxos(builderForValue: Builder): Cardano.SigningInput.Builder
open fun addUtxos(value: TxInput): Cardano.SigningInput.Builder
open fun addUtxos(index: Int, builderForValue: Builder): Cardano.SigningInput.Builder
open fun addUtxos(index: Int, value: TxInput): Cardano.SigningInput.Builder
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
Optional, used in case of (re)delegation
.TW.Cardano.Proto.Delegate delegate = 7;
Link copied to clipboard
Optional
.TW.Cardano.Proto.DeregisterStakingKey deregister_staking_key = 9;
Link copied to clipboard
Optional plan, if missing it will be computed
.TW.Cardano.Proto.TransactionPlan plan = 5;
Link copied to clipboard
Available private keys (double extended keys); every input UTXO address should be covered
In case of Plan only, keys should be present, in correct number
repeated bytes private_key = 2;
Link copied to clipboard
Optional, used in case of Staking Key registration (prerequisite for Staking)
.TW.Cardano.Proto.RegisterStakingKey register_staking_key = 6;
Link copied to clipboard
Later this can be made oneof if more message types are supported
.TW.Cardano.Proto.Transfer transfer_message = 3;
Link copied to clipboard
Time-to-live time of the TX
uint64 ttl = 4;
Link copied to clipboard
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
Optional, used in case of withdraw
.TW.Cardano.Proto.Withdraw withdraw = 8;
Link copied to clipboard
open fun getDelegate(): Delegate
Optional, used in case of (re)delegation
.TW.Cardano.Proto.Delegate delegate = 7;
Link copied to clipboard
open fun getDeregisterStakingKey(): DeregisterStakingKey
Optional
.TW.Cardano.Proto.DeregisterStakingKey deregister_staking_key = 9;
Link copied to clipboard
open fun getPlan(): TransactionPlan
Optional plan, if missing it will be computed
.TW.Cardano.Proto.TransactionPlan plan = 5;
Link copied to clipboard
open fun getPrivateKey(index: Int): ByteString
Available private keys (double extended keys); every input UTXO address should be covered
In case of Plan only, keys should be present, in correct number
repeated bytes private_key = 2;
Link copied to clipboard
Available private keys (double extended keys); every input UTXO address should be covered
In case of Plan only, keys should be present, in correct number
repeated bytes private_key = 2;
Link copied to clipboard
open fun getPrivateKeyList(): List<ByteString>
Available private keys (double extended keys); every input UTXO address should be covered
In case of Plan only, keys should be present, in correct number
repeated bytes private_key = 2;
Link copied to clipboard
open fun getRegisterStakingKey(): RegisterStakingKey
Optional, used in case of Staking Key registration (prerequisite for Staking)
.TW.Cardano.Proto.RegisterStakingKey register_staking_key = 6;
Link copied to clipboard
open fun getTransferMessage(): Transfer
Later this can be made oneof if more message types are supported
.TW.Cardano.Proto.Transfer transfer_message = 3;
Link copied to clipboard
open fun getTtl(): Long
Time-to-live time of the TX
uint64 ttl = 4;
Link copied to clipboard
open fun getUtxos(index: Int): TxInput
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
open fun getUtxosCount(): Int
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
open fun getUtxosList(): List<TxInput>
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
open fun getWithdraw(): Withdraw
Optional, used in case of withdraw
.TW.Cardano.Proto.Withdraw withdraw = 8;
Link copied to clipboard
open fun hasDelegate(): Boolean
Optional, used in case of (re)delegation
.TW.Cardano.Proto.Delegate delegate = 7;
Link copied to clipboard
Optional
.TW.Cardano.Proto.DeregisterStakingKey deregister_staking_key = 9;
Link copied to clipboard
open fun hasPlan(): Boolean
Optional plan, if missing it will be computed
.TW.Cardano.Proto.TransactionPlan plan = 5;
Link copied to clipboard
Optional, used in case of Staking Key registration (prerequisite for Staking)
.TW.Cardano.Proto.RegisterStakingKey register_staking_key = 6;
Link copied to clipboard
Later this can be made oneof if more message types are supported
.TW.Cardano.Proto.Transfer transfer_message = 3;
Link copied to clipboard
open fun hasWithdraw(): Boolean
Optional, used in case of withdraw
.TW.Cardano.Proto.Withdraw withdraw = 8;
Link copied to clipboard
open fun mergeDelegate(value: Delegate): Cardano.SigningInput.Builder
Optional, used in case of (re)delegation
.TW.Cardano.Proto.Delegate delegate = 7;
Link copied to clipboard
open fun mergeDeregisterStakingKey(value: DeregisterStakingKey): Cardano.SigningInput.Builder
Optional
.TW.Cardano.Proto.DeregisterStakingKey deregister_staking_key = 9;
Link copied to clipboard
open fun mergePlan(value: TransactionPlan): Cardano.SigningInput.Builder
Optional plan, if missing it will be computed
.TW.Cardano.Proto.TransactionPlan plan = 5;
Link copied to clipboard
open fun mergeRegisterStakingKey(value: RegisterStakingKey): Cardano.SigningInput.Builder
Optional, used in case of Staking Key registration (prerequisite for Staking)
.TW.Cardano.Proto.RegisterStakingKey register_staking_key = 6;
Link copied to clipboard
Later this can be made oneof if more message types are supported
.TW.Cardano.Proto.Transfer transfer_message = 3;
Link copied to clipboard
open fun mergeWithdraw(value: Withdraw): Cardano.SigningInput.Builder
Optional, used in case of withdraw
.TW.Cardano.Proto.Withdraw withdraw = 8;
Link copied to clipboard
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
open fun setDelegate(builderForValue: Builder): Cardano.SigningInput.Builder
open fun setDelegate(value: Delegate): Cardano.SigningInput.Builder
Optional, used in case of (re)delegation
.TW.Cardano.Proto.Delegate delegate = 7;
Link copied to clipboard
open fun setDeregisterStakingKey(builderForValue: Builder): Cardano.SigningInput.Builder
open fun setDeregisterStakingKey(value: DeregisterStakingKey): Cardano.SigningInput.Builder
Optional
.TW.Cardano.Proto.DeregisterStakingKey deregister_staking_key = 9;
Link copied to clipboard
open fun setPlan(builderForValue: Builder): Cardano.SigningInput.Builder
open fun setPlan(value: TransactionPlan): Cardano.SigningInput.Builder
Optional plan, if missing it will be computed
.TW.Cardano.Proto.TransactionPlan plan = 5;
Link copied to clipboard
open fun setPrivateKey(index: Int, value: ByteString): Cardano.SigningInput.Builder
Available private keys (double extended keys); every input UTXO address should be covered
In case of Plan only, keys should be present, in correct number
repeated bytes private_key = 2;
Link copied to clipboard
open fun setRegisterStakingKey(builderForValue: Builder): Cardano.SigningInput.Builder
open fun setRegisterStakingKey(value: RegisterStakingKey): Cardano.SigningInput.Builder
Optional, used in case of Staking Key registration (prerequisite for Staking)
.TW.Cardano.Proto.RegisterStakingKey register_staking_key = 6;
Link copied to clipboard
open fun setTransferMessage(builderForValue: Builder): Cardano.SigningInput.Builder
Later this can be made oneof if more message types are supported
.TW.Cardano.Proto.Transfer transfer_message = 3;
Link copied to clipboard
Time-to-live time of the TX
uint64 ttl = 4;
Link copied to clipboard
open fun setUtxos(index: Int, builderForValue: Builder): Cardano.SigningInput.Builder
open fun setUtxos(index: Int, value: TxInput): Cardano.SigningInput.Builder
Available input UTXOs
repeated .TW.Cardano.Proto.TxInput utxos = 1;
Link copied to clipboard
open fun setWithdraw(builderForValue: Builder): Cardano.SigningInput.Builder
open fun setWithdraw(value: Withdraw): Cardano.SigningInput.Builder
Optional, used in case of withdraw
.TW.Cardano.Proto.Withdraw withdraw = 8;