Bitcoin Forum
May 05, 2024, 12:34:31 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] JSON-RPC API  (Read 53 times)
~DefaultTrust (OP)
Copper Member
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 487

Stop the war!


View Profile
March 01, 2021, 04:48:02 PM
Last edit: March 01, 2021, 06:36:03 PM by ~DefaultTrust
 #1

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?

Do not trust bitcointalk fascists: leonello; Snork1979; ivan1975
1714912471
Hero Member
*
Offline Offline

Posts: 1714912471

View Profile Personal Message (Offline)

Ignore
1714912471
Reply with quote  #2

1714912471
Report to moderator
1714912471
Hero Member
*
Offline Offline

Posts: 1714912471

View Profile Personal Message (Offline)

Ignore
1714912471
Reply with quote  #2

1714912471
Report to moderator
1714912471
Hero Member
*
Offline Offline

Posts: 1714912471

View Profile Personal Message (Offline)

Ignore
1714912471
Reply with quote  #2

1714912471
Report to moderator
"I'm sure that in 20 years there will either be very large transaction volume or no volume." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
March 01, 2021, 05:24:53 PM
 #2

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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
~DefaultTrust (OP)
Copper Member
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 487

Stop the war!


View Profile
March 01, 2021, 06:17:09 PM
Last edit: March 01, 2021, 06:35:45 PM by ~DefaultTrust
 #3

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.
I have readed this docs: https://electrum.readthedocs.io/en/latest/jsonrpc.html
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

Do not trust bitcointalk fascists: leonello; Snork1979; ivan1975
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
March 02, 2021, 01:56:07 PM
 #4

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.
~DefaultTrust (OP)
Copper Member
Sr. Member
****
Offline Offline

Activity: 1554
Merit: 487

Stop the war!


View Profile
March 02, 2021, 02:43:23 PM
 #5

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


Do not trust bitcointalk fascists: leonello; Snork1979; ivan1975
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!