2018-05-26 05:26:07 +02:00
|
|
|
from torba.basenetwork import BaseNetwork
|
|
|
|
|
|
|
|
|
|
|
|
class Network(BaseNetwork):
|
2018-06-12 17:53:29 +02:00
|
|
|
|
2018-08-28 02:03:08 +02:00
|
|
|
def get_block(self, block_hash):
|
|
|
|
return self.rpc('blockchain.block.get_block', block_hash)
|
|
|
|
|
2018-08-05 02:20:37 +02:00
|
|
|
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)
|
2018-07-10 06:31:21 +02:00
|
|
|
|
|
|
|
def get_claims_by_ids(self, *claim_ids):
|
2018-07-12 05:46:01 +02:00
|
|
|
return self.rpc('blockchain.claimtrie.getclaimsbyids', *claim_ids)
|
2018-08-28 02:03:08 +02:00
|
|
|
|
|
|
|
def get_claims_in_tx(self, txid):
|
|
|
|
return self.rpc('blockchain.claimtrie.getclaimsintx', txid)
|