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.
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: "[]"
# }
TODO
- Add tests
- Add more messages
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.0.tar.gz
(5.7 kB
view hashes)
Built Distribution
Close
Hashes for evmosgrpc-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc58772697aaa64a10d86f40ecb8adaa6f6cbfdfc3768b3f629a64b21205589 |
|
MD5 | eeb19d29f6ba586ad613bb69120be257 |
|
BLAKE2b-256 | 246b327fff0318f4914ee18a4e16f8c255703c90d2f30540c6bb52759016a1aa |