Skip to content
Alchemy Logo

starknet_getClassAt

POST
/{apiKey}

Get the contract class definition in the given block at the given address

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 address of the contract whose class definition will be returned

Responses

200

The contract class

Was this page helpful?