Check a signed stock quote
verify_stock_quoteChecks a Kerne stock quote: that the hash matches the signed string, that both signatures (EIP-191 over the document, EIP-712 over the on-chain Quote struct) recover to the published quote signer, whether the quote has expired, and whether the price round it is bound to is still the latest round on the feed. Call it with no arguments to check the latest quote, or pass the three fields of a quote you were given by someone else. It checks who signed and whether the quote is still current. It does not judge whether the price is a good one.
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": "verify_stock_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | No | 0x plus 130 hex characters: the EIP-191 signature over the 32 bytes of attestation_hash. | |
| attestation_hash | No | 0x plus 64 hex characters: sha256 of signed_payload_canonical. | |
| signed_payload_canonical | No | The exact signed string of the quote, byte for byte. |