ChainBrain is an open-source analytics platform that allows users to search and generate dashboards for any on-chain data question. With ChainBrain, users can quickly identify patterns, track trends, and discover new insights to help them optimize their strategy and operations. We are using ChatGPT to turn the users' questions into a GraphQL query that we send to various subgraphs by the Graph Protocol. We then pull in the user-requested data and display the results on the frontend. Users can connect with their crypto wallet to sign-in and save visualizations to their personal dashboards.
We indexed our own new, subgraph for the SporkDAO Token contract: https://thegraph.com/hosted-service/subgraph/marissaposner/sporkdao-token
Here is the link to the github repo: https://github.com/marissaposner/sporkdao-token-subgraph
As far as existing subgraphs, we created a submodule in our github repo to automatically update with the Messari Subgraphs (https://github.com/messari/subgraphs). We chose these subgraphs because they have a more standardized schema than other subgraphs and were easier to build an abstraction layer on top of them.
Some of the subgraphs in our demo include AAVE-Governance, Uniswap-V3, Uniswap-governance, Compound-governance, and OpenSea.
We fed each subgraph's schema and a list of example queries for each schema into ChatGPT to provide it with context for that specific subgraph and its mappings.
Example graph queries for each subgraph are defined here: https://github.com/ChainBrainStudio/ethdenver-buidlathon-2023/tree/main/backend/backend/services/openAI/prompts
Link to Live Site: https://ethdenver-buidlathon-2023.vercel.app/
Youtube Link to Demo: https://www.youtube.com/watch?v=95XT6rkgJAc&feature=youtu.be
Link to our Notion page: https://www.notion.so/ETH-Denver-2023-Hackathon-Project-40b594f5274e49148fbf9b5cae9cc213
This is split between 2 services, a frontend and a backend
Python 3.9.14
using the Python version management tool and activate that versiongit submodule update --init --recursive
to clone (or update) the subgraphs
repo in backend/
cd backend
and run the following steps:
pip install -r requirements.txt
(Install app requirements)pip install -e .
(Install the 'backend' package)flask db upgrade
flask run
Try deleting your backend/instance
folder, then flask db upgrade
to bring a new database up to
the latest app schema.
cd frontend
and then run npm install
(note if you run into any issues you can run npm install --force
)According to a report by Cambridge Center for Alternative Finance, as of Q3 2021, there were approximately 221 million verified cryptocurrency users worldwide, which represents an increase of 8% from 2020. However, this number does not include unverified users or those who use cryptocurrencies but have not gone through a verification process.
Additionally, a survey by Finder.com found that approximately 14.4% of the American population (about 46 million people) owned some form of cryptocurrency in 2021. This number has increased from 7.95% in 2018, indicating that the number of crypto users is growing rapidly.
It is also worth noting that the market capitalization of the cryptocurrency market was over $1.8 trillion as of March 2023, according to CoinMarketCap, which indicates the market's overall size and importance.
Freemium Model: ChainBrain can offer a freemium model where users can use the basic features of the tool for free with some limitations, and then upgrade to a paid subscription to access advanced features, such as the ability to save and share dashboards, more data sources, and personalized support.
Pay-per-use Model: ChainBrain can implement a pay-per-use model where users only pay for the amount of data they use or the number of dashboards they generate. This model would be particularly attractive for users who only need to analyze data occasionally, such as small businesses or individual investors.
Affiliate Marketing: ChainBrain can earn revenue by partnering with other blockchain companies and platforms and earning a commission on any purchases made by ChainBrain users through referral links. This can include exchanges, wallet providers, and other blockchain data providers.
Custom Dashboards: ChainBrain can offer custom dashboard creation services to enterprise-level clients. This can be a valuable revenue stream for ChainBrain, as businesses would be willing to pay for the ability to generate custom dashboards that meet their specific needs.
Total Addressable Market = total users * monetization rate Institutions = $75 per seat (in line with costs of web2 BI tools such as Looker or Tableau) Industry Analysts = $50 each Entrpreneurial Researchers that want to analyze the blockchain = $10 each
Some rough numbers:
1000 institutions that use our software with an average of 100 seats * $75per seat = $7.5 Million annually.
50K industry analysts * $50 per year = $2.5 Million annually.
100K entrepreneurial researchers that want to analyze the blockchain * $10 per year = $1 Million annually.
Those numbers would of course grow with the industry and wouldn't include the network benefits from the free, non-paying users.
See the open issues for a list of proposed features (and known issues).
If you want to say thank you or/and support active development:
Together, we can make ChainBrain better!
First off, thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.
Please read our contribution guidelines, and thank you for being involved!
For a full list of all authors and contributors, see the contributors page.
ChainBrain follows good practices of security, but 100% security cannot be assured. ChainBrain is provided "as is" without any warranty. Use at your own risk.
For more information and to report security issues, please refer to our security documentation.
This project is licensed under the MIT license.
See LICENSE for more information.