core-lightning/doc/schemas/listtransactions.schema.json
Rusty Russell b8aa3a579e listtransactions: remove annotations, which were only in EXPERIMENTAL_FEATURES.
I don't know if anyone was using them, they seem half-hearted.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-05-23 09:34:08 +09:30

108 lines
2.8 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"additionalProperties": false,
"required": [
"transactions"
],
"properties": {
"transactions": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"hash",
"rawtx",
"blockheight",
"txindex",
"locktime",
"version",
"inputs",
"outputs"
],
"properties": {
"hash": {
"type": "txid",
"description": "the transaction id"
},
"rawtx": {
"type": "hex",
"description": "the raw transaction"
},
"blockheight": {
"type": "u32",
"description": "the block height of this tx"
},
"txindex": {
"type": "u32",
"description": "the transaction number within the block"
},
"locktime": {
"type": "u32",
"description": "The nLocktime for this tx"
},
"version": {
"type": "u32",
"description": "The nVersion for this tx"
},
"inputs": {
"type": "array",
"description": "Each input, in order",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"txid",
"index",
"sequence"
],
"properties": {
"txid": {
"type": "txid",
"description": "the transaction id spent"
},
"index": {
"type": "u32",
"description": "the output spent"
},
"sequence": {
"type": "u32",
"description": "the nSequence value"
}
}
}
},
"outputs": {
"type": "array",
"description": "Each output, in order",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"index",
"amount_msat",
"scriptPubKey"
],
"properties": {
"index": {
"type": "u32",
"description": "the 0-based output number"
},
"amount_msat": {
"type": "msat",
"description": "the amount of the output"
},
"scriptPubKey": {
"type": "hex",
"description": "the scriptPubKey"
}
}
}
}
}
}
}
}
}