getClassHashAt

abstract fun getClassHashAt(contractAddress: Felt, blockHash: Felt): Request<Felt>

Get the contract class hash.

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

Parameters

contractAddress

The address of the contract whose class definition will be returned.

blockHash

The hash of the requested block.

Throws


abstract fun getClassHashAt(contractAddress: Felt, blockNumber: Int): Request<Felt>

Get the contract class hash.

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

Parameters

contractAddress

The address of the contract whose class definition will be returned.

blockNumber

The number of the requested block.

Throws


abstract fun getClassHashAt(contractAddress: Felt, blockTag: BlockTag): Request<Felt>

Get the contract class hash.

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

Parameters

contractAddress

The address of the contract whose class definition will be returned.

blockTag

The tag of the requested block.

Throws


abstract fun getClassHashAt(contractAddress: Felt): Request<Felt>

Get the contract class hash.

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

Parameters

contractAddress

The address of the contract whose class definition will be returned.

Throws