lbry-sdk/lbrynet/wallet/network.py

17 lines
492 B
Python
Raw Normal View History

2018-11-04 07:24:41 +01:00
from torba.client.basenetwork import BaseNetwork
2018-05-26 05:26:07 +02:00
class Network(BaseNetwork):
2018-06-12 17:53:29 +02:00
def get_server_height(self):
2019-03-31 00:40:01 +01:00
return self.rpc('blockchain.block.get_server_height', [])
2019-04-29 06:38:58 +02:00
def get_claims_by_ids(self, claim_ids):
2019-03-31 00:40:01 +01:00
return self.rpc('blockchain.claimtrie.getclaimsbyids', claim_ids)
2019-04-29 06:38:58 +02:00
def resolve(self, urls):
return self.rpc('blockchain.claimtrie.resolve', urls)
2019-03-31 00:40:01 +01:00
def claim_search(self, **kwargs):
return self.rpc('blockchain.claimtrie.search', kwargs)