https://github.com/cybervoid0/explore-tropycus-kdoc
Exploring MINT events on Tropykus KDOC
https://github.com/cybervoid0/explore-tropycus-kdoc
Last synced: 9 months ago
JSON representation
Exploring MINT events on Tropykus KDOC
- Host: GitHub
- URL: https://github.com/cybervoid0/explore-tropycus-kdoc
- Owner: cybervoid0
- Created: 2021-10-13T21:24:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-13T21:25:21.000Z (over 4 years ago)
- Last Synced: 2025-06-22T23:05:57.084Z (12 months ago)
- Language: JavaScript
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wallet Quest 3

[French](../French/index.html), [Spanish](../Spanish/index.html), [Tagalog](../Tagalog/index.html), [Vietnamese](../Vietnamese/index.html)
# Exploring `MINT` events on Tropykus
The Tropykus KDOC contract is a token that users of Tropykus.finance hold on to after depositing DOC on the app to earn interests.
In this quest, we will find the total amount that has been spent in `gas-quote` since the deployment of the `Tropykus DOC` contract. `gas-quote` is the amount spent in `quote-currency` on gas. Where the default `quote-currency` is USD.
## Setup:
- Ensure your Covalent API key, set up during the #OneMillionWallets registration process, is activated in the [Covalent API reference](https://www.covalenthq.com/docs/api) so you can make API calls directly in the Chrome browser.
## Your Secret Weapons
1. [Get transactions](https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/address/{address}/transactions_v2/)
2. [Get Log events by contract address](https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/events/address/{address}/)
3. [RSK Network Explorer](https://explorer.rsk.co//)
### Step 1:
Using the RSK Explorer, find the Tropykus KDOC contract address.
0x1558a2DC243bA682ffFD6676A7daDfe04DaBF913
### Step 2:
Find the TOTAL number of `MINT` events. Take a note of the `Block Height` of the first `MINT` event.
first block with mint event: 3656201
number of mint events: 23
### Step 3:
Find the Log Event with param: `amount0` for every `MINT` event.
### Step 4:
SUM the total `gas-quote` of ALL `MINT` events `amount0` activity. Convert the result to Hexadecimal.
### Step 5:
Access your secret room for the next task at the URL:
`www.onemillionwallets.com/rsk-{Block Height from Step 2}-{Last 6 characters after the decimal of the Hex number from Step 4}`
Then complete the task in the secret room.
## Submission
Complete the instructions in `Submission.md` and then submit your repl.
**Note: If you are submitting in one of the non-English supported regional languages, please delete all other `README-*.md` and `Submission-*.md` files which are not applicable for your submission.**