Web3 AI Chatbot & LLM

Web3 AI Chatbot & LLM

A crypto-native large language model with live on-chain data, Nansen Smart Money insights, token analytics, and support for 33+ blockchains. This is the most versatile and cost-effective product in the ChainGPT suite.

Key Facts

Endpoint

POST /chat/stream

Model

general_assistant

Cost

0.5 credits per request (1.0 with chat history enabled)

SDK

@chaingpt/generalchat

Chains

33+ supported blockchains

Response

Server-Sent Events (streaming) or buffered

What It Does

  • Answers general crypto and blockchain questions with current data

  • Retrieves live on-chain information (balances, transactions, contract state)

  • Provides Nansen Smart Money tracking and wallet analytics

  • Delivers token analytics including price, volume, market cap, and holder distribution

  • Supports conversational context via chat history

Parameters

Parameter
Type
Required
Description

model

string

Yes

Must be "general_assistant"

question

string

Yes

The user's question or prompt

chatHistory

string

No

"on" or "off" (string, not boolean). Enables conversational memory. Doubles cost to 1.0 credits. Default: "off"

sdkUniqueId

string

No

Unique session identifier for maintaining chat history across requests

useCustomContext

boolean

No

Enable custom context injection

contextInjection

string

No

Custom context to inject into the prompt. Requires useCustomContext: true

Quick Start -- JavaScript

Install the SDK:

Buffered Response

Streaming Response

With Chat History

Quick Start -- Python

Buffered Response

Streaming Response

Tips

  • Use chatHistory: "off" for one-shot questions to save credits.

  • Use sdkUniqueId to maintain separate conversation threads for different users or sessions.

  • Combine with the Crypto News product by injecting recent headlines via contextInjection for AI-analyzed market summaries.

  • The LLM already has access to live on-chain data -- you do not need to fetch and inject chain data manually.

Last updated

Was this helpful?