fdc_web2json_request
Convert public web APIs into verifiable smart contract facts. Prepare an FDC attestation request with URL, jq filter, and ABI signature, quote fees, then either submit on-chain or receive a ready-to-sign request.
Instructions
Turn any public web API into a fact a smart contract can verify. Prepares an FDC Web2Json attestation request (URL + jq filter + ABI signature) through a Flare-hosted verifier and quotes the request fee. Submits on-chain only if FLARE_PRIVATE_KEY is set and submission is permitted; otherwise returns the prepared request for your own signer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"post_process_jq": "<post_process_jq>",
"abi_signature": "<abi_signature>",
"network": "<network>"
},
"name": "fdc_web2json_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | {} | |
| headers | No | {} | |
| network | Yes | ||
| http_method | No | GET | |
| query_params | No | {} | |
| abi_signature | Yes | JSON ABI tuple describing the decoded struct, e.g. {"components":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"dto","type":"tuple"} | |
| post_process_jq | Yes | jq filter applied to the JSON response, e.g. "{price: .price|tonumber}" |