Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Important: If you're upgrading snforge to version 0.48.0 or later, please read the 0.48.0 Migration Guide.

Calculate contract class hash

Overview

Use the sncast utils class-hash command to calculate the class hash of a contract.

Examples

General Example

$ sncast utils \
  class-hash \
  --contract-name HelloSncast
Output:
Class Hash: 0x0[..]