Integrating ChatGPT's Noteable Plugin with Chainbase API

Integrating ChatGPT's Noteable Plugin with Chainbase API

Pyours

Pyours

Chainbase Intern

With the continuous advancement of AI technology, the convenience of data processing and usage has been significantly enhanced. This guide aims to lead readers to explore how to leverage advanced AI tools to delve deeper into and analyze on-chain data. We will focus on how to integrate ChatGPT with Chainbase API to achieve efficient data retrieval, visualization, and in-depth analysis.

Most of you are probably familiar with ChatGPT. This technology has evolved to its 4.0 version, supporting a plethora of plugins with ever-expanding functionalities. In this guide, our spotlight will be on the Noteable plugin. Not only is Noteable a powerful tool for data processing and analysis, but its integration with ChatGPT also allows us to directly converse with AI, articulate our needs, and let AI efficiently carry out the tasks for us.

Note: You must upgrade to ChatGPT Plus to access the plugin features.

Setting Up ChatGPT's Noteable Plugin

Without further ado, let's dive into the hands-on section.

First and foremost, to experience the magic of the Noteable plugin, you need to activate it within ChatGPT Plus. For the specific activation steps, please refer to Get Started With the Plugin. To help you get started quickly, the link also includes practical examples of interacting with AI.

Now, we move on to the core content of this guide: how to use the Noteable plugin in ChatGPT to call the Chainbase API. You can choose to use the standard API provided by Chainbase or customize your API based on Chainbase on third-party platforms. To provide an intuitive experience, we will demonstrate using Chainbase's basic API "Get transactions by account" as an example.

1-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

(API from Chainbase documents)

Integrating Chainbase API with ChatGPT

For security and privacy reasons, ChatGPT cannot directly execute code related to external API calls. However, we can leverage the Noteable plugin to create a notebook to run such code. In this case, I chose to use the Python language for the operation.

# **Get transactions by account**
import requests

url = "https://api.chainbase.online/v1/account/txs?chain_id=1&address=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045&page=1&limit=20"

headers = {
    "accept": "application/json",
    "x-api-key": "demo"
}

response = requests.get(url, headers=headers)

print(response.text)

Here's how I converse with ChatGPT to import data.

2-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

Note: Noteable only accept a few language:

3-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

If you input code in a language other than Python, such as Java, the result will be empty in Noteable. However, don't worry about it, ChatGPT can assist you by converting and executing the task using Python code to fetch the data.

4-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

Upon opening the link, you'll see what has been done for you in Noteable.

5-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

Analyzing Data with ChatGPT and Noteable

After you've uploaded the data, you can request ChatGPT to perform additional analysis.

For instance, you might say: 'Could you execute a notebook to analyze the data above and provide charts and graphs as well as a description of trends and so on to help me understand what I can get from the data?'

In my experience, it not only offered data insights but also executed tasks as displayed in Noteable.

6-Integrating ChatGPT's Noteable Plugin with Chainbase API.png 7-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

The graph will be updated in the Noteable you previously accessed, as shown here:

8-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

Naturally, you have the option to conduct more in-depth analysis or specify more detailed requests.

You can even modify the address information I provided initially and ask specific information. It's truly intelligent!

9-Integrating ChatGPT's Noteable Plugin with Chainbase API.png

The above are just some basic operations. Next, based on your needs, you can unleash your imagination and delve into how to leverage the Noteable plugin in ChatGPT to call APIs and conduct data analysis.

Happy coding!

About Chainbase

Chainbase is an all-in-one data infrastructure for Web3 that allows you to index, transform, and use on-chain data at scale. By leveraging enriched on-chain data and streaming computing technologies across one data infrastructure, Chainbase automates the indexing and querying of blockchain data, enabling developers to accomplish more with less effort.

Want to learn more about Chainbase?

Visit our websiteĀ chainbase.com Sign up for aĀ free account, and Check out ourĀ documentation.

Websiteļ½œBlogļ½œTwitterļ½œDiscordļ½œLink3

You might also like

Chainbase Staking Infrastructure -- Stake to Empower Developer-Centric Growth
Staking

Chainbase Staking Infrastructure -- Stake to Empower Developer-Centric Growth

Chainbase has transcended its role as a data platform to become advocates and nurturers of the developer community. Actively engaged in various networks, we contribute to security through validator and sequencer technology, drive community engagement for network governance, and provide on-chain analysis for Dapps and ecosystems. The inception of Chainbase Staking Infrastructure under ChainbaseHQ represents a milestone in our Developer Adoption Journey. This initiative underscores our commitment to delivering not only data solutions but also a comprehensive support system, fostering a cohesive and supportive environment for developers.

Chainbase Staking Partners with ZetaChain: Simple, Fast, and Secure Omnichain Blockchain
Staking

Chainbase Staking Partners with ZetaChain: Simple, Fast, and Secure Omnichain Blockchain

ZetaChain is a simple, fast, and secure Omnichain Blockchain. A pioneer implementing the concept of chain abstraction, ZetaChain serves as the base-layer of the decentralized internet. With ZetaChainā€™s Omnichain Smart Contracts, developers can build truly interoperable dApps that span multiple chains from any existing blockchain from Ethereum to Bitcoin and beyond. Access all of crypto from any chain, including new blockchain innovations into the future. ZetaChainā€™s mission is to build a platform for global access, simplicity, and utility across any blockchain.

Chainbase Unveils Exciting Partnership with  Developer DAO for a Week-long Global Hackathon
Announcements

Chainbase Unveils Exciting Partnership with Developer DAO for a Week-long Global Hackathon

In an exhilarating collaboration, Chainbase is thrilled to announce a groundbreaking partnership with Developer DAO (DD) for an upcoming week-long online hackathon, scheduled from October 23 to October 30.