You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fetch-validator-status/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,6 +171,10 @@ Note that there are three different formats for the timestamps in the data struc
171
171
172
172
For info on plug-ins see the plug-ins [readme](plugins/README.md)
173
173
174
+
## Rest API
175
+
176
+
For info on Rest API see [REST API](REST_API.md)
177
+
174
178
### Running against other Indy Networks
175
179
176
180
To see the validator info against any other Indy network, you need a URL for the Genesis file for the network, and the seed for a suitably authorized DID. The pool Genesis file URLs are easy, since that is published data needed by agents connecting to Indy networks. Sovrin genesis URLs can be found [here](https://github.com/sovrin-foundation/sovrin/tree/master/sovrin). You need the URL for the raw version of the pool transaction files. For example, the URL you need for the Sovrin MainNet is:
To run [fetch validator](README.md) as a webAPI `cd fetch-validator-status` and `IM=1 ./run.sh --web -v` to start the server.
4
+
To run in debug mode add `--debug`.
5
+
6
+
## How To Use
7
+
8
+
After running the command above. Go to http://localhost:8080/ in your browser. Then click on one of the colored drop downs and click the 'Try it out' button. Fill out any required fields then click 'execute'. This will give you a response with a, curl command, request url, and response body.
parser=argparse.ArgumentParser(description="Fetch the status of all the indy-nodes within a given pool.")
93
-
parser.add_argument("--net", choices=list_networks(), help="Connect to a known network using an ID.")
94
-
parser.add_argument("--list-nets", action="store_true", help="List known networks.")
95
-
parser.add_argument("--genesis-url", default=os.environ.get('GENESIS_URL') , help="The url to the genesis file describing the ledger pool. Can be specified using the 'GENESIS_URL' environment variable.")
96
-
parser.add_argument("--genesis-path", default=os.getenv("GENESIS_PATH") orf"{get_script_dir()}/genesis.txn" , help="The path to the genesis file describing the ledger pool. Can be specified using the 'GENESIS_PATH' environment variable.")
97
-
parser.add_argument("-s", "--seed", default=os.environ.get('SEED') , help="The privileged DID seed to use for the ledger requests. Can be specified using the 'SEED' environment variable. If DID seed is not given the request will run anonymously.")
98
-
parser.add_argument("--nodes", help="The comma delimited list of the nodes from which to collect the status. The default is all of the nodes in the pool.")
0 commit comments