返回顶部
t

the-trench调用战壕程序

Call The Trench Solana program on devnet using the public IDL and TS types.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
1,483
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

the-trench

战壕技能

使用此技能构建调用开发网上战壕程序的Anchor客户端。此仓库为公开仓库,仅包含IDL和TS类型(不含任何私有机器人逻辑)。

程序

  • - 程序ID(开发网):6fs4qcRYSdR8pd2ZPoAmLpthrqZR94Dhf6J4PLvtqQt1
  • IDL:{baseDir}/../idl.json
  • TS类型:{baseDir}/../the_trench.ts

使用方法(TypeScript)

ts 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();

注意事项

  • - 此技能包含任何私有交易逻辑或内幕信息。
  • 如需使用主网,请相应更新程序ID和IDL。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 the-trench-1776368884 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 the-trench-1776368884 技能

通过命令行安装

skillhub install the-trench-1776368884

下载

⬇ 下载 the-trench v0.1.0(免费)

文件大小: 1.27 KB | 发布时间: 2026-4-17 14:31

v0.1.0 最新 2026-4-17 14:31
Initial release of The Trench skill.

- Allows construction of Anchor clients for The Trench Solana program on devnet.
- Provides public access to the program's IDL and TypeScript types.
- Contains usage instructions and example code for integration.
- No private trading logic or sensitive information included.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部