lbry-sdk/lbry/wallet/network.py
2020-01-01 15:57:56 -05:00

15 lines
450 B
Python

import lbry
from lbry.wallet.client.basenetwork import BaseNetwork
class Network(BaseNetwork):
PROTOCOL_VERSION = lbry.__version__
def get_claims_by_ids(self, claim_ids):
return self.rpc('blockchain.claimtrie.getclaimsbyids', claim_ids)
def resolve(self, urls):
return self.rpc('blockchain.claimtrie.resolve', urls)
def claim_search(self, **kwargs):
return self.rpc('blockchain.claimtrie.search', kwargs)