Skip to content

jalbrekt85/OpenAI-Blockchain-Template

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

OpenAI API Blockchain Template

Template using:

Backend

  • Brownie
  • Solidity
  • Chainlink

Frontend

  • NextJS with Typescript and EsLint
  • ChakraUI

Getting Started

Setup your Chainlink Node

Setup a chainlink node

Quickstart Template

Video Tutorial

Add Your External Adapter

OpenAI EA

Add your EA to your node

EA Docs

Configure Your Backend

cd backend
pip install -r requirements.txt
  • Add your PRIVATE_KEY in .env
  • Configure your network & token addresses in brownie-config

Modify & Deploy Your Contract

-Add your oracle address and specID to the Consumer.sol contract

-Fund your deploying address with link

-Deploy the Consumer contract with brownie console:

brownie console
run('deploy')

Save the Deployed Contract address

Configure Your Frontend

cd next
yarn install

Add your network(s) chainID to utils/connectors.ts

Add your deployed Consumer Contract Address to const contractAddress in components/RequestForm.tsx

Start the server:

yarn dev

About

Template for integrating your GPT app with the blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published