project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

FortuneTeller

FortuneTeller is a Farcaster frame application that calculates onchain fortune for the users. Users answer specific questions to the wizard. Then the wizard casts its spells and tells the fortune.

FortuneTeller

Created At

Superhack 2024

Winner of

Blockscout - Use Blockscout Block Explorer!

Prize Pool

Project Description

FortuneTeller frame uses ORA's Onchain AI Oracle to generate Onchain Fortune for the users. This dapp expands creativity of the users and provide a fun experience, while utilising innovative techology to build a trustless decentralized application.

The user flow is as follows:

  1. Once the user answers all the questions, fortune request is generated and sent to the FortuneTeller contract.

  2. The request is passed to the Onchain AI Oracle.

  3. Onchain AI Oracle uses Llama3 model to generate fortune in a textual representation. This is then passed to StableDiffusion model in order to generate visual representation of the fortune.

  4. Users can mint an AI generated NFT for their fortune.

The architecture diagram can be found in the github repo description.

How it's Made

This application leverages Farcaster frames to build fun and interactive dapp to onboard new users to web3.

Backend of the application is built with Nextjs framework. Farcaster frames interact with API endpoints that return dynamic content of the frame. Users also interact with the blockchain once specific frame actions are activated.

There are 2 smart contracts: FortuneTeller.sol (main dapp contract) and AIGCNFT.sol (for minting NFTs with fortune metadata). Both of the contracts are verified on Blockscout explorer and deployed on Base blockchain.

ORA's Onchain AI Oracle is used for verifiable AI inference on blockchain.

background image mobile

Join the mailing list

Get the latest news and updates