|
@ -156,11 +156,15 @@ class Daemon(util.LoggedClass): |
|
|
'''Return the fee estimate for the given parameters.''' |
|
|
'''Return the fee estimate for the given parameters.''' |
|
|
return await self._send_single('estimatefee', params) |
|
|
return await self._send_single('estimatefee', params) |
|
|
|
|
|
|
|
|
|
|
|
async def getnetworkinfo(self): |
|
|
|
|
|
'''Return the result of the 'getnetworkinfo' RPC call.''' |
|
|
|
|
|
return await self._send_single('getnetworkinfo') |
|
|
|
|
|
|
|
|
async def relayfee(self): |
|
|
async def relayfee(self): |
|
|
'''The minimum fee a low-priority tx must pay in order to be accepted |
|
|
'''The minimum fee a low-priority tx must pay in order to be accepted |
|
|
to the daemon's memory pool.''' |
|
|
to the daemon's memory pool.''' |
|
|
net_info = await self._send_single('getnetworkinfo') |
|
|
network_info = await self.getnetworkinfo() |
|
|
return net_info['relayfee'] |
|
|
return network_info['relayfee'] |
|
|
|
|
|
|
|
|
async def getrawtransaction(self, hex_hash): |
|
|
async def getrawtransaction(self, hex_hash): |
|
|
'''Return the serialized raw transaction with the given hash.''' |
|
|
'''Return the serialized raw transaction with the given hash.''' |
|
|