← All skills
Tencent SkillHub Β· AI

stable-layer-sdk

A TypeScript SDK for interacting with Stable Layer on Sui blockchain, supporting minting, burning stablecoins, claiming yield rewards, and querying supply.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

A TypeScript SDK for interacting with Stable Layer on Sui blockchain, supporting minting, burning stablecoins, claiming yield rewards, and querying supply.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
README.md, SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 9 sections Open source page

Stable Layer SDK

A TypeScript SDK for interacting with the Stable Layer protocol on the Sui blockchain. It supports minting and burning stablecoins, and claiming yield farming rewards.

Installation

npm install stable-layer-sdk @mysten/sui @mysten/bcs

StableLayerClient

import { StableLayerClient } from "stable-layer-sdk"; const client = new StableLayerClient({ network: "mainnet" | "testnet", sender: "0xYOUR_SUI_ADDRESS", });

Transaction Methods

buildMintTx(options) Mint stablecoins by depositing USDC. Automatically deposits into vault farm. ParameterTypeDescriptiontxTransactionSui transaction objectstableCoinTypestringTarget stablecoin type (e.g. 0x...::btc_usdc::BtcUSDC)usdcCoinCoinInput USDC coin referenceamountbigintAmount to mintautoTransferboolean?If false, returns the resulting Coin object buildBurnTx(options) Burn stablecoins to redeem USDC. ParameterTypeDescriptiontxTransactionSui transaction objectstableCoinTypestringStablecoin type to burnamountbigint?Specific amount to burnallboolean?If true, burn entire balance buildClaimTx(options) Claim accumulated yield farming rewards. ParameterTypeDescriptiontxTransactionSui transaction objectstableCoinTypestringStablecoin type to claim rewards for

Query Methods

getTotalSupply() Returns the total stablecoin supply across all coin types. getTotalSupplyByCoinType(type: string) Returns the supply for a specific stablecoin type.

Mint Stablecoins

import { Transaction, coinWithBalance } from "@mysten/sui/transactions"; import { SuiClient, getFullnodeUrl } from "@mysten/sui/client"; import { Ed25519Keypair } from "@mysten/sui/keypairs/ed25519"; import { StableLayerClient } from "stable-layer-sdk"; const client = new StableLayerClient({ network: "mainnet", sender: "0xYOUR_ADDRESS", }); const suiClient = new SuiClient({ url: getFullnodeUrl("mainnet") }); const keypair = Ed25519Keypair.fromSecretKey(YOUR_PRIVATE_KEY); const tx = new Transaction(); await client.buildMintTx({ tx, stableCoinType: "0x6d9fc...::btc_usdc::BtcUSDC", usdcCoin: coinWithBalance({ balance: BigInt(1_000_000), type: "0xdba34...::usdc::USDC", })(tx), amount: BigInt(1_000_000), }); const result = await suiClient.signAndExecuteTransaction({ transaction: tx, signer: keypair, });

Burn Stablecoins

const tx = new Transaction(); await client.buildBurnTx({ tx, stableCoinType: "0x6d9fc...::btc_usdc::BtcUSDC", amount: BigInt(500_000), }); await suiClient.signAndExecuteTransaction({ transaction: tx, signer: keypair });

Claim Rewards

const tx = new Transaction(); await client.buildClaimTx({ tx, stableCoinType: "0x6d9fc...::btc_usdc::BtcUSDC", }); await suiClient.signAndExecuteTransaction({ transaction: tx, signer: keypair });

Query Supply

const totalSupply = await client.getTotalSupply(); const btcUsdcSupply = await client.getTotalSupplyByCoinType("0x6d9fc...::btc_usdc::BtcUSDC");

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs
  • SKILL.md Primary doc
  • README.md Docs