Add examples to OpenRPC spec

This commit is contained in:
Rene Vergara 2024-08-30 15:25:25 -05:00
parent 1caa4efdb4
commit 70123a7261
Signed by: pitmutt
GPG key ID: 65122AD495A7F5B2

View file

@ -323,6 +323,8 @@
], ],
"result": "result":
{ {
"name": "Default receivers",
"value": {
"index": 14, "index": 14,
"account": 1, "account": 1,
"name": "AllRecvs", "name": "AllRecvs",
@ -330,6 +332,7 @@
"legacy": "ztestsapling1esn0wamf8w3nz2juwryscc3l8e5xtll6aewx0r2h5xtmrpnzsw2k23lec65agn8v59r72v2krrh", "legacy": "ztestsapling1esn0wamf8w3nz2juwryscc3l8e5xtll6aewx0r2h5xtmrpnzsw2k23lec65agn8v59r72v2krrh",
"transparent": "tmMteg5HxFnmn4mbm2UNEGzWgLX16bGLg16" "transparent": "tmMteg5HxFnmn4mbm2UNEGzWgLX16bGLg16"
} }
}
}, },
{ {
"name": "GetNewAddress - no transparent", "name": "GetNewAddress - no transparent",
@ -354,6 +357,8 @@
], ],
"result": "result":
{ {
"name": "NoTransparent",
"value": {
"index": 15, "index": 15,
"account": 1, "account": 1,
"name": "NoTransparent", "name": "NoTransparent",
@ -361,6 +366,7 @@
"legacy": "ztestsapling1vp3kzw7rqldfvaw5edfgqq66qm0xnexmscwnys220403mqqh9uyl0sqsye37aelrese42y8ecnx", "legacy": "ztestsapling1vp3kzw7rqldfvaw5edfgqq66qm0xnexmscwnys220403mqqh9uyl0sqsye37aelrese42y8ecnx",
"transparent": null "transparent": null
} }
}
}, },
{ {
"name": "GetNewAddress - no Sapling", "name": "GetNewAddress - no Sapling",
@ -385,6 +391,8 @@
], ],
"result": "result":
{ {
"name": "NoSapling",
"value": {
"index": 16, "index": 16,
"account": 3, "account": 3,
"name": "NoSapling", "name": "NoSapling",
@ -392,6 +400,7 @@
"legacy": null, "legacy": null,
"transparent": "tmQ7z6q46NLQXpeNkfeRL6wJwJWA4picf6b" "transparent": "tmQ7z6q46NLQXpeNkfeRL6wJwJWA4picf6b"
} }
}
}, },
{ {
"name": "GetNewAddress - Orchard only", "name": "GetNewAddress - Orchard only",
@ -421,6 +430,8 @@
], ],
"result": "result":
{ {
"name": "OrchardOnly",
"value": {
"index": 17, "index": 17,
"account": 3, "account": 3,
"name": "OrchardOnly", "name": "OrchardOnly",
@ -429,6 +440,7 @@
"transparent": null "transparent": null
} }
} }
}
], ],
"errors": [ "errors": [
{ "$ref": "#/components/errors/InvalidAccount" }, { "$ref": "#/components/errors/InvalidAccount" },