Commands
1. npm run askfraus {agentName} {yourQuestion}
This command allows you to ask a specific question to an AI agent deployed using the FrausAI framework.
Usage:
npm run askfraus Aura "What is the latest trend in AI?"
Description:
{agentName}
: The name of the deployed agent.{yourQuestion}
: The question you want to ask the agent.
Example Output:
Agent Aura: "The latest trend in AI is the use of large language models like GPT for various ap
2. npm run deployfraus
This command deploys a new token or agent on the Solana blockchain using the configuration provided in defineAgent.ts
.
Usage:
npm run deployfraus
Steps Before Running:
Update
defineAgent.ts
with your agent's details (name, symbol, description, etc.).Ensure your
.env
file contains the required private key for deployment.
Example Output:
plaintextCopy codeDeploying agent...
Transaction successful!
✅ Transaction Signature: xx..xxxxxx
🔗 View on SolScan: https://solscan.io/tx/xxx.xxxx.xxx
3. npm run interactfraus {agent_name} ask "Your question"
This command enables you to interact with a deployed agent by asking complex questions.
Usage:
npm run interactfraus Aura ask "What are the top 10 trending tokens?"
Example Output:
Agent Aura: "The top 10 trending tokens are SOL, ETH, BTC, etc."
4. npm run fraus-trade {agent_name}
This command performs trade actions like buying or selling tokens associated with a deployed agent.
Usage:
npm run fraus-trade MyAgent
Description:
Initiates trade actions using the agent's configurations in the
.env
file.Actions like "buy" or "sell" are defined in the
.env
file underACTION
.
Example Output:
Trade action: Buy
Token: SOL
Amount: 100
Transaction successful!
5. npm run interactfraus Fraus ask "Trending token 24h"
This command asks the agent to fetch trending tokens over the last 24 hours.
Usage:
npm run interactfraus Fraus ask "Trending token 24h"
Example Output:
Agent Fraus: "The trending tokens in the last 24 hours are SOL, DOGE, ADA."
6. npm run interactfraus Aura ask "Top holders: {mintAddress}"
This command retrieves the top holders of a specific token.
Usage:
npm run interactfraus Aura ask "Top holders: So11111111111111111111111111111111111111112"
Example Output:
Agent Aura: "The top holders of the token are:
1. Wallet 1: 500 tokens
2. Wallet 2: 300 tokens
3. Wallet 3: 200 tokens"
7. npm run interactfraus Aura ask "Marketcap count:50 term:\"pump\""
This command fetches market capitalization data for tokens matching a specific term.
Usage:
npm run interactfraus Aura ask "Marketcap count:50 term:\"pump\""
Description:
count:50
: Specifies the number of tokens to return.term:"pump"
: Filters tokens containing the term "pump" in their metadata.
Example Output:
Agent Aura: "Market capitalization data for tokens matching 'pump':
1. PumpToken: $10,000,000
2. PumpItUp: $7,500,000"
8. npm run interactfraus {agentName} ask "First top {count} buyers for: {mintAddress}"
This command fetches the top buyers for a specific token.
Usage:
npm run interactfraus Aura ask "First top 5 buyers for: So11111111111111111111111111111111111111112"
Description:
{count}
: Specifies the number of buyers to return.{mintAddress}
: The token's mint address.
Example Output:
Agent Aura: "The top 5 buyers for the token are:
1. Wallet 1: Bought 100 tokens
2. Wallet 2: Bought 80 tokens
3. Wallet 3: Bought 70 tokens
4. Wallet 4: Bought 60 tokens
5. Wallet 5: Bought 50 tokens"
Last updated