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.

class-hash

Calculate the class hash of a contract.

--contract-name <CONTRACT_NAME>

Required.

The name of the contract. The contract name is the part after the mod keyword in your contract file.

General Example

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