Skip to content
Alchemy Logo

starknet_getClass

POST
/{apiKey}

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

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

object or enumrequired

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

Block hash, number or tag

stringformat: "^0x(0|[a-fA-F1-9]{1}[a-fA-F0-9]{0,62})$"required

The hash of the requested contract class

Responses

200

The contract class, if found

Was this page helpful?