Evmos GRPC
Evmos' grpc messages.
WIP: Only the message send was implemented because is the one used for the faucet.
Requirements
- Python3.9+
- Evmos grpc endpoint available
- Wallet seed (only supports the evmos default algorithm:
ethsecp256k1)
Installation
pip install evmosgrpc
Configuration
The configuration can be set using env vars:
- GRPC_ENDPOINT: Default = '127.0.0.1:9090'
- MEMO: Default = 'Sent from Hanchon's faucet'
- FEE: Default = '20'
- GAS_LIMIT: Default = '200000'
- CHAIN_ID: Default = 'evmos_9000-1'
- DENOM: Default = 'aphoton'
Usage
from evmosgrpc.messages.msgsend import create_msg_send
from evmosgrpc.builder import TransactionBuilder
from evmosgrpc.transaction import Transaction
seed = 'garment seat help gallery ride divide truth smooth end chunk '\
'ten cross badge want vehicle mirror dismiss remind crouch '\
'base crouch palm leader dinner'
builder = TransactionBuilder(seed)
msg = create_msg_send(
builder.address,
"evmos1sgg7ny6mkk375ghdlx837hkm92dqxs450fxwwz",
100,
)
res = builder.send_tx(Transaction().generate_tx(builder, msg))
# res =
# tx_response {
# txhash: "F4DFCF8E0BAEBBE088DF0C8A4DA1EF70CD29983C5F7663A523A87F1CE479BFF5"
# raw_log: "[]"
# }
# To read the response as a dict:
from google.protobuf.json_format import MessageToDict
res_obj = MessageToDict(res)
TODO
- Add tests.
- Add more messages.
- Add
secp256k1wallet support onevmoswallet.
Metadata
Release files for evmosgrpc 1.1.0
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 |
|---|---|---|---|---|
| evmosgrpc-1.1.0.tar.gz | 6.6 kB | Without provenance | Details for evmosgrpc-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| evmosgrpc-1.1.0-py2-none-any.whl | Python 2 | none | any | Details for evmosgrpc-1.1.0-py2-none-any.whl |
Total release size: 16.5 kB
Release files / evmosgrpc-1.1.0.tar.gz
| Download URL | evmosgrpc-1.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9987efd7ee52e56fad1f31e3ebd24256a8a8673ab93b3ddc5881c7f14a37689
|
|
BLAKE2b-256 checksum How to use checksums |
18997198394dcbf2fb7980fc49e0686ec89c3681045d8afc424a570335e726a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
|
Release files / evmosgrpc-1.1.0-py2-none-any.whl
| Download URL | evmosgrpc-1.1.0-py2-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
ed9bd734e74a99e3b1fba89f5cc4c04ff993c37d1d8d19a393c4a161c996a066
|
|
BLAKE2b-256 checksum How to use checksums |
cc2ce7ba953fdb196a0b86c0ba2a87f11a1e042268e381d3cdb2b4669e6fbc60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.3
|
Security for evmosgrpc 1.1.0
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.