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