core-lightning/doc/schemas/lightning-commando-blacklist.json

143 lines
3.4 KiB
JSON
Raw Normal View History

{
"$schema": "../rpc-schema-draft.json",
"type": "object",
"additionalProperties": false,
"added": "v23.05",
"deprecated": [
"v23.08",
"v24.08"
],
"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."
]
}
}
}
}
}
},
2024-03-28 02:45:18 +01:00
"json_example": [
{
2024-03-28 02:45:18 +01:00
"request": {
"id": "example:commando-blacklist#1",
"method": "commando-blacklist",
"params": {
"start": 2
}
2024-03-28 02:45:18 +01:00
},
"response": {
"blacklist": [
{
"start": 2,
"end": 2
}
]
}
},
{
2024-03-28 02:45:18 +01:00
"request": {
"id": "example:commando-blacklist#2",
"method": "commando-blacklist",
"params": {
"start": 5,
"end": 7
}
2024-03-28 02:45:18 +01:00
},
"response": {
"blacklist": [
{
"start": 2,
"end": 2
},
{
"start": 5,
"end": 7
}
]
}
},
{
2024-03-28 02:45:18 +01:00
"request": {
"id": "example:commando-blacklist#3",
"method": "commando-blacklist",
"params": {
"start": 3,
"end": 4
}
2024-03-28 02:45:18 +01:00
},
"response": {
"blacklist": [
{
"start": 2,
"end": 7
}
]
}
}
],
"author": [
"Shahana Farooqui <<sfarooqui@blockstream.com>> is mainly responsible."
],
"see_also": [
"lightning-commando-listrunes(7)"
],
"resources": [
"Main web site: <https://github.com/ElementsProject/lightning>"
]
}