> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.getfoundry.sh/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

*Generated from `cast decode-event --help`; see [CLI reference versions](/reference/versions). Regenerate this page instead of editing it directly.*

## cast decode-event

Decode event data

Parameters marked `indexed` in the supplied signature are emitted as log topics
rather than
data, so they are ignored when decoding. With `--sig`, DATA must contain only
the encoded
non-indexed event data, without topics.

Examples:

* cast decode-event --sig "Transfer(address indexed from, address indexed to,
  uint256
  value)" $DATA
* cast decode-event $DATA (topic0-prefixed data; looks up the signature)

:::terminal
```bash
$ cast decode-event --help
```

```txt
Usage: cast decode-event [OPTIONS] <DATA>

Arguments:
  <DATA>
          The event data to decode

Options:
      --sig <SIG>
          The event signature. If none provided then tries to decode from local
          cache or [https://4byte.sourcify.dev](https://4byte.sourcify.dev)
          
          [alias: --event-sig]

  -h, --help
          Print help (see a summary with '-h')

  -j, --threads <THREADS>
          Number of threads to use. Specifying 0 defaults to the number of
          logical cores
          
          [alias: --jobs]

      --profile <PROFILE>
          The configuration profile to use

Display options:
      --color <COLOR>
          The color of the log messages

          Possible values:
          - auto:   Intelligently guess whether to use color output (default)
          - always: Force color output
          - never:  Force disable color output

      --json
          Format log messages as JSON

      --md
          Format log messages as Markdown

  -q, --quiet
          Do not print log messages

  -v, --verbosity...
          Verbosity level of the log messages.
          
          Pass multiple times to increase the verbosity (e.g. -v, -vv, -vvv).
          
          Depending on the context the verbosity levels have different meanings.
          
          For example, the verbosity levels of the EVM are:
          - 2 (-vv): Print logs for all tests.
          - 3 (-vvv): Print execution traces for failing tests.
          - 4 (-vvvv): Print execution traces for all tests, and setup traces
          for failing tests.
          - 5 (-vvvvv): Print execution and setup traces for all tests,
          including storage changes and
            backtraces with line numbers.
```
:::
