This have simple functions that will allow you to query blockchains using google app scripts.
Copy the cosmos_directory.gs
file content to your google app script project. (Extensions > Apps Script)
Once the script is installed you will see a new menu "Cosmos directory". That means your script was successfully installed and you can now use the following functions.
Function | Description |
---|---|
COSMOSDIRECTORYAPR | Retrieve blockchain APR |
COSMOSDIRECTORYBALANCE | Retrieve blockchain wallet balance |
COSMOSDIRECTORYTOTALDELEGATIONS | Retrieve blockchain validator total delegations |
COSMOSDIRECTORYVALCOMMISSION | Retrieve blockchain validator commission |