Home

Starknet Get Contract Class Hash

POST
https://starknet.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the class hash of the contract deployed at an address.

Body

application/json
jsonrpcstring2.0required
idinteger | stringrequired
methodstringstarknet_getClassHashAtrequired
paramsArray<object>required

Response

200OK

Successful JSON-RPC response

400Bad Request

Invalid JSON-RPC request or parameters

401Unauthorized

Missing or invalid API key

429Too Many Requests

Rate limit exceeded

500Internal Server Error

Node or upstream server error