2018-11-04 01:24:41 -05:00
|
|
|
from torba.client.basenetwork import BaseNetwork
|
2018-05-25 23:26:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
class Network(BaseNetwork):
|
2018-06-12 11:53:29 -04:00
|
|
|
|
2018-08-04 20:20:37 -04:00
|
|
|
def get_server_height(self):
|
2019-03-30 19:40:01 -04:00
|
|
|
return self.rpc('blockchain.block.get_server_height', [])
|
2018-08-04 20:20:37 -04:00
|
|
|
|
2019-04-29 00:38:58 -04:00
|
|
|
def get_claims_by_ids(self, claim_ids):
|
2019-03-30 19:40:01 -04:00
|
|
|
return self.rpc('blockchain.claimtrie.getclaimsbyids', claim_ids)
|
2018-08-27 21:03:08 -03:00
|
|
|
|
2019-04-29 00:38:58 -04:00
|
|
|
def resolve(self, urls):
|
|
|
|
return self.rpc('blockchain.claimtrie.resolve', urls)
|
2019-03-30 19:40:01 -04:00
|
|
|
|
|
|
|
def claim_search(self, **kwargs):
|
|
|
|
return self.rpc('blockchain.claimtrie.search', kwargs)
|