"use client"; import { Header, Footer } from "@/components"; import { isValidJSON } from "@/libs/constant"; import { readQuestionTableFunc } from "@/libs/TablelandFnCall"; import { ethers } from "ethers"; import Image from "next/image"; import Link from "next/link"; import { useEffect, useState } from "react"; import { FaWandMagicSparkles } from "react-icons/fa6"; export default function Home() { const [loader, setLoader] = useState(false); const [data, setData] = useState([]); const getData = async () => { setLoader(true); const res = await readQuestionTableFunc(); console.log(res); setData(res); setLoader(false); }; useEffect(() => { getData(); }, []); return (

Web3 Q&A with Bounty Rewards

Chainquery is a Web3 Q&A platform where users can ask questions and create bounties related to web3, solidity, blockchain, and more. Rewards are distributed based on votes, with the option for the question creator to allocate a main bounty. Users can also answer questions and receive main bounty payments simultaneously.

Ask AI
{loader ? ( ) : (
{data?.map( ( { address, details, question, tags, timeOfCreation, question_id }, index ) => (

{question}

{Array.isArray(tags) ? tags.map((item, index) => (
{item}
)) : ""}
) )}
more
)}
); }