starknet_getClass

Get the contract class definition in the given block associated with the given hash

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
block_idobject or enumRequired

The hash of the requested block, or number (height) of the requested block, or a block tag

class_hashstringRequiredformat: "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"
The hash of the requested contract class

Response

The contract class, if found
Deprecated contract classobject
The definition of a StarkNet contract class
OR
Contract classobject