2018-05-25 23:26:07 -04:00
|
|
|
from torba.basenetwork import BaseNetwork
|
|
|
|
|
|
|
|
|
|
|
|
class Network(BaseNetwork):
|
2018-06-12 11:53:29 -04:00
|
|
|
|
2018-08-04 20:20:37 -04:00
|
|
|
def get_server_height(self):
|
|
|
|
return self.rpc('blockchain.block.get_server_height')
|
|
|
|
|
2018-07-01 17:21:18 -04:00
|
|
|
def get_values_for_uris(self, block_hash, *uris):
|
|
|
|
return self.rpc('blockchain.claimtrie.getvaluesforuris', block_hash, *uris)
|
2018-07-10 01:31:21 -03:00
|
|
|
|
|
|
|
def get_claims_by_ids(self, *claim_ids):
|
2018-07-12 00:46:01 -03:00
|
|
|
return self.rpc('blockchain.claimtrie.getclaimsbyids', *claim_ids)
|