Eclair uses JSON API.

When using curl, you pass the API parameters with -F.

I created the environment using Polar again this time. Elin is using Eclair.

$ curl -X POST -u :eclairpw http://127.0.0.1:8285/getinfo
{"version":"0.9.0-notag","nodeId":"03bdfe13cf8409b91d06a5666a594b8d9c9f0bc658d82f89b27387cda3154fe7e6","alias":"erin","color":"#49daaa","features":{"activated":{"gossip_queries_ex":"optional","option_payment_metadata":"optional","option_data_loss_protect":"optional","var_onion_optin":"mandatory","option_static_remotekey":"optional","option_scid_alias":"optional","option_onion_messages":"optional","option_support_large_channel":"optional","option_anchors_zero_fee_htlc_tx":"optional","payment_secret":"mandatory","option_shutdown_anysegwit":"optional","option_channel_type":"optional","basic_mpp":"optional","gossip_queries":"optional"},"unknown":[]},"chainHash":"06226e46111a0b59caaf126043eb5bbf28c34f3a5e332a1fc7b2b73cf188910f","network":"regtest","blockHeight":178,"publicAddresses":["erin:9735"],"instanceId":"71901d71-ebe8-4319-b601-e6f5467ddff0"}

Eclair doesn’t seem to have a client library at a glance. Perhaps it’s because I didn’t feel the need for it, as it can be invoked with curl.

--

--