Put -getinfo on API #304

Closed
opened 2019-08-19 00:54:39 +02:00 by melroy89 · 2 comments
melroy89 commented 2019-08-19 00:54:39 +02:00 (Migrated from github.com)

Currently the only way of getting information about the node is running the following command on the command-line:

lbrycrd-cli -getinfo

Please, also provide a JSON RPC interface, for example with getinfo method:

curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:9245/

Regards,
Melroy

Currently the only way of getting information about the node is running the following command on the command-line: `lbrycrd-cli -getinfo` Please, also provide a JSON RPC interface, for example with `getinfo` method: ```sh curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:9245/ ``` Regards, Melroy
eggplantbren commented 2019-08-19 00:57:35 +02:00 (Migrated from github.com)

I think getinfo only exists on old versions of lbrycrdd and has been replaced with other things. Apart from that I'll let someone else answer the rest of the issue.

I think `getinfo` only exists on old versions of `lbrycrdd` and has been replaced with other things. Apart from that I'll let someone else answer the rest of the issue.
melroy89 commented 2019-08-19 01:24:24 +02:00 (Migrated from github.com)

You are right. Let's just use: getblockchaininfo & getnetworkinfo methods.

You are right. Let's just use: `getblockchaininfo` & `getnetworkinfo` methods.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#304
No description provided.