I am following the basic bitcoin canister example here. And i wanted to run testnet network , on my local machine because i didn’t want to run the bitcoin regtest software . But now i am getting this error.
Request ID: 38d7259cee2e9c9f6aad81f264a881d06e284993ed8a0a7e3e027a3e186fda5b
Reject code: 5
Reject text: Canister bkyz2-fmaaa-aaaaa-qaaaq-cai trapped explicitly: Panicked at 'called `Result::unwrap()` on an `Err` value: (DestinationInvalid, "Canister g4xu7-jiaaa-aaaan-aaaaq-cai not found")', src/bridge_bitcoin/bitcoin_api.rs:32:17``
You also get (DestinationInvalid, "Canister g4xu7-jiaaa-aaaan-aaaaq-cai not found")? How are you starting your replica? It doesn’t install the BTC canister by default
I was working with the Rust basic_bitcoin, and when I did dfx start --clean --background it wasn’t creating and installing the bitcoin integration canister.
But the motoko one did the process well like this:
It’s because of dfx nonsense. If you don’t specify the local network in dfx.json then the configuration in defaults will not apply. If you copy this section over to your Rust project dfx.json then it should work: