一键导入
usdd-just-protocol
USDD stablecoin operations — PSM swaps (buyGem/sellGem), vault position queries, and balance checks via the JUST Protocol on TRON.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
USDD stablecoin operations — PSM swaps (buyGem/sellGem), vault position queries, and balance checks via the JUST Protocol on TRON.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Execute token swaps, manage liquidity, and query market data on SunSwap DEX via the sun-cli.
Create meme tokens on SunPump (`sun sunpump launch`), trade them — both pre-launch (bonding curve via `sun sunpump buy/sell`) and post-launch (SunSwap via `sun swap`) — and query token info, rankings, holders, portfolios, and trade history.
Pay for x402-enabled Agent endpoints using ERC20 tokens (USDT/USDC) on EVM or TRC20 tokens (USDT/USDD) on TRON.
Use when the user asks to generate an X/Twitter daily digest or says phrases such as "生成X日报", "生成 x 日报", "X日报", "推特日报", "Twitter digest", or wants an agent to analyze their own X/Twitter mentions, home timeline, reply opportunities, and daily social-media summaries. This skill is API-only.
Use when the user wants to install or authorize xurl for X/Twitter, generate "生成X日报", "X日报", "推特日报", or "Twitter digest" from the local xurl CLI, or optionally register/troubleshoot the hosted X MCP bridge.
BANK OF AI account query and recharge skill. Use for requests like 'recharge 1 usdt', '给 BANK OF AI 充值 1 USDT', or to query BANK OF AI balance/orders. Recharge uses the remote MCP endpoint https://recharge.bankofai.io/mcp with the single `recharge` tool.
| name | USDD / JUST Protocol |
| description | USDD stablecoin operations — PSM swaps (buyGem/sellGem), vault position queries, and balance checks via the JUST Protocol on TRON. |
| version | 1.0.0 |
| dependencies | ["node >= 18.0.0","tronweb"] |
| tags | ["defi","stablecoin","tron","usdd","vault","cdp","just","psm"] |
Interact with USDD, TRON's over-collateralized stablecoin, via the JUST Protocol. Swap USDT for USDD at 1:1 through the Peg Stability Module (PSM), query vault (CDP) positions and protocol parameters, and check token balances.
cd usdd-skill && npm install
export TRON_PRIVATE_KEY="<your-private-key>"
export TRON_NETWORK="mainnet"
[!CAUTION] Never display or log the private key.
psm-swap.js — Buy/Sell USDT via PSM (1:1, Zero Fee)node scripts/psm-swap.js sell 1000 --dry-run # Preview: 1000 USDT -> 1000 USDD
node scripts/psm-swap.js sell 500 # Execute: sell 500 USDT for USDD
node scripts/psm-swap.js buy 1000 --dry-run # Preview: spend USDD -> 1000 USDT
node scripts/psm-swap.js buy 250 # Execute: buy 250 USDT with USDD
sell <amount>: Sell USDT to PSM, receive USDD 1:1buy <amount>: Buy USDT from PSM, spend USDD 1:1buyGem/sellGem PSM interface (not the router)[!NOTE] PSM fees (
tin/tout) are currently 0%. Usepsm-info.jsto verify current fees.
Output: action, direction, amount_usdt, status, tx_id, needs_approval
psm-info.js — PSM State (Read-Only)node scripts/psm-info.js
No private key required. Shows PSM fees (tin/tout), USDT reserves held by the GemJoin, and USDD total supply.
Output: fees (tin, tout, percentages), reserves (usdt_available), usdd (total_supply)
balance.js — Check Token Balancesnode scripts/balance.js
node scripts/balance.js --address TXYzL2gqz5AB4dbGeiX9h8unkKHxuWwb
Queries balances for USDD, USDT, USDC, TRX, and JST. Uses --address for read-only lookups (no private key needed).
Output: wallet, balances[] (symbol, balance, address)
vault-info.js — Vault Positions & Parameters (Read-Only)node scripts/vault-info.js # All vault types
node scripts/vault-info.js --vault TRX-A # Specific vault type
node scripts/vault-info.js --cdp 42 # Specific CDP position
No private key required. Queries the Vat and DssCdpManager for vault parameters and individual CDP positions.
Without --cdp: shows global parameters per vault type (total debt, rate, spot price, debt ceiling, dust).
With --cdp <id>: shows a specific CDP's collateral locked, debt, and collateralization ratio.
Output (global): vaults[] (name, total_debt_usdd, rate, spot, debt_ceiling_usdd)
Output (CDP): cdp_id, owner, collateral_locked, actual_debt_usdd, collateralization_ratio
node scripts/psm-info.js # Check PSM reserves and fees
node scripts/psm-swap.js sell 1000 --dry-run # Preview swap
node scripts/psm-swap.js sell 1000 # Execute: 1000 USDT -> 1000 USDD
node scripts/balance.js # Check USDD balance
node scripts/psm-swap.js buy 500 --dry-run # Preview redemption
node scripts/psm-swap.js buy 500 # Execute: spend USDD -> 500 USDT
node scripts/vault-info.js # View all vault type parameters
node scripts/vault-info.js --cdp 42 # Check specific CDP position
| Name | Collateral | GemJoin Address | Stability Fee |
|---|---|---|---|
| TRX-A | TRX | TJ1VWPvFVq7sVsN7J7dWJVZz4SLT14qRUr | 5% |
| TRX-B | TRX | TGQKnHDQNyc3QeHJ7YxH8wggdg89UVXyvX | 5% |
| TRX-C | TRX | TPUPPLTYLdbW4jxwD5g2T7ystxsR9HL2mt | 5% |
| sTRX-A | sTRX | TKha7zcAXZMaaWzoVmUHtvVFqr9GeiChgJ | 1% |
| USDT-A | USDT | TDUkQbjrXs6xUbxGCLknWwJHxVTdysXBhy | 0% |
| Contract | Address | Description |
|---|---|---|
| USDD Token (v2) | TXDk8mbtRbXeYuMNS83CfKPaYYT8XWv9Hz | USDD TRC20 (18 decimals) |
| UsddPsm | TBXW4hS5KYjjbJXDpnrPf4zhkLwrpUjbyz | PSM — buyGem/sellGem for 1:1 swaps |
| PSM GemJoin | TSUYvQ5tdd3DijCD1uGunGLpftHuSZ12sQ | PSM USDT collateral adapter (sellGem: approve USDT here) |
| UsddJoin | TUajR7CbXU6hX8n3XtNkitFAD25JvP99K6 | USDD join adapter (buyGem: approve USDD here) |
| DssCdpManager | TDDWjmQaquEtUn1Pa8wCd8dfWFPdQLGPYL | CDP management (open, frob, flux) |
| Vat | TH5dhX7o39afSbfDT2e3c9k4itWjNKD4D9 | Core accounting engine |
| USDT Token | TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t | USDT TRC20 (6 decimals) |
| JST Token | TCFLL5dx5ZJdKnWuesXxi1VPwjLVmWZZy9 | JUST governance token (18 decimals) |
| Problem | Solution |
|---|---|
Unknown token | Use USDD, USDT, USDC, TRX, or JST |
Insufficient balance | Check wallet balance with balance.js before swapping |
| PSM swap fails | PSM may be depleted — check reserves with psm-info.js |
Unknown vault | Use TRX-A, TRX-B, TRX-C, sTRX-A, or USDT-A |
Unknown network | Set TRON_NETWORK to mainnet, nile, or shasta |
| Vault shows all zeros | The ilk may not be active on this network, or the CDP ID does not exist |
Version 1.0.0 — Created by M2M Agent Registry for Bank of AI