Call The Trench Solana program on devnet using the public IDL and TS types.
使用此技能构建调用开发网上战壕程序的Anchor客户端。此仓库为公开仓库,仅包含IDL和TS类型(不含任何私有机器人逻辑)。
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();
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 the-trench-1776368884 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 the-trench-1776368884 技能
skillhub install the-trench-1776368884
文件大小: 1.27 KB | 发布时间: 2026-4-17 14:31