Title: [SOLVED] JSON-RPC API Post by: ~DefaultTrust on March 01, 2021, 04:48:02 PM Hi
I am newbie in Electrum. Looking for easy ways to access information from a blockchain. Is there somewhere complete documentation for Electrum RPC-API? Is that API compatible with a Bitcoin Core (https://developer.bitcoin.org/reference/rpc/)? Title: Re: JSON-RPC API Post by: NotATether on March 01, 2021, 05:24:53 PM Have you ever looked at https://electrumx.readthedocs.io/en/latest/protocol.html ?
ElectrumX is basically Elelectrum containing only the JSON-RPC calls and nothing else. The protocol described here also works for Electrum desktop. Title: Re: JSON-RPC API Post by: ~DefaultTrust on March 01, 2021, 06:17:09 PM Have you ever looked at https://electrumx.readthedocs.io/en/latest/protocol.html ? I have readed this docs: https://electrum.readthedocs.io/en/latest/jsonrpc.htmlElectrumX is basically Elelectrum containing only the JSON-RPC calls and nothing else. The protocol described here also works for Electrum desktop. There are some examples there. In those examples, are present functions "getbalance" and "listaddresses". They are looks like as the same functions in Bitcoin Core RPC. I would like to know: what other functions are there in Electrum RPC? Found it https://bitcoin.stackexchange.com/questions/80692/where-can-i-find-the-rpc-api-endpoints-for-electrum Title: Re: [SOLVED] JSON-RPC API Post by: Abdussamad on March 02, 2021, 01:56:07 PM running `electrum help` on the command line on linux will show you what other functions are there. otherwise you can run help() on the console tab in the GUI on all operating systems.
Title: Re: [SOLVED] JSON-RPC API Post by: ~DefaultTrust on March 02, 2021, 02:43:23 PM running `electrum help` on the command line on linux will show you what other functions are there. otherwise you can run help() on the console tab in the GUI on all operating systems. Thank you. Already found it. But as I realised, there is not that I needed. I was needed to get quick access to raw blockchain data but not to the wallet data only. I have found an alternative solution with this library https://github.com/you21979/node-electrum-client Haven't tried it yet, but it looks like this is what I need |