···4444)
454546464747+@app.get("/api/config")
4848+async def get_config():
4949+ """Return contract address and chain ID for use by the web UI."""
5050+ w3, _ = _get_contract()
5151+ return {
5252+ "contractAddress": os.getenv("CONTRACT_ADDRESS"),
5353+ "chainId": w3.eth.chain_id,
5454+ }
5555+5656+4757def _validate_cow_did(did: str):
4858 """Parse and validate a did:cow DID, raising HTTPException on failure."""
4959 try: