Skip to main content

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.org
    • fulcrum.pepipierre.fr
    • electrum.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:port  Repeatable; if omitted, defaults are used (TLS 50002)
  • --ssl  Only needed when you pass custom servers and want TLS
  • --insecure  Disable TLS verification (testing only)
  • --ca PATH  Custom CA bundle (PEM)
  • --fingerprint HEX  Pin server by SHA-256 fingerprint
  • --timeout INT  Request timeout (default: 25)
  • --mnemonic "..."  BIP39 mnemonic
  • --to ecash:...  Destination eCash P2PKH address
  • --amount-xec DECIMAL  Send in XEC (note: 1 XEC = 100 atoms)
  • --amount-atoms INT  Send in atoms
  • --path "m/44'/1899'/0'/0/0"  Derivation path
  • --fee-per-byte INT  Atoms/byte (default: 1)

Notes

  • Only P2PKH is supported.
  • Default fee rate is 1 atom/byte; adjust with --fee-per-byte if needed.

LICENSE

  • See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minimal_ecash_sender-1.0.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

minimal_ecash_sender-1.0.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

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

Hashes for minimal_ecash_sender-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4e41b5c23a443acffb5073faf0b8bdfb816aff6ac467cf335be0e9dce206f2a0
MD5 2787764237c5d114227f6e46d1a84df1
BLAKE2b-256 0f2a13274fb15a7fd8b68a2aa7cfe490896e92e3d666744bed05aa90b75c5dd1

See more details on using hashes here.

File details

Details for the file minimal_ecash_sender-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for minimal_ecash_sender-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dab925e11ce332c3eceb3922e10ce5e0f9a6fd924a2b5743628680dfd3a03255
MD5 0d9fad5baf3c43bc88c7771e67cd028c
BLAKE2b-256 0c7f7e8641af17479b4d3802f055be1d08ef1e6b64a2d673cb0eaeeeda95551e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page