fdc_verify_web2json
Verify a Web2Json attestation bound to your expected source: check the Merkle proof against the Relay root, confirm the URL matches host/path/protocol/method, then decode payload using ABI signature.
Instructions
Verify a Web2Json attestation AND bind it to the source you expected. Checks the Merkle proof locally against the on-chain Relay root, confirms the attested URL matches your expected host / path / protocol / method, then decodes the payload with the request's ABI signature. Without expect_source the proof is verified but NOT bound, which an attacker can exploit with a valid proof from their own endpoint.
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": {
"voting_round_id": "<voting_round_id>",
"abi_encoded_request": "<abi_encoded_request>",
"network": "<network>"
},
"name": "fdc_verify_web2json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | ||
| expect_source | No | The source you expected. Without it the proof is verified but NOT bound, which leaves you open to a valid proof from an attacker's endpoint. | |
| voting_round_id | Yes | ||
| abi_encoded_request | Yes |