跳到正文
TakoAPI
返回技能列表

stable-layer-sdk

由 k66inthesky 提供

Web & Frontend Development
558下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

A TypeScript SDK for interacting with the Stable Layer protocol on the Sui blockchain.

描述

该技能的功能

TypeScript SDK for the Stable Layer protocol on the Sui blockchain. Supports minting and burning stablecoins by depositing or redeeming USDC, and claiming yield farming rewards from vault farms.

Wraps raw Sui transaction construction into typed methods, removing the need to manually compose Move calls for minting, burning, and reward claiming.

何时使用

  • Minting BtcUSDC by depositing USDC on Sui mainnet
  • Burning stablecoins to redeem USDC
  • Claiming accumulated yield farming rewards
  • Querying total stablecoin supply across coin types
  • Integrating Stable Layer transactions into a dApp

示例工作流

输入

User asks: mint 1 USDC worth of BtcUSDC on Sui mainnet

智能体
  1. 1

    Initialize StableLayerClient with network and sender address

  2. 2

    Create a new Sui Transaction object

  3. 3

    Call buildMintTx with stableCoinType, usdcCoin reference, and amount

  4. 4

    Sign and execute the transaction via SuiClient

输出

BtcUSDC minted and deposited into vault farm, transaction result returned

前置要求

  • Sui wallet address and private key

安装

clawhub install k66inthesky/stable-layer-sdk

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接