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

Function build_transaction

rust/basic_bitcoin/src/p2pkh.rs:19–67  ·  view source on GitHub ↗

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

(
    ctx: &BitcoinContext,
    own_public_key: &PublicKey,
    own_address: &Address,
    own_utxos: &[Utxo],
    primary_output: &PrimaryOutput,
    fee_per_vbyte: MillisatoshiPerByte,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

trapFunction · 0.85
select_utxos_greedyFunction · 0.85
sign_transactionFunction · 0.70

Tested by

no test coverage detected