stx

Automate STX balance checks, transfers, and Clarity contract interactions via the Hiro API.

9|43|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/aibtcdev/skills --skill stx-aibtcdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stx
Source: https://github.com/aibtcdev/skills/tree/main/stx
Command: npx skills add https://github.com/aibtcdev/skills --skill stx-aibtcdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires commander, @stacks/transactions.

What problem does it solve?

Stacks L2 operations can be complex; this skill provides a unified CLI to check STX balances, transfer STX, broadcast pre-signed transactions, and interact with Clarity contracts, all while safeguarding wallet usage through explicit unlock requirements.

Core Features & Use Cases

  • Get balance for a Stacks address (no wallet required)
  • Transfer STX to another address (wallet must be unlocked)
  • Broadcast pre-signed transactions
  • Call and deploy Clarity contracts
  • Check transaction status

Quick Start

Check your STX balance by running bun run stx/stx.ts get-balance with an address.

Frequently Asked Questions about stx

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my STX balance on Stacks L2?

Check your STX balance on Stacks L2 by querying a specific address through the Hiro API. This balance check requires no wallet unlock and returns the current STX amount for the queried Stacks address.

How do I transfer STX to another address on Stacks?

To transfer STX to another Stacks address, you must first unlock your wallet to authorize the transaction. The Skill validates transaction inputs and provides robust error handling to prevent misconfigurations during the transfer process.

Can I deploy and call Clarity contracts on Stacks L2?

Yes, you can deploy and call Clarity contracts on Stacks L2 via the Hiro API. The Skill automates contract interactions, supporting both contract deployments and function calls directly through the command line interface.

What's the best way to broadcast pre-signed Stacks transactions?

Broadcast pre-signed Stacks transactions by submitting them through the Hiro API. This Skill automates the broadcasting process and allows you to subsequently check the transaction status using the transaction identifier.

Do I need an unlocked wallet to query a Stacks address balance?

No, you do not need an unlocked wallet to query a Stacks address balance. Wallet unlocks are only enforced for executing STX transfers, contract calls, and contract deployments, while balance checks require just the address.

Why does my STX transfer fail with a wallet validation error?

STX transfers fail with wallet validation errors when the wallet remains locked or transaction inputs are misconfigured. This Skill enforces explicit wallet unlocks and robust input validation to guard against invalid Stacks L2 operations.