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

Function build_transaction

rust/basic_bitcoin/src/p2wpkh.rs:16–65  ·  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],
    dst_address: &Address,
    amount: Satoshi,
    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 3

select_utxos_greedyFunction · 0.85
sign_transactionFunction · 0.70

Tested by

no test coverage detected