lbry-sdk/lbrynet/extras/wallet/network.py

23 lines
759 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_block(self, block_hash):
return self.rpc('blockchain.block.get_block', block_hash)
def get_server_height(self):
return self.rpc('blockchain.block.get_server_height')
2018-07-01 23:21:18 +02:00
def get_values_for_uris(self, block_hash, *uris):
return self.rpc('blockchain.claimtrie.getvaluesforuris', block_hash, *uris)
def get_claims_by_ids(self, *claim_ids):
return self.rpc('blockchain.claimtrie.getclaimsbyids', *claim_ids)
def get_claims_in_tx(self, txid):
return self.rpc('blockchain.claimtrie.getclaimsintx', txid)
2018-09-21 22:48:49 +02:00
def get_claims_for_name(self, name):
return self.rpc('blockchain.claimtrie.getclaimsforname', name)