Evmos grpc messages.
Project description
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.
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
evmosgrpc-1.0.8.tar.gz
(6.6 kB
view details)
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 evmosgrpc-1.0.8.tar.gz.
File metadata
- Download URL: evmosgrpc-1.0.8.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae3e9566ccea5c638abfecf462cdff2ae4b419f9fd779fb9b319dc596496d343
|
|
| MD5 |
54023f1b803f5bad6c0002cd468a0a11
|
|
| BLAKE2b-256 |
96ee612d74183689933b6ea192770e04c615b5f0dd7526a8c2044acf7aefa347
|
File details
Details for the file evmosgrpc-1.0.8-py2-none-any.whl.
File metadata
- Download URL: evmosgrpc-1.0.8-py2-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
397448c8d4779b73e983520ae37e066fff5af7c33c2654c58f59988b620f0b5f
|
|
| MD5 |
74125949b4bc18d8b958cf2a1945b4fd
|
|
| BLAKE2b-256 |
5e6b1b899e372b11d374bdb70abc32904b3d5a38cf8bff399aa27bdb80a526ab
|