Skip to main content
Your contract receives an attestation (a signed payload plus one aggregate signature) and checks it on-chain. You don’t run a node, trust a relayer, or deploy a feed contract per chain: the same attestation verifies on every chain below. The EVM and Starknet verifiers mirror registry version 5 of the Solana program, with the same node slots. Older verifier addresses are deprecated: see Deployments.
Install the interface and consumer library with Foundry, pinned to the commit that records the deployed verifier:
Call verify and apply your own policy:
verify returns (false, code) instead of reverting, so always check ok. The library MolphaLib packages these checks. Full guide and result codes: Verify on EVM.

Get an attestation to test with

Request one from a backend with the SDK or from an agent with MCP. The MCP round tools return ready-made EVM and Starknet calldata with the attestation. With the SDK, build the arguments from the result and call the deployed verifier before writing any contract code:
For Starknet, buildStarknetVerifierArgs(result, { maxAge: 300 }), encodeStarknetVerifyCalldata and parseStarknetVerifyResult do the same with any Starknet client; MOLPHA_VERIFIER_STARKNET_SEPOLIA is the address. See Build the arguments off-chain. maxAge is in seconds and the attestation’s timestamp is in milliseconds: the verifier compares timestamp / 1000 with the block time.

Before you ship

Verification proves that at least signaturesRequired live nodes of the named registry version signed this exact payload. Your contract still owns the rest:
  • Pin the sourceId you expect and require a minimum signaturesRequired.
  • Enforce freshness: a non-zero maxAge on EVM and Starknet, or compare timestamp / 1000 with the chain clock.
  • Reject replays when an old attestation could be submitted twice.
  • Decode value with the source’s output type and bound-check it. A source with a policy can sign a declared fallback value; decide how your contract treats it.
The full list is the consumer checklist.