xchainpy/xchainpy_ethereum
Ethereum Module for XChainPy Clients
Environment
tested with Python Virtual Environment 3.8 3.9
Installation
python3 setup.py install
Service Providers
Infura WSS APIwas used to interact with ethereum blockchain, head to https://infura.io/ to get your own websocket token.- If interaction with
non-ERC20 tokenis needed, head to https://etherscan.io/ to get your etherscan token.
Initialization of Client
Pass in your infura WSS api token as network, and pass your ether token as ether_api (not enforced).
-
Initialize mainnet client:
client = Client(phrase="mnemonimic", network="wss://mainnet.infura.io/ws/v3/...", network_type="mainnet", ether_api="...") -
Initialize ropsten(testnet) client:
client = Client(phrase="mnemonimic", network="wss://ropsten.infura.io/ws/v3/...", network_type="ropsten", ether_api="...")
Head to test/test_ropsten_client.py to see a
more comprehensive way to using this client.
Tests
These packages needed to run tests:
- pytest
pip install pytest - pytest-asyncio
pip install pytest-asyncio
How to run test ?
cd test/
Ropsten
$ pytest test_ropsten_client.py
Mainnet
$ pytest test_mainnet_client.py
Metadata
Release files for xchainpy-ethereum 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xchainpy_ethereum-0.2.2.tar.gz | 11.0 kB | Without provenance | Details for xchainpy_ethereum-0.2.2.tar.gz |
Release files / xchainpy_ethereum-0.2.2.tar.gz
| Download URL | xchainpy_ethereum-0.2.2.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
111d9a87fb9c694c971b6f57752247381e99a5edeb6f4695126d46448ccda4ec
|
|
BLAKE2b-256 checksum How to use checksums |
0ef18ea633d0170f0cbca4dc406b27c782b56d7c3c2f573b0e23d64b4fc1e414
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
|
Security for xchainpy-ethereum 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.