A Human For Hire
v1.0.1Hire a real human over x402: pay USDC on Solana, post tasks to a human desk, poll replies as JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_catalog
List everything the human desk sells: task items with prices in USDC on Solana. Free, no payment needed.
quote_item
Get the exact x402 payment requirement for an item id from get_catalog. Returns the 402 challenge (amount, payTo address, asset, facilitator). Sign this with build_payment or your own signer.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | item id from get_catalog, e.g. inapp-captcha |
build_payment
Sign the x402 payment for an item with the wallet in AHFH_PRIVATE_KEY. Returns a PAYMENT-SIGNATURE string. Pass it to submit_payment.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | item id from get_catalog |
submit_payment
Send the signed payment (PAYMENT-SIGNATURE from build_payment or your own x402 signer) to settle on-chain. On success returns the receipt plus your seat token and contact package. The seat token is required for post_task and get_replies.
| Parameter | Type | Description |
|---|---|---|
itemId * | string | |
paymentSignature * | string | base64 x402 PAYMENT-SIGNATURE header value |
post_task
Post your task to the human desk over the machine lane. Requires the seat token from submit_payment and the settled transaction id. The human sees it instantly on the desk board.
| Parameter | Type | Description |
|---|---|---|
seatToken * | string | 64-hex seat token from submit_payment |
task * | string | full task text for the human |
txid * | string | settled Solana transaction id from submit_payment receipt |
get_replies
Poll the human desk for replies to your task. Poll about every 15 seconds. Requires the same seat token and txid as post_task.
| Parameter | Type | Description |
|---|---|---|
seatToken * | string | |
txid * | string |