From f7b89f915bb0cd13eace56d5c4bf890a3b7c4d92 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 3 Oct 2022 12:29:31 -0700 Subject: [PATCH 1/6] Turn on syntax highlighting with light theme --- docs/config.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/config.toml b/docs/config.toml index b377572efc..8568ca47f4 100644 --- a/docs/config.toml +++ b/docs/config.toml @@ -3,6 +3,7 @@ compile_sass = false build_search_index = false [markdown] -highlight_code = false +highlight_code = true +highlight_theme = "base16-atelierdune-light" [extra] From e3589fc668b038cd42b18070ffed0638bd7d0e90 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 3 Oct 2022 12:29:59 -0700 Subject: [PATCH 2/6] Remove trailing whitespace --- docs/content/hunting.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/content/hunting.md b/docs/content/hunting.md index d1cc333a5d..35dbd6e1e7 100644 --- a/docs/content/hunting.md +++ b/docs/content/hunting.md @@ -6,7 +6,7 @@ Tools for the hunt ------------------- - `bitcoind -txindex=1` fully synced to mainnet -- `bitcoin-cli` +- `bitcoin-cli` - `ord` compiled and indexed - A wallet containing your UTXOs that supports exporting [descriptors](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md) @@ -21,7 +21,7 @@ $ bitcoin-cli createwallet ord-watch-only true true 2. Load the newly created wallet. ``` -$ bitcoin-cli loadwallet ord-watch-only +$ bitcoin-cli loadwallet ord-watch-only ``` 3. Get the descriptor from the wallet you want to search. In Sparrow wallet navigate @@ -31,8 +31,8 @@ The descriptor should look something like this: wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/<0;1>/*)#fw76ulgt ``` -4. Some wallets use a descriptor type that hasn't been -[merged](https://github.com/bitcoin/bitcoin/pull/22838) into Bitcoin Core yet, +4. Some wallets use a descriptor type that hasn't been +[merged](https://github.com/bitcoin/bitcoin/pull/22838) into Bitcoin Core yet, so some extra steps are necessary. First we need the descriptor checksum for the receive addresses (`/0/*`): ```bash @@ -47,8 +47,8 @@ $ bitcoin-cli getdescriptorinfo \ } ``` And then for the change addresses (`/1/*`): -```bash -$ bitcoin-cli getdescriptorinfo \ +```bash +$ bitcoin-cli getdescriptorinfo \ 'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)' { "descriptor": "wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#fyfc5f6a", @@ -61,7 +61,7 @@ $ bitcoin-cli getdescriptorinfo \ 4. With these checksums we can then import the descriptors (append #checksum to the end) Bitcoind needs to know how far back to look for transactions so find out when the first transaction took place and convert that to unix time and put it in the timestamp field. This command can take quite a while to complete. ```bash -$ bitcoin-cli importdescriptors \ +$ bitcoin-cli importdescriptors \ '[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#tpnxnxax", "timestamp":1455191478 } {"desc":"wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#64k8wnd7" , "timestamp":1455191478 }]' ``` @@ -72,5 +72,5 @@ $ bitcoin-cli getwalletinfo 6. Now that we have a wallet loaded we can use the `identify` command, which will list and rare ordinals contained in your UTXOs. ```bash -$ ord wallet identify +$ ord wallet identify ``` From 8b9f1ae18039b467234de859dae5d0e60c0112ea Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 3 Oct 2022 14:06:06 -0700 Subject: [PATCH 3/6] Expand rare ordinal hunting guide --- docs/content/hunting.md | 309 ++++++++++++++++++++++++++++++---------- static/index.css | 6 + 2 files changed, 242 insertions(+), 73 deletions(-) diff --git a/docs/content/hunting.md b/docs/content/hunting.md index 35dbd6e1e7..7ca2facc01 100644 --- a/docs/content/hunting.md +++ b/docs/content/hunting.md @@ -1,76 +1,239 @@ +++ -title = "Ordinal Hunting 101" +title = "Ordinal Hunting" +++ -Tools for the hunt -------------------- - -- `bitcoind -txindex=1` fully synced to mainnet -- `bitcoin-cli` -- `ord` compiled and indexed -- A wallet containing your UTXOs that supports exporting [descriptors](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md) - - -Steps ------ - -1. Create a blank wallet named `ord-watch-only` without private keys. -```bash -$ bitcoin-cli createwallet ord-watch-only true true -``` - -2. Load the newly created wallet. -``` -$ bitcoin-cli loadwallet ord-watch-only -``` - -3. Get the descriptor from the wallet you want to search. In Sparrow wallet navigate -to the `Settings` tab, then to `Script Policy` and press the edit button. -The descriptor should look something like this: -```bash -wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/<0;1>/*)#fw76ulgt -``` - -4. Some wallets use a descriptor type that hasn't been -[merged](https://github.com/bitcoin/bitcoin/pull/22838) into Bitcoin Core yet, -so some extra steps are necessary. First we need the descriptor checksum for the -receive addresses (`/0/*`): -```bash -$ bitcoin-cli getdescriptorinfo \ - 'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)' -{ - "descriptor": "wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#csvefu29", - "checksum": "tpnxnxax", - "isrange": true, - "issolvable": true, - "hasprivatekeys": false -} -``` -And then for the change addresses (`/1/*`): -```bash -$ bitcoin-cli getdescriptorinfo \ - 'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)' -{ - "descriptor": "wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#fyfc5f6a", - "checksum": "64k8wnd7", - "isrange": true, - "issolvable": true, - "hasprivatekeys": false -} -``` - -4. With these checksums we can then import the descriptors (append #checksum to the end) Bitcoind needs to know how far back to look for transactions so find out when the first transaction took place and convert that to unix time and put it in the timestamp field. This command can take quite a while to complete. -```bash -$ bitcoin-cli importdescriptors \ - '[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#tpnxnxax", "timestamp":1455191478 } {"desc":"wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#64k8wnd7" , "timestamp":1455191478 }]' -``` - -5. Test that everthing worked with: -```bash -$ bitcoin-cli getwalletinfo -``` - -6. Now that we have a wallet loaded we can use the `identify` command, which will list and rare ordinals contained in your UTXOs. -```bash -$ ord wallet identify -``` +Ordinal hunting is difficult but rewarding. The feeling of owning a wallet full +of UTXOs, redolent with the scent of rare and exotic ordinals, is beyond +compare. + +Ordinals are numbers for satoshis. Every satoshi has an ordinal number and +every ordinal number has a satoshi. + +Reparation +---------- + +There are a few things you'll need before you start. + +1. First, you'll need a synced Bitcoin Core node with a transaction index. To + turn on transaction indexing, pass `-txindex` on the command-line: + + ```sh + bitcoind -txindex + ``` + + Or put the following in your [Bitcoin configuration + file](https://github.com/bitcoin/bitcoin/blob/master/doc/bitcoin-conf.md#configuration-file-path): + + ``` + txindex=1 + ``` + + Launch it and wait for it to catch up to the chain tip, at which point the + following command should print out the current block height: + + ``` + bitcoin-cli getblockcount + ``` + +2. Second, you'll need a synced `ord` index. + + 1. Get a copy of `ord` from [the repo](https://github.com/casey/ord/). + + 2. Run `RUST_LOG=info ord index`. It should connect to your bitcoin core + node and start indexing. + + 3. Wait for it to finish indexing. + +3. Third, you'll need a wallet with UTXOs that you want to search. + +Searching for Rare Ordinals +--------------------------- + +### Searching for Rare Ordinals in a Bitcoin Core Wallet + +The `ord wallet` command is just a wrapper around Bitcoin Core's RPC API, so +searching for rare ordinals in a Bitcoin Core wallet is Easy. Assuming your +wallet is named `foo`: + +1. Load your wallet: + + ```sh + bitcoin-cli loadwallet foo + ``` + +2. Display any rare ordinals wallet `foo`'s UTXOs: + + ```sh + ord wallet identify + ``` + +### Searching for Rare Ordinals in a Non-Bitcoin Core Wallet + +The `ord wallet` command is just a wrapper around Bitcoin Core's RPC API, so to +search for rare ordinals in a non-Bitcoin Core wallet, you'll need to import +your wallet's descriptors into Bitcoin Core. + +[Descriptors](https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md) +describe the ways that wallets generate private keys and public keys. + +You should only import descriptors into Bitcoin Core for your wallet's public +keys, not its private keys. + +If your wallet's public key descriptor is compromised, an attacker will be able +to see your wallet's addresses, but your funds will be safe. + +If your wallet's private key descriptor is compromised, an attacker can drain +your wallet of funds. + +1. Get the wallet descriptor from the wallet whose UTXOs you want to search for + rare ordinals. It will look something like this: + + ``` + wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#csvefu29 + ``` + +2. Create a watch-only wallet named `foo-watch-only`: + + ```sh + bitcoin-cli createwallet foo-watch-only true true + ``` + + Feel free to give it a better name than `foo-watch-only`! + +3. Load the `foo-watch-only` wallet: + + ```sh + bitcoin-cli loadwallet foo-watch-only + ``` + +4. Import your wallet descriptors into `foo-watch-only`: + + ```sh + bitcoin-cli importdescriptors \ + '[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#tpnxnxax", "timestamp":0 }]' + ``` + + If you know the Unix timestamp when your wallet first started receive + transactions, you may use it for the value of `"timestamp"` instead of `0`. + This will reduce the time it takes for Bitcoin Core to search for your + wallet's UTXOs. + +5. Check that everything worked: + + ```sh + bitcoin-cli getwalletinfo + ``` + +7. Display your wallet's rare ordinals: + + ```sh + ord wallet identify + ``` + +### Searching for Rare Ordinals in a Wallet that Exports Multi-path Descriptors + +Some descriptors describe multiple paths in one descriptor using angle brackets, +e.g., `<0;1>`. Multi-path descriptors are not yet supported by Bitcoin Core, so +you'll first need to convert them into multiple descriptors, and then import +those multiple descriptors into Bitcoin Core. + +1. First get the multi-path descriptor from your wallet. It will look something + like this: + + ``` + wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/<0;1>/*)#fw76ulgt + ``` + +2. Create a descriptor for the receive address path: + + ``` + wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*) + ``` + + And the change address path: + + ``` + wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*) + ``` + +3. Get and note the checksum for the receive address descriptor, in this case + `tpnxnxax`: + + ```sh + bitcoin-cli getdescriptorinfo \ + 'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)' + ``` + + ```json + { + "descriptor": "wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#csvefu29", + "checksum": "tpnxnxax", + "isrange": true, + "issolvable": true, + "hasprivatekeys": false + } + ``` + + And for the change address descriptor, in this case `64k8wnd7`: + + ```sh + bitcoin-cli getdescriptorinfo \ + 'wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)' + ``` + + ```json + { + "descriptor": "wpkh([bf1dd55e/84'/0'/0']xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#fyfc5f6a", + "checksum": "64k8wnd7", + "isrange": true, + "issolvable": true, + "hasprivatekeys": false + } + ``` + +4. Now import the descriptors, with the correct checksums, into Bitcoin Core. + + First the receive address descriptor: + + ```sh + bitcoin-cli \ + importdescriptors \ + '[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#tpnxnxax", "timestamp":0}]' + ``` + + And then the change address descriptor: + + ```sh + bitcoin-cli \ + importdescriptors \ + '[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#64k8wnd7", "timestamp":0}]' + ``` + + If you know the Unix timestamp when your wallet first started receive + transactions, you may use it for the value of `"timestamp"` instead of `0`. + This will reduce the time it takes for Bitcoin Core to search for your + wallet's UTXOs. + +5. Check that everything worked: + + ```sh + bitcoin-cli getwalletinfo + ``` + +7. Display your wallet's rare ordinals: + + ```sh + ord wallet identify + ``` + +### Exporting Descriptors + +#### Sparrow Wallet + +Navigate to the `Settings` tab, then to `Script Policy`, and press the edit button to display the descriptor. + +### Transferring Ordinals + +`ord` does not yet support transferring specific ordinals. Currently, your best +bet is to use `bitcoin-cli createrawtransaction`, `bitcoin-cli +signrawtransactionwithwallet`, and `bitcoin-cli sendrawtransaction`. diff --git a/static/index.css b/static/index.css index e44e31ce9f..f0cdfe2dc6 100644 --- a/static/index.css +++ b/static/index.css @@ -16,6 +16,12 @@ h1 { width: 100%; } +pre { + overflow: scroll; + padding: 1rem; + border-radius: 0.375rem; +} + a { text-decoration: none; } From e3bf0e1a2e442434ff4e4cd616c6401ee2f0ed09 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 3 Oct 2022 14:07:08 -0700 Subject: [PATCH 4/6] tweak --- docs/content/hunting.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/content/hunting.md b/docs/content/hunting.md index 7ca2facc01..9a4cbf659c 100644 --- a/docs/content/hunting.md +++ b/docs/content/hunting.md @@ -31,7 +31,7 @@ There are a few things you'll need before you start. Launch it and wait for it to catch up to the chain tip, at which point the following command should print out the current block height: - ``` + ```sh bitcoin-cli getblockcount ``` @@ -236,4 +236,5 @@ Navigate to the `Settings` tab, then to `Script Policy`, and press the edit butt `ord` does not yet support transferring specific ordinals. Currently, your best bet is to use `bitcoin-cli createrawtransaction`, `bitcoin-cli -signrawtransactionwithwallet`, and `bitcoin-cli sendrawtransaction`. +signrawtransactionwithwallet`, and `bitcoin-cli sendrawtransaction`, however, +how to do so is complex and outside the scope of this guide. From d855b26ffd5c32f0673c6abd5770b0a91d367980 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 3 Oct 2022 14:35:03 -0700 Subject: [PATCH 5/6] tweak --- docs/content/hunting.md | 14 +++++++------- src/subcommand/server.rs | 4 ++-- src/subcommand/server/templates/home.rs | 2 +- static/index.css | 7 ++++++- templates/home.html | 2 +- 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/docs/content/hunting.md b/docs/content/hunting.md index 9a4cbf659c..441b47e31a 100644 --- a/docs/content/hunting.md +++ b/docs/content/hunting.md @@ -37,12 +37,12 @@ There are a few things you'll need before you start. 2. Second, you'll need a synced `ord` index. - 1. Get a copy of `ord` from [the repo](https://github.com/casey/ord/). + - Get a copy of `ord` from [the repo](https://github.com/casey/ord/). - 2. Run `RUST_LOG=info ord index`. It should connect to your bitcoin core - node and start indexing. + - Run `RUST_LOG=info ord index`. It should connect to your bitcoin core + node and start indexing. - 3. Wait for it to finish indexing. + - Wait for it to finish indexing. 3. Third, you'll need a wallet with UTXOs that you want to search. @@ -235,6 +235,6 @@ Navigate to the `Settings` tab, then to `Script Policy`, and press the edit butt ### Transferring Ordinals `ord` does not yet support transferring specific ordinals. Currently, your best -bet is to use `bitcoin-cli createrawtransaction`, `bitcoin-cli -signrawtransactionwithwallet`, and `bitcoin-cli sendrawtransaction`, however, -how to do so is complex and outside the scope of this guide. +bet is to use the `bitcoin-cli` commands `createrawtransaction`, +`signrawtransactionwithwallet`, and `sendrawtransaction`, however, how to do so +is complex and outside the scope of this guide. diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index b9c4487624..45a92542dc 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -1023,7 +1023,7 @@ mod tests { .*

Recent Blocks

-
    +
    1. [[:xdigit:]]{64}
    2. 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
    .*", @@ -1039,7 +1039,7 @@ mod tests { test_server.assert_response_regex( "/", StatusCode::OK, - ".*
      \n(
    1. [[:xdigit:]]{64}
    2. \n){100}
    .*" + ".*
      \n(
    1. [[:xdigit:]]{64}
    2. \n){100}
    .*" ); } diff --git a/src/subcommand/server/templates/home.rs b/src/subcommand/server/templates/home.rs index 989a916765..e6300ea24b 100644 --- a/src/subcommand/server/templates/home.rs +++ b/src/subcommand/server/templates/home.rs @@ -55,7 +55,7 @@ mod tests {

    Search

    .*

    Recent Blocks

    -
      +
      1. 1{64}
      2. 0{64}
      diff --git a/static/index.css b/static/index.css index f0cdfe2dc6..95d423cd6a 100644 --- a/static/index.css +++ b/static/index.css @@ -22,6 +22,11 @@ pre { border-radius: 0.375rem; } +p > code { + background-color: #fefbec; + border-radius: 0.375rem; +} + a { text-decoration: none; } @@ -40,7 +45,7 @@ nav { justify-content: left; } -ol { +.blocks { list-style-position: inside; padding-inline-start: 0; white-space: nowrap; diff --git a/templates/home.html b/templates/home.html index a6fcbadb57..35aef87283 100644 --- a/templates/home.html +++ b/templates/home.html @@ -14,7 +14,7 @@

      Search

      Recent Blocks

      -
        +
          %% for (rarity, hash) in &self.blocks {
        1. {{hash}}
        2. %% } From 0b4d380a9db50920a4081a3ca9aa6d68c9cc14c5 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 3 Oct 2022 15:49:57 -0700 Subject: [PATCH 6/6] Fix typo and import both descriptors at once --- docs/content/hunting.md | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/docs/content/hunting.md b/docs/content/hunting.md index 441b47e31a..b1caeda4f0 100644 --- a/docs/content/hunting.md +++ b/docs/content/hunting.md @@ -9,8 +9,8 @@ compare. Ordinals are numbers for satoshis. Every satoshi has an ordinal number and every ordinal number has a satoshi. -Reparation ----------- +Preparation +----------- There are a few things you'll need before you start. @@ -191,28 +191,33 @@ those multiple descriptors into Bitcoin Core. } ``` -4. Now import the descriptors, with the correct checksums, into Bitcoin Core. - - First the receive address descriptor: +4. Load the wallet you want to import the descriptors into: ```sh - bitcoin-cli \ - importdescriptors \ - '[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#tpnxnxax", "timestamp":0}]' + bitcoin-cli loadwallet foo-watch-only ``` - And then the change address descriptor: +4. Now import the descriptors, with the correct checksums, into Bitcoin Core. ```sh bitcoin-cli \ importdescriptors \ - '[{ "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#64k8wnd7", "timestamp":0}]' + '[ + { + "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/0/*)#tpnxnxax" + "timestamp":0 + }, + { + "desc": "wpkh([bf1dd55e/84h/0h/0h]xpub6CcJtWcvFQaMo39ANFi1MyXkEXM8T8ZhnxMtSjQAdPmVSTHYnc8Hwoc11VpuP8cb8JUTboZB5A7YYGDonYySij4XTawL6iNZvmZwdnSEEep/1/*)#64k8wnd7", + "timestamp":0 + } + ]' ``` If you know the Unix timestamp when your wallet first started receive - transactions, you may use it for the value of `"timestamp"` instead of `0`. - This will reduce the time it takes for Bitcoin Core to search for your - wallet's UTXOs. + transactions, you may use it for the value of the `"timestamp"` fields + instead of `0`. This will reduce the time it takes for Bitcoin Core to + search for your wallet's UTXOs. 5. Check that everything worked: