Skip to content

Commit

Permalink
Update 4.3-ckbtc-and-bitcoin.mdx
Browse files Browse the repository at this point in the history
The rust/basic_bitcoin example in dfinity/examples now uses send_from_p2pkh
  • Loading branch information
mraszyk committed Sep 13, 2024
1 parent 5928dad commit f0a90a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ You should receive output and `dfx` log entries similar to the ones you got for
Now you can send BTC using the canister's `send` endpoint. In this example, you'll send 1 BTC to the address `n2dcQfuwFw7M2UYzLfM6P7DwewsQaygb8S`. You can replace this address with any test address you would like.
```bash
dfx canister call basic_bitcoin send '(record { destination_address = "n2dcQfuwFw7M2UYzLfM6P7DwewsQaygb8S"; amount_in_satoshi = 100000000; })'
dfx canister call basic_bitcoin send_from_p2pkh '(record { destination_address = "n2dcQfuwFw7M2UYzLfM6P7DwewsQaygb8S"; amount_in_satoshi = 100000000; })'
```
:::info
Expand Down

0 comments on commit f0a90a6

Please sign in to comment.