Alchemy Logo

starknet_getClassHashAt

POST
/{apiKey}

Get the contract class hash in the given block for the contract deployed at the given address

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

block_idobject or enumrequired

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

Block hash, number or tag

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

The address of the contract whose class hash will be returned

Responses

200

The class hash of the given contract

A field element. Represented by at most 63 hex digits

Was this page helpful?