Submitting transactions
Bitcoin
To submit transactions to the Bitcoin network, the Bitcoin API exposes the bitcoin_send_transaction
method.
The following snippet shows how to send a signed transaction to the Bitcoin network:
- Motoko
- Rust
motoko/basic_bitcoin/src/basic_bitcoin/src/BitcoinApi.mo
loading...
rust/basic_bitcoin/src/service/send_from_p2pkh_address.rs
loading...