getClassAt

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

Get the contract class definition.

Get the contract class definition at the given address in the given block.

Parameters

contractAddress

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

blockHash

The hash of the requested block.


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

Get the contract class definition.

Get the contract class definition at the given address in the given block.

Parameters

contractAddress

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

blockNumber

The number of the requested block.


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

Get the contract class definition.

Get the contract class definition at the given address in the given block.

Parameters

contractAddress

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

blockTag

The tag of the requested block.


abstract fun getClassAt(contractAddress: Felt): Request<ContractClassBase>

Get the contract class definition.

Get the contract class definition in the at the given address in the latest block.

Parameters

contractAddress

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