MCPcopy Create free account
hub / github.com/dfinity/examples / build_transaction

Function build_transaction

rust/basic_bitcoin/src/p2tr.rs:71–128  ·  view source on GitHub ↗

Builds a P2TR transaction to send the given `amount` of satoshis to the destination address.

(
    ctx: &BitcoinContext,
    own_address: &Address,
    own_utxos: &[Utxo],
    utxos_mode: SelectUtxosMode,
    primary_output: &PrimaryOutput,
    fee_per_byte: MillisatoshiPerByte,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 4

select_utxos_greedyFunction · 0.85
select_one_utxoFunction · 0.85

Tested by

no test coverage detected