the-trench
Call The Trench Solana program on devnet using the public IDL and TS types.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bagwatcher/the-trenchWhat This Skill Does
The Trench skill is a specialized development utility designed for the OpenClaw AI agent to interact directly with The Trench Solana program on devnet. This skill provides the foundational interface for on-chain interactions by supplying the necessary IDL (Interface Definition Language) and TypeScript definitions for the program. It acts as a bridge, allowing the agent to programmatically construct, sign, and execute transactions against the 6fs4qcRYSdR8pd2ZPoAmLpthrqZR94Dhf6J4PLvtqQt1 program ID without requiring manual client configuration for every new session.
Installation
To integrate this skill into your environment, use the OpenClaw CLI tool. Ensure you are within your project root, then execute the following command in your terminal:
clawhub install openclaw/skills/skills/bagwatcher/the-trench
This command clones the necessary metadata and type definitions, enabling your agent to recognize the Anchor program methods and account structures associated with The Trench.
Use Cases
This skill is primarily intended for developers and power users looking to automate on-chain actions within the Solana ecosystem. Key use cases include:
- Automated program interactions: Executing transactions like
listDeadTokenas part of a scheduled bot routine. - Protocol Testing: Facilitating rapid prototyping on devnet by enabling an AI agent to handle the boilerplate of Anchor client creation.
- Data Fetching: Using the injected IDL to read current account states and program variables for analysis before initiating trades.
- Workflow Automation: Chaining this skill with other OpenClaw skills to respond to on-chain events by triggering specific contract functions.
Example Prompts
- "OpenClaw, use The Trench skill to initialize a new listDeadToken transaction with the provided token account and current devnet environment settings."
- "Can you fetch the current state of the program accounts using the Trench IDL and summarize the active listings?"
- "Construct and propose an Anchor transaction for the Trench program to interact with the specified market pair on devnet."
Tips & Limitations
- Safety First: This skill is configured for devnet. Do not attempt to bridge this logic to mainnet without updating the program ID and the corresponding IDL/TS types in your configuration.
- Scope: This skill contains purely functional interface code. It does not possess any internal 'alpha' or trading strategies; you must provide the logic for when and why to trigger these functions.
- Environment: Ensure your
AnchorProvideris correctly configured in your local environment, as the skill relies on the provider's wallet to sign transactions. - Maintenance: Periodically check for updates in the
openclaw/skillsrepository to ensure your local IDL remains compatible with the latest program deployments.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bagwatcher-the-trench": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, code-execution