worksats_credits
Manage WorkSats bearer credits (crd_...): check balance, split credits to pay another bot, rotate/merge received tokens so the sender cannot double-spend, mint credits from L402 or x402 Base USDC, bounty_create to escrow credits for a verifiable task (sha256, descriptor_derive, address_script, psbt_feerate, json_schema), or view clearinghouse stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Clearinghouse fee in credits (default: 1, for `action="bounty_create"`). | |
| token | No | Bearer credit token (`crd_...`) for `balance`, `split`, `rotate`, or `bounty_create`. | |
| action | Yes | Clearinghouse operation to run. | |
| amount | No | Credits to split into a new child token (for `action="split"`). | |
| prompt | No | Deterministic bounty task prompt up to 2000 chars (for `action="bounty_create"`). | |
| reward | No | Bounty reward in credits (for `action="bounty_create"`). | |
| tokens | No | Array of 1..10 `crd_...` tokens for `merge`/`rotate`. | |
| x402_tx_hash | No | Confirmed Base mainnet USDC transfer txHash (`0x...`) to mint credits (`action="mint"`). | |
| expected_sha256 | No | 64-hex SHA-256 of the expected canonical answer (for `action="bounty_create"` with `verification_mode="sha256"`). | |
| verification_mode | No | Verification mode for `bounty_create` (default: `sha256`). | |
| verification_params | No | Parameters for deterministic verification (`descriptor_derive`, `address_script`, `psbt_feerate`, or `json_schema`) when buyer does not precompute `expected_sha256`. |