-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending tokens from one address to another #26
Comments
We'll start by documenting how to send transactions from one address to another using the ephemeral cluster, then go step by step through the code this executes. Ephemeral Cluster SetupFirst start the ephemeral cluster from the
Watch the logs for the evmos container
These should be frozen at until you start a Now set the
Keys and AddressesFirst we need to get the private key of the Cevmos validator using:
Set this value to
Derive the address
Set this value to
We need a second to send the tokens to, we can get this with
Get the value printed under
Derive the address
Set this value to
Sending TokensCheck the balance of the validator account
It should be
Check the balance of the second account
It should be
Now lets try sending some tokens from the validator account to the new account.
This command defaults to synchronous and so should hang until a new block is generated. You can see when this occurs by watching the evmos container logs
Once a new block is committed with our Tx included you should get a response like
Check the balance of the second account
It should be
Check the balance of the validator account
It should be lower than it previously was, but the exact value will depend on how much gas it cost to send the Tx. Debugging through the CodeStarting from the github.com/gakonst/foundry and github.com/gakonst/ethers-rs code When running
The list of calls made from the client are
|
Document the code flow when sending tokens from one address to another.
The text was updated successfully, but these errors were encountered: