Milestone 3: RPC server, ZIP-320 #104

Merged
pitmutt merged 152 commits from milestone3 into master 2024-11-21 15:39:19 +00:00
Showing only changes of commit 2dfb11dc0f - Show all commits

View file

@ -240,9 +240,18 @@
"name": "listreceived", "name": "listreceived",
"summary": "List received transactions", "summary": "List received transactions",
"description": "List transactions received by the given address.", "description": "List transactions received by the given address.",
"tags": [{"$ref": "#/components/tags/draft"}], "tags": [{"$ref": "#/components/tags/draft"}, {"$ref": "#/components/tags/wip"}],
"params": [], "params": [{ "$ref": "#/components/contentDescriptors/Address"}],
"result": {} "paramStructure": "by-position",
"result": {
"name": "Transactions",
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserTx"
}
}
}
}, },
{ {
"name": "sendmany", "name": "sendmany",
@ -280,6 +289,15 @@
"schema": { "schema": {
"type": "integer" "type": "integer"
} }
},
"Address": {
"name": "Address identifier",
"summary": "The address identifier",
"description": "A string that identifies a specific address, either by its index or the address itself",
"required": true,
"schema": {
"type": "string"
}
} }
}, },
"schemas": { "schemas": {
@ -319,11 +337,27 @@
"legacy": { "type": "string", "description": "Legacy Sapling address"}, "legacy": { "type": "string", "description": "Legacy Sapling address"},
"transparent": { "type": "string", "description": "Transparent address"} "transparent": { "type": "string", "description": "Transparent address"}
} }
},
"ZcashNote": {
"type": "object",
"properties": {
"txid": { "type": "string", "description": "Transaction ID"},
"pool": { "type": "string", "description": "Orchard, Sapling, or Transparent" },
"amount" : { "type": "number", "description": "The amount of the note in ZEC"},
"amountZats": { "type": "integer", "description": "The amount of the note in zats"},
"memo": { "type": "string", "description": "The memo corresponding to the note, if any"},
"confirmed": { "type": "boolean", "description": "If the note is confirmed per the thresholds in the configuration"},
"blockheight": { "type": "integer", "description": "The block height containing the transaction"},
"blocktime": { "type": "integer", "description": "The transaction time in seconds since epoch"},
"outindex": { "type": "integer", "description": "The Sapling output index, or the Orchard action index"},
"change": { "type": "boolean", "description": "True if this output was received by a change address"}
}
} }
}, },
"examples": {}, "examples": {},
"tags": { "tags": {
"draft": {"name": "Draft"} "draft": {"name": "Draft"},
"wip": {"name": "WIP"}
}, },
"errors": { "errors": {
"ZebraNotAvailable": { "ZebraNotAvailable": {
@ -341,6 +375,10 @@
"NoAddress": { "NoAddress": {
"code": -32003, "code": -32003,
"message": "No addresses available for this account. Please create one first" "message": "No addresses available for this account. Please create one first"
},
"UnknownAddress": {
"code": -32004,
"message": "Address does not belong to the wallet"
} }
} }
} }