360 Secure SkillHub
360 安全技能中心

The Trench

该 Skill 提供 The Trench Solana 程序在 devnet 上的公开 IDL 和 TS 类型,用于编写 Anchor 客户端并调用程序方法。不包含私有交易逻辑,未提供 mainnet 配置或具体 IDL/TS 文件。

bagwatcher
bagwatcher
热度 95.51
最近更新 2026-05-11 15:53:17
分类:开发依赖:代码执行 / 第三方 API / 读写文件应用场景:代码生成 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add the-trench
Metadata
name
the-trench
description
Call The Trench Solana program on devnet using the public IDL and TS types.
homepage
https://github.com/BAGWATCHER/the-trench-demo
metadata
{"openclaw":{"emoji":"🕳️"}}

The Trench Skill

Use this skill to construct Anchor clients that call The Trench program on devnet. This repo is public and contains only the IDL and TS types (no private bot logic).

Program

  • Program ID (devnet): 6fs4qcRYSdR8pd2ZPoAmLpthrqZR94Dhf6J4PLvtqQt1
  • IDL: {baseDir}/../idl.json
  • TS types: {baseDir}/../the_trench.ts

Usage (TypeScript)

import { Connection, PublicKey } from "@solana/web3.js";
import { AnchorProvider, Program } from "@coral-xyz/anchor";
import idl from "../idl.json";

const programId = new PublicKey("6fs4qcRYSdR8pd2ZPoAmLpthrqZR94Dhf6J4PLvtqQt1");
const connection = new Connection("https://api.devnet.solana.com", "confirmed");
const provider = AnchorProvider.env();
const program = new Program(idl as any, programId, provider);

// Example call
// await program.methods.listDeadToken(...).accounts({ ... }).rpc();

Notes

  • This skill does not include any private trading logic or alpha.
  • If you need mainnet, update the program ID and IDL accordingly.