Minimal eCash (XEC) Electrum ABC/Fulcrum client.
- Builds, signs, and broadcasts P2PKH transactions (
SIGHASH_ALL|FORKID) - Derives from a BIP39 mnemonic (default path:
m/44'/1899'/0'/0/0) - Uses TLS by default with these auto-trusted servers (port 50002):
electrum.bitcoinabc.orgfulcrum.pepipierre.frelectrum.bytesofman.com
pip install minimal-ecash-senderfrom minimal_ecash_sender.core import send_xec
txid, raw_hex = send_xec(
mnemonic="twelve words ...",
to_addr="ecash:qq5teh...",
amount_atoms=1234, # 12.34 XEC = 1234 atoms (satoshi)
servers=None, # use defaults
fee_per_byte=1,
derivation_path="m/44'/1899'/0'/0/0", #Cashtab wallet's derivation path
timeout=25,
)
print(txid, raw_hex)--server host:portRepeatable; if omitted, defaults are used (TLS 50002)--sslOnly needed when you pass custom servers and want TLS--insecureDisable TLS verification (testing only)--ca PATHCustom CA bundle (PEM)--fingerprint HEXPin server by SHA-256 fingerprint--timeout INTRequest timeout (default: 25)--mnemonic "..."BIP39 mnemonic--to ecash:...Destination eCash P2PKH address--amount-xec DECIMALSend in XEC (note: 1 XEC = 100 atoms)--amount-atoms INTSend in atoms--path "m/44'/1899'/0'/0/0"Derivation path--fee-per-byte INTAtoms/byte (default: 1)
- Only P2PKH is supported.
- Default fee rate is 1 atom/byte; adjust with
--fee-per-byteif needed.
- See
LICENSE.