Reference — Snapshot & Signing
Snapshot (EIP‑712 primaryType: Snapshot)
{
apiId: bytes32,
seqNo: uint256,
providerTs: uint64, // unix ms when you produced the snapshot
ttl: uint64, // ms (0 = no TTL)
contentHash: bytes32 // keccak256(canonical JSON)
}Domain
name: "SylanProviderSnapshot"
version: "1"
chainId: <cfg.chainId>
verifyingContract: <cfg.consensusAddress>Signature
- Viem account derived from
providerSignerKey - Returned as
providerSigin your JSON response
Content Hash
contentHash = keccak256(canonicalStringify(payload))
// canonicalStringify: JSON stringify with sorted object keysSequence Storage
Sequence numbers are persisted per apiId in ~/.sylan/seq.json. You can change the directory via storageDir in advanced setups.
Last updated on