Skip to content

Commit

Permalink
Merge branch 'master' into document-json-endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Oct 2, 2023
2 parents 867a920 + 8ed6e30 commit 043e568
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
19 changes: 12 additions & 7 deletions docs/src/guides/inscriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,19 +190,24 @@ printed when you run:
ord wallet inscriptions
```

Parent Child Inscriptions
---------------------
Parent-Child Inscriptions
-------------------------

Parent-child inscriptions enable what is colloquially known as collections, see
[provenance](../inscriptions/provenance.md) for more information.

A child inscription is an inscription that is a child of another inscription. See [provenance](../inscriptions/provenance.md) for more information.
To make an inscription a child of another, the parent inscription has to be
inscribed and present in the wallet. To choose a parent run `ord wallet inscriptions`
and copy the inscription id (`<PARENT_INSCRIPTION_ID>`).

get the parent inscription id `<PARENT_INSCRIPTION_ID>` from the output of `ord wallet inscriptions`
Now inscribe the child inscription and specify the parent like so:

```
ord wallet inscribe --fee-rate FEE_RATE --parent <PARENT_INSCRIPTION_ID> CHILD_FILE"
ord wallet inscribe --fee-rate FEE_RATE --parent <PARENT_INSCRIPTION_ID> CHILD_FILE
```

And when you visit [the ordinals explorer](https://ordinals.com/) at
`ordinals.com/inscription/INSCRIPTION_ID`.
This relationship cannot be added retroactively, the parent has to be
present at inception of the child.

Sending Inscriptions
--------------------
Expand Down
6 changes: 3 additions & 3 deletions docs/src/guides/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ ord -r wallet receive
```
Mine 101 blocks (to unlock the coinbase) with:
```
bitcoin-cli generatetoaddress 101 <receive address>
bitcoin-cli -regtest generatetoaddress 101 <receive address>
```
Inscribe in regtest with:
```
ord -r wallet inscribe --fee-rate 1 <file>
```
Mine the inscription with:
```
bitcoin-cli generatetoaddress 1 <receive address>
bitcoin-cli -regtest generatetoaddress 1 <receive address>
```
View the inscription in the regtest explorer:
```
Expand All @@ -51,7 +51,7 @@ Testing Recursion
-----------------

When testing out [recursion](../inscriptions/recursion.md), inscribe the
dependencies first (example with [p5.js](https://p5js.org):
dependencies first (example with [p5.js](https://p5js.org)):
```
ord -r wallet inscribe --fee-rate 1 p5.js
```
Expand Down

0 comments on commit 043e568

Please sign in to comment.