Setup:
Visit the Chainbase Labs Manuscript core repo on GitHub and find the manuscript-cli link to install Manuscript CLI using the automated script. Make sure your Docker engine is running.
Use Manuscript CLI:
Install manuscript-cli
Open your terminal and enter manuscript-cli
to see available commands.
Enter manuscript-cli init
to start the interactive manuscript creator.
Enter the default base directory for manuscripts, then enter your manuscript name (e.g., flare_launch).
Choose your network; for Flare, enter 9.
Select your data output target; default is Postgresql.
The system will create containers, and you can access your manuscript at localhost:8081.
Access and Explore Data:
Visit localhost:8081 in your browser to see the Apache Flink web dashboard. Initially, no jobs will be running.
After you see a new job running, access the GraphQL endpoint(localhost:8083), indicating data is being inserted into the database. Initially, it will report “no queries available.” Please close the page and reopen it.
Use manuscript-cli ls
to check if your manuscript (flare_launch) is running.
Open the GraphQL interface to explore different queries, like transaction counts in blocks.
Use a GraphQL query like this to get a list of blocks:
query myQuery {
blocks(limit: 10) {
hash
number
timestamp
transactions {
hash
}
}
}
Use tools like ChatGPT and DeepSeek to help generate GraphQL queries, specifying that you want to input the query from the terminal.
Command Line Data Access:
Use curl to access the GraphQL endpoint from the terminal. For example, to get block sizes, use this command:
curl -X POST -H “Content-Type: application/json” -d ‘{“query”:“query { blocks { size } }“}’ localhost:8081/graphql
which will streams block size data to your terminal.
Learn more with our tutorial video:
About Chainbase
Chainbase is the world’s largest omnichain data network designed to integrate all blockchain data into a unified ecosystem, providing an open and transparent data interoperability layer for the AI era.
It has designed a novel dual-consensus technology architecture that bridges the programmability and composability of crypto data, which supports high throughput, low latency, and eventual determinism, as well as higher cybersecurity through a dual staking model. With Chainbase, people can truly enjoy the benefits of the open internet era.
✸ Website: https://chainbase.com
✸ Blog: https://blog.chainbase.com
✸ Discord: https://discord.gg/chainbase
✸ Documents: https://docs.chainbase.com
✸ Twitter: https://twitter.com/ChainbaseHQ
✸ Github: https://github.com/chainbase-labs
About Flare
Flare, the blockchain for data, offers developers and users secure, decentralized access to high-integrity data from other chains and the internet.
Flare uniquely supports enshrined data protocols at the network layer, making it the only EVM-compatible Layer 1 optimized for decentralized data acquisition, including price and time-series data, blockchain event and state data, and Web2 API data.
By providing broad data access at scale and minimal cost, Flare delivers a full-stack solution for building the next generation of interoperable use cases.
Over 5k subscribers