A Human For Hire

v1.0.1
com.ahumanforhire/ahfh Checked 3 days ago Published 21 days ago

Hire 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.

ParameterTypeDescription
itemId *stringitem 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.

ParameterTypeDescription
itemId *stringitem 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.

ParameterTypeDescription
itemId *string
paymentSignature *stringbase64 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.

ParameterTypeDescription
seatToken *string64-hex seat token from submit_payment
task *stringfull task text for the human
txid *stringsettled 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.

ParameterTypeDescription
seatToken *string
txid *string