The Trench — 战壕
v0.1.0使用公共IDL和TS类型在devnet上调用The Trench Solana程序。
运行时依赖
安装命令
点击复制技能文档
使用 Trench Skill 此技能用于构造在 devnet 上调用 The Trench 程序的 Anchor 客户端。该仓库是公开的,仅包含 IDL 和 TS 类型(无私有 bot 逻辑)。 程序 程序 ID(devnet):6fs4qcRYSdR8pd2ZPoAmLpthrqZR94Dhf6J4PLvtqQt1 IDL:{baseDir}/../idl.json TS 类型:{baseDir}/../the_trench.ts 使用方法(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); // 示例调用 // await program.methods.listDeadToken(...).accounts({ ... }).rpc(); 注意 此技能不包含任何私有交易逻辑或 alpha。如果需要 mainnet,请相应地更新程序 ID 和 IDL。