OpenAI API Blockchain Template
Template using:
Backend
- Brownie
- Solidity
- Chainlink
Frontend
- NextJS with Typescript and EsLint
- ChakraUI
Getting Started
Setup your Chainlink Node
Add Your External Adapter
Configure Your Backend
cd backendpip 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 nextyarn installAdd 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