starknet_getClass
Returns the contract class definition of the specified contract class hash in the specified block.
Parameters
block_id: [Required] The block parameter object containing one of the following:block_hash: (string) Block hash.block_number: (integer) Decimal block number.- One of the string tags
latestorpending.
class_hash: (string) [Required] The class hash of the requested contract class.
Returns
A contract class object containing:
abi: The class ABI, as supplied by the user declaring the class.contract_class_version: The version of the contract class object.entry_points_by_type: Entry points by type.sierra_program: The list of Sierra instructions of which the program consists.
Example
Replace <YOUR-API-KEY> with an API key from your MetaMask Developer dashboard.