Superteam Earn
Guide to use superteam earn tool on your AI agent using Vity Toolkit
Superteam Earn allows developers, designers, and everyone else to find earning opportunities in Web3. Complete an on-chain bounty and receive a Proof of Work NFT to start building your on-chain resume.
Quick Start
Initialize Vity Toolkit and Langchain.
import { ChatOpenAI } from "@langchain/openai";
import { App, LangchainToolkit } from "vity-toolkit";
import { createOpenAIFunctionsAgent, AgentExecutor } from "langchain/agents";
import { ChatPromptTemplate } from "@langchain/core/prompts";
const llm = new ChatOpenAI({ model: "gpt-4o" });
const toolKit = new LangchainToolkit({
userPrivateKey: "<private_key>",
});
Define the Agent.
const prompt = ChatPromptTemplate.fromMessages([
["system", "You are a helpful assistant"],
["placeholder", "{chat_history}"],
["human", "{input}"],
["placeholder", "{agent_scratchpad}"],
]);
const agent = await createOpenAIFunctionsAgent({
llm,
tools,
prompt,
});
const agentExecutor = new AgentExecutor({ agent, tools, verbose: true });
Supported Actions
Action.EARN_ACTIVITY_FEED
Get list of activities feed of users in superteam earn, like if someone submitted a bounty or added a new project in this profile, and much more.
Action.EARN_FETCH_FEED
Fetches feed for a type (submission, pow, grant-application) and feed ID from Superteam Earn. It gives submission details with relative more submissions to the listing/bounty.
Action.EARN_FETCH_GRANT_DETAILS
Fetches the grant details based on the provided slug.
Action.EARN_FETCH_EXCLUSIVE_SPONSOR_GRANTS
Fetches grants associated with exclusive sponsor in Superteam Earn.
Action.EARN_FETCH_USER_POWS
Fetches Proofs of Work (PoWs) for a specific user based on the provided user ID from Superteam Earn.
Action.EARN_BOUNTY_LISTINGS
Fetches all the bounty listings based on various filters and criteria from the Superteam Earn homepage.
Action.EARN_GRANT_LISTINGS
Fetches list of grants based on user region and other criteria from Superteam Earn.
Action.EARN_SEARCH_USERS
Searches for user's details based on a query string, that can be a username, first name, or last name from the Superteam Earn homepage.
Action.EARN_SUBMISSION_DETAILS
Fetches details of a specific submission based on the provided submission ID from the Superteam Earn homepage.
Action.EARN_TOTAL_USER_COUNT
Fetches the total user count from the Superteam Earn.
Action.EARN_FETCH_USER_PUBLIC_STATS
Fetches public statistics for a user like participations, wins and totalWinnings (amount) he/she won, based on the provided username from the Superteam Earn.
Last updated