starknet_getCompiledCasm

Get the Cairo assembly (CASM) compiled contract class for the given class hash

Path parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
class_hashstringRequiredformat: "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"
The Sierra class hash whose compiled CASM will be returned

Response

The compiled contract class in CASM format
sierra_program_hashstringformat: "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"
The hash of the Sierra program from which this CASM was compiled
bytecodelist of strings
CASM program bytecode encoded as field elements
entry_points_by_typeobject
compiler_versionstring or null
Version string of the Cairo compiler used to produce this CASM