Hire and Pay
hire_and_payOne-call shortcut to register an escrow vault AND get the ready-to-sign transaction.
This combines create_escrow_vault() + prepare_escrow() into a single call. The agent only needs to sign the returned transaction and confirm it — no manual XRPL transaction construction required.
Typical flow:
hire_and_pay() — register vault, get ready-to-sign EscrowCreate tx
Sign transaction with your wallet and submit to XRPL
confirm_escrow_transaction(escrow_id, tx_hash) — activate the vault
Worker submits work, agent calls evaluate_escrow_work() to release payment
Returns: escrow_id, transaction (ready-to-sign), condition, cancel_after_human, next_step instructions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Detailed description of what the worker must deliver. The AI referee evaluates against this — be precise. | |
| fee_hash | No | 64-char hex hash of your $0.10 payment (XRP/RLUSD/USDC) to rmcSrkpZ2i2kuvtCPeTVetee9SixP4djR. Omit to use free tier (if eligible). | |
| escrow_id | Yes | Unique receipt code for this escrow, e.g. AT-7X9K-2MQ4. Must be unique. | |
| amount_xrp | Yes | Amount of XRP to lock in escrow as the bounty. | |
| buyer_name | No | Your name or agent identifier. | |
| buyer_address | Yes | Your XRPL wallet address (r...) — you are the buyer. | |
| worker_address | Yes | XRPL address (r...) of the worker to hire directly. Get this from direct_hire() or award_job(). | |
| cancel_after_hrs | No | Hours until escrow auto-cancels if worker doesn't deliver. Default 168 = 7 days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||