Example #1
0
 def test_get_difficulty(self):
     self.assertTrue(str(StraksExplorer().get_difficulty()))
Example #2
0
 def test_get_transcation_chart(self):
     self.assertTrue(StraksExplorer().get_transaction_chart())
Example #3
0
 def test_get_difficulty_chart(self):
     self.assertTrue(StraksExplorer().get_difficulty_chart())
Example #4
0
 def test_get_hashrate_chart(self):
     self.assertTrue(StraksExplorer().get_hashrate_chart())
Example #5
0
 def test_get_richlist(self):
     self.assertTrue(str(StraksExplorer().get_richlist().get('addresses')))
Example #6
0
 def test_get_masternodes(self):
     self.assertTrue(
         str(StraksExplorer().get_masternodes('enabled', 1,
                                              10).get('masternodes')))
Example #7
0
 def test_get_latest_block(self):
     self.assertTrue(StraksExplorer().get_latest_block().get('last_block'))
Example #8
0
 def test_get_address_total_sent(self):
     self.assertTrue(
         str(StraksExplorer().get_address_total_sent(
             'SjtUfJU17izF9yh5hnCmtWmGyhhCv83eHb')))
Example #9
0
 def test_get_transcations_from_address(self):
     self.assertTrue(
         str(StraksExplorer().get_transactions_from_address(
             '000000000005e7e241410c528362cd02eeaa026237eb08c502ef802fa9d00cf8',
             '1', '5', '0').get('txs')))
Example #10
0
 def test_get_raw_transaction_data_from_transaction_hash(self):
     self.assertTrue(
         str(StraksExplorer(
         ).get_raw_transaction_data_from_transaction_hash(
             '1819fd02b866f14686c68c76af446857abd1d80798947b51fb91381a333e9f05'
         ).get('txs')))
Example #11
0
 def test_get_raw_block_from_blockheight(self):
     self.assertTrue(
         str(StraksExplorer().get_raw_block_from_block_height('foo').get(
             'errors')))
Example #12
0
 def test_get_block_from_blockhash(self):
     self.assertTrue(
         str(StraksExplorer().get_block_from_block_hash(
             '000000000005e7e241410c528362cd02eeaa026237eb08c502ef802fa9d00cf8'
         )))
Example #13
0
 def test_get_blocks(self):
     self.assertTrue(str(StraksExplorer().get_blocks(25, 3)))
Example #14
0
 def test_get_circulating_supply(self):
     self.assertTrue(str(StraksExplorer().get_circulating_supply()))
Example #15
0
 def test_get_total_supply(self):
     self.assertTrue(str(StraksExplorer().get_total_supply()))