nervosnetwork / ckb-light-client

CKB light client reference implementation
MIT License
14 stars 16 forks source link

Adding an API to get light client info #118

Closed Keith-CY closed 1 year ago

Keith-CY commented 1 year ago

This issue is a feature request of adding an API to get light client info, similar to get_node_info of CKB node and get_indexer_info of CKB indexer.

Neuron is going to integrate with the light client. However, the network(endpoint) connected by neuron is set by users, and the network cound be either a CKB node, or a light client. So detecting the service of an endpoint is required.

Once the API is ready, program can check if it's a CKB node or a light client without extra info provided by users, and neuron will be network-agnostic

Ref: