Ejemplo n.º 1
0
    def test_blockstack_connectivity(self):
        """ Check connection to blockstack node
        """

        client = get_bs_client()
        resp = client.ping()

        self.assertDictContainsSubset({'status': 'alive'}, resp)
    def test_blockstore_connectivity(self):
        """ Check connection to blockstore node
        """

        client = get_bs_client()
        resp = client.ping()

        self.assertDictContainsSubset({'status': 'alive'}, resp)
Ejemplo n.º 3
0
def display_wallet_info(payment_address, owner_address):

    print '-' * 60
    print "Payment address:\t%s" % payment_address
    print "Owner address:\t\t%s" % owner_address
    print '-' * 60
    print "Balance:"
    print "%s: %s" % (payment_address, get_balance(payment_address))
    print '-' * 60

    bs_client = get_bs_client()
    print "Names Owned:"
    print "%s: %s" % (owner_address, bs_client.get_names_owned_by_address(owner_address))
    print '-' * 60