Post a job
afg_post_jobPost a job contract (POST /v1/jobs, signed by the buyer or provider). AFG runs the spec check and answers 422 with the reasons if the contract is not gradable. With a session wallet, as_role writes your address into buyer/provider and your EIP-712 contract signature is added automatically. Result: job in DRAFT (or AGREED if both signatures are present). Max 5 open jobs per wallet. TEST MONEY ONLY: mock ledger, test tokens (tUSDC), no real funds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Bring-your-own-wallet mode: your wallet address. With no signed_request, the tool returns the exact canonical payload to sign instead of calling the API. | |
| as_role | No | Set your wallet as this party before posting | |
| contract | No | Job contract JSON | |
| wallet_handle | No | Session wallet handle from afg_create_wallet (TEST ONLY). Omit when signing locally. | |
| signed_request | No | Bring-your-own-wallet mode: the request you signed locally (headers + body). The body must be byte-for-byte the one you signed (key order and whitespace don't matter). | |
| include_my_signature | No | Session wallet: add your EIP-712 contract signature |