getStorageAt

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

Get a value of storage var.

Get a value of a storage variable of contract at the provided address.

Parameters

contractAddress

an address of the contract

key

an address of the storage variable inside contract

blockTag

The tag of the requested block.

Throws


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

Get a value of storage var.

Get a value of a storage variable of contract at the provided address.

Parameters

contractAddress

an address of the contract

key

an address of the storage variable inside contract

blockHash

a hash of the block in respect to what the query will be made

Throws


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

Get a value of storage var.

Get a value of a storage variable of contract at the provided address.

Parameters

contractAddress

an address of the contract

key

an address of the storage variable inside contract

blockNumber

a number of the block in respect to what the query will be made

Throws


abstract fun getStorageAt(contractAddress: Felt, key: Felt): Request<Felt>

Get a value of storage var.

Get a value of a storage variable of contract at the provided address and in the latest block.

Parameters

contractAddress

an address of the contract

key

an address of the storage variable inside contract

Throws