0

Does Electrum provides any API? If yes, please let me know if there's any dedicated documentation available.

Also, does Electrum support Bitcoin Cash?

Purpose: I want to integrate Electrum into my application for wallet service and seeding capabilities. I'm planning to run full node for BCH and BTC.

2

Yes for sure, You can send requests to electrum servers or your server (recommended) by sending JSON-RPC requests.

Take a look on Electrum documentation

https://electrumx.readthedocs.io/en/latest/protocol-methods.html

for bitcoin cash use Electroncash same commands work.

For example, to broadcast a hex transaction you can call

{"id": 1, "method": "blockchain.transaction.broadcast", "params": ["YOUR_HEX_TRANSACTION"]}

There are no wallet commands available, but blockchain commands.

  • Adam, Thanks for the answer. I was also looking for a similar solution asked by Gagan. I have further questions, like there is bitcore api sdk is also available to create wallets and do transactions. Then what benefit do we get to use electrum api's? I will really appericate the answer :) – Amit Modi Jul 27 '18 at 6:20
  • Thanks but I didn't found any method that says createWallet :/ – Gagan Jul 27 '18 at 6:30
  • amit You will need an Electrum client that connects to an Electrum server. It is similar in logic to the bitcore api, but requires less components and is more secure by storing all wallet/key stuff on the client. – Nikos Kostoulas Jul 27 '18 at 8:16
  • Please don't ask multiple questions in the comments section. anyway, I've edited my answer. – Adam Jul 27 '18 at 15:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.