TransactionBuilder.attach - multiple declarations
Function TransactionBuilder.attach
Attaches all or one output(s) of a transaction to this builder
ref TransactionBuilder attach
(
const(Transaction) tx
) nothrow return @safe;
ref TransactionBuilder attach
(
const(Transaction) tx,
uint index
) nothrow return @safe;
Parameters
Name | Description |
---|---|
tx | The transaction to consume |
index | If present, the index of the Output to use.
Otherwise all outputs from tx will be used. |
Returns
A reference to this
to allow for chaining
Function TransactionBuilder.attach
Attaches to an Output
according to a hash
ref TransactionBuilder attach
(
in ref const(Output) utxo,
in ref const(geod24 .bitblob .BitBlob!(64L)) hash,
Amount freeze_fee = coins(10000LU)
) pure nothrow return @safe;
Parameters
Name | Description |
---|---|
utxo | The Output to attach to |
hash | The hash that correspond to UTXO (hashMulti(txhash, index) ) |
Returns
A reference to this
to allow for chaining
Function TransactionBuilder.attach
Attaches to a range of tuples.
ref typeof(this) attach(RNG)
(
scope RNG rng
) pure nothrow @safe;
The tuple should have an Output
and a Hash
as its first and
second element, respectively.
Parameters
Name | Description |
---|---|
rng | the range of tuple |
Returns
A reference to this
to allow for chaining