You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[x] On macOS, `llvm` with the `wasm32-unknown-unknown` target (which is not included in the XCode installation by default) is required.
22
-
To install, run `brew install llvm`.
22
+
To install, run `brew install llvm`.
23
+
*[x] On macOS, ensure that Cargo is using the correct `clang` installed by Homebrew. By default, Cargo might use the system’s clang,
24
+
which doesn’t support WebAssembly targets. To make sure Cargo uses the correct one, run `export CC_wasm32_unknown_unknown=/opt/homebrew/opt/llvm/bin/clang`.
The `send_from_${type}` endpoint can send bitcoin by:
178
180
179
-
1. Getting the percentiles of the most recent fees on the Bitcoin network using the [bitcoin_get_current_fee_percentiles API](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-method-bitcoin_get_current_fee_percentiles).
180
-
2. Fetching your unspent transaction outputs (UTXOs), using the [bitcoin_get_utxos API](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-method-bitcoin_get_utxos).
181
+
1. Getting the percentiles of the most recent fees on the Bitcoin network using the [bitcoin_get_current_fee_percentiles API](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-bitcoin_get_current_fee_percentiles).
182
+
2. Fetching your unspent transaction outputs (UTXOs), using the [bitcoin_get_utxos API](https://internetcomputer.org/docs/current/references/ic-interface-spec/#ic-bitcoin_get_utxos).
181
183
3. Building a transaction, using some of the UTXOs from step 2 as input and the destination address and amount to send as output.
182
184
The fee percentiles obtained from step 1 is used to set an appropriate fee.
183
185
4. Signing the inputs of the transaction using the
@@ -222,10 +224,7 @@ In this tutorial, you were able to:
222
224
* Check the testnet BTC balance of the canister.
223
225
* Use the canister to send testnet BTC to another testnet BTC address.
224
226
225
-
This example is extensively documented in the following tutorials:
226
-
227
-
*[Deploying your first Bitcoin dapp](https://internetcomputer.org/docs/current/samples/deploying-your-first-bitcoin-dapp).
This example is extensively documented in the following tutorial: [Developing Bitcoin dapps locally](https://internetcomputer.org/docs/current/developer-docs/integrations/bitcoin/local-development).
229
228
230
229
Note that for *testing* on mainnet, the [chain-key testing
231
230
canister](https://github.com/dfinity/chainkey-testing-canister) can be used to
0 commit comments