File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,9 @@ reflected in your current balance.
219219You can also get a range of Bitcoin block headers by using the ` get_block_headers `
220220endpoint on your canister.
221221
222- Make the call using the command line. Be sure to replace ` 10 ` with your desired start height:
222+ In the Candid UI, write the desired start height and optionally end height, and click on "Call":
223+
224+ Alternatively, make the call using the command line. Be sure to replace ` 10 ` with your desired start height:
223225
224226``` bash
225227dfx canister --network=ic call basic_bitcoin get_block_headers " (10: nat32)"
Original file line number Diff line number Diff line change 1111 {
1212 "name" : " candid:service"
1313 }
14- ],
15- "specified_id" : " om77v-qqaaa-aaaap-ahmrq-cai" ,
16- "remote" : {
17- "id" : {
18- "ic" : " om77v-qqaaa-aaaap-ahmrq-cai" ,
19- "playground" : " om77v-qqaaa-aaaap-ahmrq-cai"
20- }
21- }
14+ ]
2215 }
2316 },
2417 "defaults" : {
3427 "args" : " "
3528 }
3629 }
37- }
30+ }
Original file line number Diff line number Diff line change 22set -euo pipefail
33
44TARGET=" wasm32-unknown-unknown"
5+ CANISTER=" basic_bitcoin"
56SCRIPT_DIR=" $( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
67
78pushd $SCRIPT_DIR
1617 cargo build --target $TARGET --release
1718fi
1819
20+ cargo install ic-wasm --version 0.2.0 --root ./
21+
22+ ./bin/ic-wasm \
23+ " $SCRIPT_DIR /../../target/$TARGET /release/$CANISTER .wasm" \
24+ -o " $SCRIPT_DIR /../../target/$TARGET /release/$CANISTER .wasm" \
25+ metadata candid:service -f " $SCRIPT_DIR /basic_bitcoin.did" -v public
26+
1927popd
2028
You can’t perform that action at this time.
0 commit comments