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