Example #1
0
import asyncio
import os
import json
import indy_vdr
from util import (enable_verbose, log, create_did)
from fetch_ledger_tx import FetchLedgerTX
from pool import PoolCollection
from networks import Networks
from plugin_collection import PluginCollection

if __name__ == "__main__":
    parser = argparse.ArgumentParser(
        description="Fetch transaction related details from indy based ledgers"
    )
    parser.add_argument("--net",
                        choices=Networks.get_ids(),
                        help="Connect to a known network using an ID.")
    parser.add_argument("--list-nets",
                        action="store_true",
                        help="List known networks.")
    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."
    )
    parser.add_argument(
        "--genesis-path",
        default=os.getenv("GENESIS_PATH"),
        help=
        "The path to the genesis file describing the ledger pool.  Can be specified using the 'GENESIS_PATH' environment variable."