Minimal eCash (XEC) Electrum ABC/Fulcrum client: build, sign, and broadcast P2PKH transactions from a wallet with BIP39 mnemonic.
Project description
minimal-ecash-sender
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
Install
pip install minimal-ecash-sender
Library Usage
from 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)
Flags
--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)
Notes
- Only P2PKH is supported.
- Default fee rate is 1 atom/byte; adjust with
--fee-per-byteif needed.
LICENSE
- See
LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minimal_ecash_sender-1.0.0.tar.gz.
File metadata
- Download URL: minimal_ecash_sender-1.0.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e41b5c23a443acffb5073faf0b8bdfb816aff6ac467cf335be0e9dce206f2a0
|
|
| MD5 |
2787764237c5d114227f6e46d1a84df1
|
|
| BLAKE2b-256 |
0f2a13274fb15a7fd8b68a2aa7cfe490896e92e3d666744bed05aa90b75c5dd1
|
File details
Details for the file minimal_ecash_sender-1.0.0-py3-none-any.whl.
File metadata
- Download URL: minimal_ecash_sender-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dab925e11ce332c3eceb3922e10ce5e0f9a6fd924a2b5743628680dfd3a03255
|
|
| MD5 |
0d9fad5baf3c43bc88c7771e67cd028c
|
|
| BLAKE2b-256 |
0c7f7e8641af17479b4d3802f055be1d08ef1e6b64a2d673cb0eaeeeda95551e
|