π§JSON-RPC Interface
Electrum provides a JSON-RPC interface that allows external applications and scripts to interact directly with your wallet.
electrum setconfig rpcport 7777electrum getconfig rpcuser
electrum getconfig rpcpasswordcurl --data-binary '{"jsonrpc":"2.0","id":"curltext","method":"getbalance","params":[]}' http://username:password@127.0.0.1:7777curl --data-binary '{"jsonrpc":"2.0","id":"curltext","method":"listaddresses","params":{"funded":true}}' http://username:password@127.0.0.1:7777curl --data-binary '{"jsonrpc":"2.0","id":"curltext","method":"add_request","params":{"amount":"3.14","memo":"test"}}' http://username:password@127.0.0.1:7777Last updated