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
* The Bitcoin address you see will be different from the one above because the
138
-
ECDSA public key your canister retrieves is unique.
139
-
140
120
* We are generating a Bitcoin testnet address, which can only be
141
121
used for sending/receiving Bitcoin on the Bitcoin testnet.
142
122
143
-
144
123
## Step 3: Receiving bitcoin
145
124
146
125
Now that the canister is deployed and you have a Bitcoin address, it's time to receive
@@ -150,7 +129,6 @@ to receive some bitcoin.
150
129
Enter your address and click on "Send testnet bitcoins". In the example below we will use Bitcoin address `n31eU1K11m1r58aJMgTyxGonu7wSMoUYe7`, but you will use your address. The Bitcoin address you see will be different from the one above
151
130
because the ECDSA/Schnorr public key your canister retrieves is unique.
152
131
153
-
154
132
Once the transaction has at least one confirmation, which can take a few minutes,
155
133
you'll be able to see it in your canister's balance.
156
134
@@ -171,15 +149,16 @@ Checking the balance of a Bitcoin address relies on the [bitcoin_get_balance](ht
171
149
## Step 5: Sending bitcoin
172
150
173
151
You can send bitcoin using the `send_from_${type}` endpoint on your canister, where
174
-
`${type}` is on of `[p2pkh, p2tr_raw_key_spend, p2tr_script_spend]`.
0 commit comments