havenprotocol / haven

Haven is an untraceable cryptocurrency that proposes a new way of achieving a stable fiat value storage while being traded at market value.
Other
58 stars 41 forks source link

Method not found #31

Open megolosov opened 6 years ago

megolosov commented 6 years ago

Hi,

I am trying to get information about the block from the RPC demon.

method: get_info - it is OK

method: get_block

{'jsonrpc': '2.0', 'error': {'code': -32601, 'message': 'Method not found'}, 'id': ''}

documentation used from https://getmonero.org/resources/developer-guides/daemon-rpc.html#get_block

help me

glemercier commented 6 years ago

@megolosov, you can use getblock which is the exact same RPC method as exposed by the Monero daemon. If you still wants to use get_block, you can apply this patch https://github.com/glemercier/haven/commit/9a7e99e28341501e2bb3a8c3cf7e6305cee63be7.