mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
- Changed ALL `doc/schemas/lightning-*.json` file's `json_example` to `examples` - Change the heading from example to examples - Bring shell command before the json command - Move Example to the end of the page - Remove horizontal line from Example
142 lines
3.4 KiB
JSON
142 lines
3.4 KiB
JSON
{
|
|
"$schema": "../rpc-schema-draft.json",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"added": "v23.05",
|
|
"deprecated": [
|
|
"v23.08",
|
|
"v25.02"
|
|
],
|
|
"rpc": "commando-blacklist",
|
|
"title": "Command to prevent a rune from working",
|
|
"description": [
|
|
"The **commando-blacklist** RPC command allows you to effectively revoke the rune you have created (and any runes derived from that rune with additional restictions). Attempting to use these runes will be resulted in a `Blacklisted rune` error message.",
|
|
"",
|
|
"All runes created by commando have a unique sequential id within them and can be blacklisted in ranges for efficiency. The command always returns the blacklisted ranges on success. If no parameters are specified, no changes have been made. If start specified without end, that single rune is blacklisted. If end is also specified, every rune from start till end inclusive is blacklisted."
|
|
],
|
|
"request": {
|
|
"required": [],
|
|
"properties": {
|
|
"start": {
|
|
"type": "u64",
|
|
"description": [
|
|
"First rune unique id to blacklist."
|
|
]
|
|
},
|
|
"end": {
|
|
"type": "u64",
|
|
"description": [
|
|
"Final rune unique id to blacklist (defaults to start)."
|
|
]
|
|
}
|
|
},
|
|
"dependentUpon": {
|
|
"start": [
|
|
"end"
|
|
]
|
|
}
|
|
},
|
|
"response": {
|
|
"required": [
|
|
"blacklist"
|
|
],
|
|
"properties": {
|
|
"blacklist": {
|
|
"type": "array",
|
|
"description": [
|
|
"The resulting blacklist ranges after the command."
|
|
],
|
|
"items": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": [
|
|
"start",
|
|
"end"
|
|
],
|
|
"properties": {
|
|
"start": {
|
|
"type": "u64",
|
|
"description": [
|
|
"Unique id of first rune in this blacklist range."
|
|
]
|
|
},
|
|
"end": {
|
|
"type": "u64",
|
|
"description": [
|
|
"Unique id of last rune in this blacklist range."
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"author": [
|
|
"Shahana Farooqui <<sfarooqui@blockstream.com>> is mainly responsible."
|
|
],
|
|
"see_also": [
|
|
"lightning-commando-listrunes(7)"
|
|
],
|
|
"resources": [
|
|
"Main web site: <https://github.com/ElementsProject/lightning>"
|
|
],
|
|
"examples": [
|
|
{
|
|
"request": {
|
|
"id": "example:commando-blacklist#1",
|
|
"method": "commando-blacklist",
|
|
"params": {
|
|
"start": 2
|
|
}
|
|
},
|
|
"response": {
|
|
"blacklist": [
|
|
{
|
|
"start": 2,
|
|
"end": 2
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"id": "example:commando-blacklist#2",
|
|
"method": "commando-blacklist",
|
|
"params": {
|
|
"start": 5,
|
|
"end": 7
|
|
}
|
|
},
|
|
"response": {
|
|
"blacklist": [
|
|
{
|
|
"start": 2,
|
|
"end": 2
|
|
},
|
|
{
|
|
"start": 5,
|
|
"end": 7
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"request": {
|
|
"id": "example:commando-blacklist#3",
|
|
"method": "commando-blacklist",
|
|
"params": {
|
|
"start": 3,
|
|
"end": 4
|
|
}
|
|
},
|
|
"response": {
|
|
"blacklist": [
|
|
{
|
|
"start": 2,
|
|
"end": 7
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|