# ContractReverted (/docs/errors/chain/ContractReverted)

The contract ran to completion but returned with the REVERT flag set, rolling back its state changes; only extrinsics surface this as an error. Dry-run the call via RPC and decode the returned output data for the contract's error value.

Declared by the `Contracts` pallet; it classifies to the semantic code [`internal`](/docs/errors/internal).

## Remediation [#remediation]

A chain-side invariant failed; nothing to fix client-side — report it if it persists

The same explanation is available in the terminal: `btcli explain ContractReverted`.
