Getting Started

Installation

To install the SDK, follow the instructions, follow the steps below

  1. Create an application in Node.

  2. Open terminal in Linux-based operating system and command prompt in Windows.

  3. Run the following commands.

npm install --save @chaingpt/smartcontractauditor
# or
yarn add smartcontractgenerator

Configuration

Credits System

Users must start by getting credits on the web app, https://app.chaingpt.org/. These credits will allow users to create API keys and access SDK. Credits will be deducted from each request made using SDK.

Setup API Key

Generating API Key: Utilize the ChainGPT API SDK for authentication. In the web application, navigate to the API Dashboard and use the 'Create Secret Key' feature to generate and copy your API key.

Secret key feature and copy.

Securing API Key:

  • It is crucial to secure your API keys to control access effectively.

  • Avoid exposing the API keys in your code or public repositories.

  • Store them in a secure location, and use environment variables or a secret management service to expose them to your application.

  • This method ensures you do not need to hard-code them in your codebase, enhancing security.

Pricing

Stream Response

  1. On sending each chat API request, 5 Credits will be deducted from the user account in WebApp.

  2. In addition, if the user enables the chat history feature, an additional 1 Credit will be deducted.

Blob Response

  1. On sending each API request, 5 Credits will be deducted from the user account in WebApp.

  2. In addition, if the user enables the chat history feature, an additional 1 Credit will be deducted.

Get Chat History

  1. Since the user has already enabled the chat history feature while calling the stream/blob response chat API, no additional credits will be deducted for the Get credit history API.

Users can monitor and manage their credit usage via the Webapp, aligning with ChainGPT's user-centric approach to accessibility and transparency in service provision.

For additional details or to manage your credits, users should visit the ChainGPT Webapp.

Support

For additional assistance, refer to Discord - https://discord.gg/chaingpt

Disclaimer

Last updated

Logo

ChainGPT.org