Minimal skill for agents that query Maestro Bitcoin APIs directly using the current SIWX + JWT + x402 credit purchase flow.
Published on ClawHub: https://clawhub.ai/Vardominator/maestro-skill
- Direct HTTP usage of Maestro endpoints.
- Mainnet-first policy for production intent (
eip155:1, optionaleip155:8453fallback by user approval). - Client flow based on SIWX challenge, JWT session, and range-based credit purchases.
- Call endpoint without auth.
- Receive
402withaccepts+extensions.sign-in-with-x. - Sign SIWX and retry with
Sign-In-With-X. - Receive JWT (
Authorization) and402purchase guidance. - Choose a purchase amount in range, sign ERC-3009 authorization, retry with
Authorization+X-PAYMENT. - On success, read response plus credit headers (
X-Credits-Remaining,X-Credit-Cost,X-Credits-Purchased) andPayment-Responsewhen present.
Authorization: New JWT after successful SIWX auth.X-Credits-Remaining: Remaining credits after a successful charged request.X-Credit-Cost: Credits consumed by the request path.X-Credits-Purchased: Credits added by payment on that request (purchase path only).Payment-Response: Settlement metadata (base64 JSON), typically includes tx hash.
Outcome expectations:
200with existing credits:X-Credits-Remaining+X-Credit-Cost.200with purchase: addsX-Credits-Purchased+Payment-Response.402insufficient credits: usually noX-Credits-*; body containsaccepts.402SIWX expired/invalid message: fresh challenge (accepts+extensions.sign-in-with-x).401SIWX nonce expired/replayed: error JSON, no credit headers.
- Base credit cost:
$0.000025per credit. - Minimum purchase:
$0.10(4,000credits) - Maximum purchase:
$50.00(2,000,000credits)
Common examples:
$1.00->40,000credits$5.00->200,000credits$10.00->400,000credits
- Wallet signer access (
PRIVATE_KEYor CDP Agent Wallet) - USDC + ETH gas on the selected network