dapplooker-sdk

所属分类:Web3.0
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-07-19 11:44:07
上 传 者sh-1993
说明:  通过编程访问Web3.中最可靠和最全面的区块链数据。,
(Programmatic access to the most reliable & comprehensive blockchain data in Web3.,)

文件列表:
go/ (0, 2023-10-12)
go/dapplooker/ (0, 2023-10-12)
go/dapplooker/chartConstants.go (334, 2023-10-12)
go/dapplooker/dapplookerCharts.go (2578, 2023-10-12)
go/go.mod (27, 2023-10-12)
java/ (0, 2023-10-12)
java/pom.xml (580, 2023-10-12)
java/src/ (0, 2023-10-12)
java/src/main/ (0, 2023-10-12)
java/src/main/java/ (0, 2023-10-12)
java/src/main/java/org/ (0, 2023-10-12)
java/src/main/java/org/dapplooker/ (0, 2023-10-12)
java/src/main/java/org/dapplooker/ChartConstants.java (277, 2023-10-12)
java/src/main/java/org/dapplooker/DappLookerChartsAPI.java (2919, 2023-10-12)
python/ (0, 2023-10-12)
python/dapplooker/ (0, 2023-10-12)
python/dapplooker/__init__.py (51, 2023-10-12)
python/dapplooker/chart_constants.py (440, 2023-10-12)
python/dapplooker/dapplooker_charts.py (2841, 2023-10-12)
python/dapplooker/interface.py (725, 2023-10-12)
python/setup.py (900, 2023-10-12)
typescript/ (0, 2023-10-12)
typescript/.assets/ (0, 2023-10-12)
typescript/.assets/APIEndpoints.png (106843, 2023-10-12)
typescript/.assets/APIPage.png (289327, 2023-10-12)
typescript/.assets/AddKey.png (329205, 2023-10-12)
typescript/.assets/chartPageAPI.png (113391, 2023-10-12)
typescript/.assets/copyAPIKey.png (80165, 2023-10-12)
typescript/.assets/generateKey.png (61721, 2023-10-12)
typescript/index.ts (68, 2023-10-12)
typescript/package.json (974, 2023-10-12)
typescript/src/ (0, 2023-10-12)
typescript/src/chart/ (0, 2023-10-12)
... ...

DL logo

Get free blockchain analytics for Smart Contract, Subgraph, Defi, NFT, and Gaming dApps. Analyze and query on-chain and off-chain web3 data from Ethereum, Polygon, TheGraph, Celo, Polkadot, NEAR with our no-code dashboard..

Introduction

What is DappLooker?

DappLooker is a no-code multi-chain community-driven analytics and visualization platform for blockchain networks and Dapps. Users can run Visual SQL queries on blockchain data, using easy to use simple editor. Charts and dashboards can be forked, edited, and shared with the community. DappLooker aims to empower everyone to easily understand blockchain data, do analytics and easily build beautiful charts and dashboards. You can build and share key metrics for Defi, NFT, gaming, and multi-chain protocols.

### What We Do ? DappLooker is a Web3 analytics platform that is dedicated to making blockchain analytics accessible and simplified for everyone. Our goal is to provide a seamless and user-friendly experience With our intuitive, no-code platform, you can effortlessly analyze blockchain networks and Dapps. Our No-code interface allows you to create stunning charts and dashboards, enabling you to visualize and understand complex blockchain data without the need for coding skills.

Welcome to the GitHub profile for DappLooker

Read our comprehensive [documentation](https://docs.dapplooker.com) to learn how to start building with DappLooker. # DappLooker SDK The dapplooker-sdk provides developers with programmatic access to reliable and comprehensive blockchain data in the Web3 environment. By integrating the DappLooker SDK, you can easily retrieve popular charts data for your decentralized applications (Dapps). > #### Node version: >=14 ## Installation To start using the DappLooker SDK, follow these steps: #### 1. Install the SDK: ```bash npm install dapplooker-sdk ``` #### 2. Generate an API key: - Create an account on the [DappLooker website](https://dapplooker.com/). - After signing up, navigate to the [API keys](https://dapplooker.com/user/api) page. ![img.png](https://d2yxqfr8upg55w.cloudfront.net/npm-package-images/APIPageHighlighted.png) - Click on `+ API Key`. ![img.png](https://d2yxqfr8upg55w.cloudfront.net/npm-package-images/AddKey.png) - Provide a name for your API key and click on `Generate Key`. ![img.png](https://d2yxqfr8upg55w.cloudfront.net/npm-package-images/generateKey.png) - Copy your API key for future use. ![img.png](https://d2yxqfr8upg55w.cloudfront.net/npm-package-images/copyAPIKey.png) #### 3. Get Your Chart UUID - Visit the [DappLooker Analytics Website](https://analytics.dapplooker.com/) - Create a new Chart or Open a Existing Created Chart ![ChartImage.png](https://d2yxqfr8upg55w.cloudfront.net/npm-package-images/ChartImage.png) - Click on the `API` Button ![img.png](https://d2yxqfr8upg55w.cloudfront.net/npm-package-images/chartAPIButton.png) - Get the UUID of your chart from Endpoint of the chart API. ![img.png](https://d2yxqfr8upg55w.cloudfront.net/npm-package-images/chartUUID.png) #### 4. Import the SDK Once you have installed the SDK, import it into your project. With the imported SDK, create an instance of the DappLookerChartsAPI and make API calls using the API key and chart UUID obtained in the previous steps. ### Examples Here's an example of how you can use the DappLooker SDK: ```javascript //Javascript const DappLookerChartsAPI = require("dapplooker-sdk"); async function getChartData() => { let chartUUID = "dc9b69d8-7ca1-45d4-8ad0-a17f915f3f0"; // Replace it with chart UUID you are working with let apiKey = "qzusb5p3q246ip246ab6g0p8ppzb7u"; // Replace it with your API key let outputFormat = 'json' // This is a optional argument, valid value is `json`. let response = await DappLookerChartsAPI.getChartData(chartUUID, apiKey, outputFormat); console.log("Chart API Data: ", JSON.stringify(response)); }; getChartData(); > Output (With outputFormat value as json): /*[ {"Day Timestamp":"2023-02-26","Sum of Attestation Requested Count":3.0,"Sum of Attestation Completed Count":0.0,"Success Percentage":0.0,"Failure Percentage":100.0}, {"Day Timestamp":"2023-03-05","Sum of Attestation Requested Count":16.0,"Sum of Attestation Completed Count":2.0,"Success Percentage":12.5,"Failure Percentage":87.5}, {"Day Timestamp":"2023-05-14","Sum of Attestation Requested Count":3.0,"Sum of Attestation Completed Count":0.0,"Success Percentage":0.0,"Failure Percentage":100.0} ]*/ > Output (Without outputFormat): /*{ "rows": [["2023-02-26T00:00:00Z"]], "cols": [{ "description": null, "semantic_type": null, "table_id": 872 }], "insights": [{ "previous-value": 9}], "results_timezone": "GMT" }*/ ``` The DappLooker SDK also provides TypeScript support for developers who prefer type-checking and enhanced code editor features. ```jsx //Typescript import { DappLookerChartsAPI } from "dapplooker-sdk"; const getChartData = async () => { let chartUUID = "dc9b69d8-7ca1-45d4-8ad0-a17f915f3f0"; // Replace it with chart UUID you are working with let apiKey = "qzusb5p3q246ip246ab6g0p8ppzb7u"; // Replace it with your API key let outputFormat = 'json' // This is a optional argument, valid value is `json`. let response = await DappLookerChartsAPI.getChartData(chartUUID, apiKey, outputFormat); console.log("Chart API Data: ", JSON.stringify(response)); }; getChartData(); > Output (With outputFormat value as json): /*[ {"Day Timestamp":"2023-02-26","Sum of Attestation Requested Count":3.0,"Sum of Attestation Completed Count":0.0,"Success Percentage":0.0,"Failure Percentage":100.0}, {"Day Timestamp":"2023-03-05","Sum of Attestation Requested Count":16.0,"Sum of Attestation Completed Count":2.0,"Success Percentage":12.5,"Failure Percentage":87.5}, {"Day Timestamp":"2023-05-14","Sum of Attestation Requested Count":3.0,"Sum of Attestation Completed Count":0.0,"Success Percentage":0.0,"Failure Percentage":100.0} ]*/ > Output (Without outputFormat): /*{ "rows": [["2023-02-26T00:00:00Z"]], "cols": [{ "description": null, "semantic_type": null, "table_id": 872 }], "insights": [{ "previous-value": 9}], "results_timezone": "GMT" }*/ ``` By integrating the dapplooker-sdk into your Dapp, you can easily access and utilize the most reliable and comprehensive blockchain data in the Web3 environment. Start exploring the possibilities and enhancing your decentralized applications with DappLooker SDK today! ## Resources - **[Website](https://dapplooker.com/)** To checkout our Product. - **[Docs](https://docs.dapplooker.com)** For comprehensive documentation. - **[Medium](https://dapplooker.medium.com/)** To learn more about our partners, new launches, etc. - **[GitHub](https://github.com/dapplooker/)** for source code, project board, issues, and pull requests. - **[Youtube](https://www.youtube.com/channel/UC1KJmtb3UhnWSN_sDv71_fg)** Subscribe to our YouTube channel for video tutorials, demos, and informative content. ## Contributing We invite you to become a valued member of the DappLooker community, an open-source project committed to transparency in our development process. We appreciate any contributions you can make, whether it's helping us identify and fix bugs, suggesting new features, improving our documentation, or spreading the word about DappLooker. If you come across any errors or issues while using DappLooker, please take a moment to create a bug report. Your feedback is invaluable in improving the reliability. We also value the importance of comprehensive documentation. If you find any gaps or areas that need improvement in our documentation, please don't hesitate, Your suggestions will enable us to provide better resources for our users. If you're unsure where to begin or need assistance, we invite you to join our Discord community. We'll be more than happy to help you get started on your journey with DappLooker. ## Social Links Follow us to stay updated with the latest news and updates! Discord | Twitter | Telegram | Linkedin

近期下载者

相关文件


收藏者