{
  "schemaVersion": "1.0",
  "item": {
    "slug": "stable-layer-sdk",
    "name": "stable-layer-sdk",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/k66inthesky/stable-layer-sdk",
    "canonicalUrl": "https://clawhub.ai/k66inthesky/stable-layer-sdk",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/stable-layer-sdk",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=stable-layer-sdk",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "stable-layer-sdk",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-05T04:27:20.055Z",
      "expiresAt": "2026-05-12T04:27:20.055Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=stable-layer-sdk",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=stable-layer-sdk",
        "contentDisposition": "attachment; filename=\"stable-layer-sdk-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "stable-layer-sdk"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/stable-layer-sdk"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/stable-layer-sdk",
    "agentPageUrl": "https://openagent3.xyz/skills/stable-layer-sdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/stable-layer-sdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/stable-layer-sdk/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Stable Layer SDK",
        "body": "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."
      },
      {
        "title": "Installation",
        "body": "npm install stable-layer-sdk @mysten/sui @mysten/bcs"
      },
      {
        "title": "StableLayerClient",
        "body": "import { StableLayerClient } from \"stable-layer-sdk\";\n\nconst client = new StableLayerClient({\n  network: \"mainnet\" | \"testnet\",\n  sender: \"0xYOUR_SUI_ADDRESS\",\n});"
      },
      {
        "title": "Transaction Methods",
        "body": "buildMintTx(options)\n\nMint stablecoins by depositing USDC. Automatically deposits into vault farm.\n\nParameterTypeDescriptiontxTransactionSui transaction objectstableCoinTypestringTarget stablecoin type (e.g. 0x...::btc_usdc::BtcUSDC)usdcCoinCoinInput USDC coin referenceamountbigintAmount to mintautoTransferboolean?If false, returns the resulting Coin object\n\nbuildBurnTx(options)\n\nBurn stablecoins to redeem USDC.\n\nParameterTypeDescriptiontxTransactionSui transaction objectstableCoinTypestringStablecoin type to burnamountbigint?Specific amount to burnallboolean?If true, burn entire balance\n\nbuildClaimTx(options)\n\nClaim accumulated yield farming rewards.\n\nParameterTypeDescriptiontxTransactionSui transaction objectstableCoinTypestringStablecoin type to claim rewards for"
      },
      {
        "title": "Query Methods",
        "body": "getTotalSupply()\n\nReturns the total stablecoin supply across all coin types.\n\ngetTotalSupplyByCoinType(type: string)\n\nReturns the supply for a specific stablecoin type."
      },
      {
        "title": "Mint Stablecoins",
        "body": "import { Transaction, coinWithBalance } from \"@mysten/sui/transactions\";\nimport { SuiClient, getFullnodeUrl } from \"@mysten/sui/client\";\nimport { Ed25519Keypair } from \"@mysten/sui/keypairs/ed25519\";\nimport { StableLayerClient } from \"stable-layer-sdk\";\n\nconst client = new StableLayerClient({\n  network: \"mainnet\",\n  sender: \"0xYOUR_ADDRESS\",\n});\n\nconst suiClient = new SuiClient({ url: getFullnodeUrl(\"mainnet\") });\nconst keypair = Ed25519Keypair.fromSecretKey(YOUR_PRIVATE_KEY);\n\nconst tx = new Transaction();\nawait client.buildMintTx({\n  tx,\n  stableCoinType: \"0x6d9fc...::btc_usdc::BtcUSDC\",\n  usdcCoin: coinWithBalance({\n    balance: BigInt(1_000_000),\n    type: \"0xdba34...::usdc::USDC\",\n  })(tx),\n  amount: BigInt(1_000_000),\n});\n\nconst result = await suiClient.signAndExecuteTransaction({\n  transaction: tx,\n  signer: keypair,\n});"
      },
      {
        "title": "Burn Stablecoins",
        "body": "const tx = new Transaction();\nawait client.buildBurnTx({\n  tx,\n  stableCoinType: \"0x6d9fc...::btc_usdc::BtcUSDC\",\n  amount: BigInt(500_000),\n});\n\nawait suiClient.signAndExecuteTransaction({ transaction: tx, signer: keypair });"
      },
      {
        "title": "Claim Rewards",
        "body": "const tx = new Transaction();\nawait client.buildClaimTx({\n  tx,\n  stableCoinType: \"0x6d9fc...::btc_usdc::BtcUSDC\",\n});\n\nawait suiClient.signAndExecuteTransaction({ transaction: tx, signer: keypair });"
      },
      {
        "title": "Query Supply",
        "body": "const totalSupply = await client.getTotalSupply();\nconst btcUsdcSupply = await client.getTotalSupplyByCoinType(\"0x6d9fc...::btc_usdc::BtcUSDC\");"
      }
    ],
    "body": "Stable Layer SDK\n\nA TypeScript SDK for interacting with the Stable Layer protocol on the Sui blockchain. It supports minting and burning stablecoins, and claiming yield farming rewards.\n\nInstallation\nnpm install stable-layer-sdk @mysten/sui @mysten/bcs\n\nAPI Reference\nStableLayerClient\nimport { StableLayerClient } from \"stable-layer-sdk\";\n\nconst client = new StableLayerClient({\n  network: \"mainnet\" | \"testnet\",\n  sender: \"0xYOUR_SUI_ADDRESS\",\n});\n\nTransaction Methods\nbuildMintTx(options)\n\nMint stablecoins by depositing USDC. Automatically deposits into vault farm.\n\nParameter\tType\tDescription\ntx\tTransaction\tSui transaction object\nstableCoinType\tstring\tTarget stablecoin type (e.g. 0x...::btc_usdc::BtcUSDC)\nusdcCoin\tCoin\tInput USDC coin reference\namount\tbigint\tAmount to mint\nautoTransfer\tboolean?\tIf false, returns the resulting Coin object\nbuildBurnTx(options)\n\nBurn stablecoins to redeem USDC.\n\nParameter\tType\tDescription\ntx\tTransaction\tSui transaction object\nstableCoinType\tstring\tStablecoin type to burn\namount\tbigint?\tSpecific amount to burn\nall\tboolean?\tIf true, burn entire balance\nbuildClaimTx(options)\n\nClaim accumulated yield farming rewards.\n\nParameter\tType\tDescription\ntx\tTransaction\tSui transaction object\nstableCoinType\tstring\tStablecoin type to claim rewards for\nQuery Methods\ngetTotalSupply()\n\nReturns the total stablecoin supply across all coin types.\n\ngetTotalSupplyByCoinType(type: string)\n\nReturns the supply for a specific stablecoin type.\n\nUsage Examples\nMint Stablecoins\nimport { Transaction, coinWithBalance } from \"@mysten/sui/transactions\";\nimport { SuiClient, getFullnodeUrl } from \"@mysten/sui/client\";\nimport { Ed25519Keypair } from \"@mysten/sui/keypairs/ed25519\";\nimport { StableLayerClient } from \"stable-layer-sdk\";\n\nconst client = new StableLayerClient({\n  network: \"mainnet\",\n  sender: \"0xYOUR_ADDRESS\",\n});\n\nconst suiClient = new SuiClient({ url: getFullnodeUrl(\"mainnet\") });\nconst keypair = Ed25519Keypair.fromSecretKey(YOUR_PRIVATE_KEY);\n\nconst tx = new Transaction();\nawait client.buildMintTx({\n  tx,\n  stableCoinType: \"0x6d9fc...::btc_usdc::BtcUSDC\",\n  usdcCoin: coinWithBalance({\n    balance: BigInt(1_000_000),\n    type: \"0xdba34...::usdc::USDC\",\n  })(tx),\n  amount: BigInt(1_000_000),\n});\n\nconst result = await suiClient.signAndExecuteTransaction({\n  transaction: tx,\n  signer: keypair,\n});\n\nBurn Stablecoins\nconst tx = new Transaction();\nawait client.buildBurnTx({\n  tx,\n  stableCoinType: \"0x6d9fc...::btc_usdc::BtcUSDC\",\n  amount: BigInt(500_000),\n});\n\nawait suiClient.signAndExecuteTransaction({ transaction: tx, signer: keypair });\n\nClaim Rewards\nconst tx = new Transaction();\nawait client.buildClaimTx({\n  tx,\n  stableCoinType: \"0x6d9fc...::btc_usdc::BtcUSDC\",\n});\n\nawait suiClient.signAndExecuteTransaction({ transaction: tx, signer: keypair });\n\nQuery Supply\nconst totalSupply = await client.getTotalSupply();\nconst btcUsdcSupply = await client.getTotalSupplyByCoinType(\"0x6d9fc...::btc_usdc::BtcUSDC\");"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/k66inthesky/stable-layer-sdk",
    "publisherUrl": "https://clawhub.ai/k66inthesky/stable-layer-sdk",
    "owner": "k66inthesky",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/stable-layer-sdk",
    "downloadUrl": "https://openagent3.xyz/downloads/stable-layer-sdk",
    "agentUrl": "https://openagent3.xyz/skills/stable-layer-sdk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/stable-layer-sdk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/stable-layer-sdk/agent.md"
  }
}