RPC Server #103
1 changed files with 23 additions and 4 deletions
|
@ -291,7 +291,7 @@
|
||||||
"name": "getnewaddress",
|
"name": "getnewaddress",
|
||||||
"summary": "Add a new address",
|
"summary": "Add a new address",
|
||||||
"description": "Derive a new address in the given account.",
|
"description": "Derive a new address in the given account.",
|
||||||
"tags": [{"$ref": "#/components/tags/wip"}, {"$ref": "#/components/tags/draft"}],
|
"tags": [],
|
||||||
"params": [
|
"params": [
|
||||||
{ "$ref": "#/components/contentDescriptors/AccountId"},
|
{ "$ref": "#/components/contentDescriptors/AccountId"},
|
||||||
{ "$ref": "#/components/contentDescriptors/Name"},
|
{ "$ref": "#/components/contentDescriptors/Name"},
|
||||||
|
@ -606,13 +606,18 @@
|
||||||
"name": "getoperationstatus",
|
"name": "getoperationstatus",
|
||||||
"summary": "Get the status of a Zenith operation",
|
"summary": "Get the status of a Zenith operation",
|
||||||
"description": "Get the status of the given operation",
|
"description": "Get the status of the given operation",
|
||||||
"tags": [{"$ref": "#/components/tags/draft"}],
|
"tags": [{"$ref": "#/components/tags/wip"}, {"$ref": "#/components/tags/draft"}],
|
||||||
"params": [],
|
"params": [{ "$ref": "#/components/contentDescriptors/OperationId"}],
|
||||||
|
"paramStructure": "by-position",
|
||||||
"result": {
|
"result": {
|
||||||
"name": "Operation status",
|
"name": "Operation status",
|
||||||
"schema": {
|
"schema": {
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"errors": [
|
||||||
|
{ "$ref": "#/components/errors/OpNotFound" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"components": {
|
"components": {
|
||||||
|
@ -670,7 +675,17 @@
|
||||||
"schema" : {
|
"schema" : {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"OperationId": {
|
||||||
|
"name": "Operation ID",
|
||||||
|
"summary": "A unique identifier for Zenith operations",
|
||||||
|
"description": "A [UUID](http://en.wikipedia.org/wiki/UUID) assigned to an operation (like sending a transaction) that can be used to query Zenith to see the status and outcome of the operation.",
|
||||||
|
"required": true,
|
||||||
|
"schema" : {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
"schemas": {
|
"schemas": {
|
||||||
"ZenithInfo": {
|
"ZenithInfo": {
|
||||||
|
@ -776,6 +791,10 @@
|
||||||
"code": -32008,
|
"code": -32008,
|
||||||
"message": "Wallet does not exist."
|
"message": "Wallet does not exist."
|
||||||
},
|
},
|
||||||
|
"OpNotFound": {
|
||||||
|
"code": -32009,
|
||||||
|
"message": "Operation ID not found."
|
||||||
|
},
|
||||||
"InternalError": {
|
"InternalError": {
|
||||||
"code": -32010,
|
"code": -32010,
|
||||||
"message": "Varies"
|
"message": "Varies"
|
||||||
|
|
Loading…
Reference in a new issue