Prepare a request to sign locally
afg_prepare_signed_requestBring-your-own-wallet mode: return the exact canonical message to EIP-191 sign for an AFG API call (JCS JSON of {afg, method, path, body_sha256, address, nonce, timestamp}) plus the header template. Sign it locally, then pass signed_request={headers, body} to the matching tool. Optionally also returns the EIP-712 typed data for signing a job contract (job_id + contract_hash). The server never needs your key. TEST MONEY ONLY: mock ledger, test tokens (tUSDC), no real funds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Exact JSON body | |
| path | Yes | API path, e.g. /v1/jobs or /v1/jobs/{job_id}/fund | |
| method | No | HTTP method | POST |
| address | Yes | Your wallet address (0x...) | |
| contract_hash | No | contract_hash (64 hex) for the EIP-712 typed data | |
| contract_job_id | No | Also return EIP-712 typed data for this job id |