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.
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}" |