starknet_getClassHashAt RPC Method
Parameters
block_id
string
REQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest or pending)
contract_address
string
REQUIRED
The address of the contract whose class hash will be returned
Returns
result
string
The class hash of the given contract
Request
1curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/' \2--header 'accept: application/json' \3--header 'content-type: application/json' \4--data '{5"id": 1,6"jsonrpc": "2.0",7"method": "starknet_getClassHashAt",8"params": [9"latest",10"0x066733193503019e4e9472f598ff32f15951a0ddb8fb5001f0beaa8bd1fb6840"11]12}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free