Skip to main content

starknet_getClassHashAt RPC Method

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

Updated on
Mar 18, 2024

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
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free