Skip to content

Commit 561cca4

Browse files
authored
CIP-0010 | Add label-in-use query, clean up update process (#1171)
* remove unclear language + add Koios query from @katomm * add long time recommentations for CIP-0010 PRs * apply some long-missing transitional punctuation * change `tag` to `label`, more explicit instructions on process
1 parent 0209412 commit 561cca4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

CIP-0010/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,20 @@ transaction_metadata =
4646

4747
### Structure
4848

49-
These are the reserved `transaction_metadatum_label` values
49+
These are the reserved `transaction_metadatum_label` values:
5050

5151
`transaction_metadatum_label` | description
5252
---------------------------- | -----------------------
53-
0 - 15 | reserved\*
53+
0 - 15 | reserved
5454
65536 - 131071 | reserved - private use
5555

56-
For the registry itself, please see [registry.json](./registry.json) in the machine-readable format. Please open your pull request against
57-
this file.
56+
For the registry itself, please see [registry.json](./registry.json). To add or modify a label definition, please open a pull request against this file. For new label numbers, include background information about your project and/or documentation of the label if available (and state your intended usage if not).
5857

59-
\* It's best to avoid using `0` or any a similar number like `1` that other people are very likely to use. Prefer instead to generate a random number
58+
You can check if a label number is already in use with an API query. For instance: to check if label `8414` is in use via Koios (no API key needed for `curl`):
59+
60+
```
61+
curl -s "https://api.koios.rest/api/v1/tx_by_metalabel?_label=8414" -H "accept: application/json"
62+
```
6063

6164
## Rationale: how does this CIP achieve its goals?
6265

0 commit comments

Comments
 (0)