get_x402_scaffold
Generates a single-file Python or Go EIP-712 integration scaffold with the exact AgentPay x402 domain, types, and a self-test vector, plus optional live /verify failure stats and first-time success rates.
Instructions
EIP-712 integration scaffold + live failure diagnostics for the AgentPay x402 facilitator (invention #4240). With stats=False, returns the single-file integration scaffold (lang 'py' or 'go') with the EXACT AgentPay EIP-712 domain and types, a known-good self-test vector, and its unique scaffold_id — run the code offline with --self-test to validate your environment before paying on mainnet. With stats=True, returns the live /verify failure-code distribution (14d) and the scaffold users' first-time success rate. Free to call.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_x402_scaffold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | py | |
| stats | No |