Interact to..
Read States & Views

States & View-Functions

A state is a variable or view that can change over time. A state is always the same at the same block height.

Example Conditions

Source Code

The VTHO contract's source code is available on GitHub: (opens in a new tab)

Contract address

The public VTHO contract is used. Address is identical on Test and MainNet.



Definition of the balanceOf that returns the VTHO balance for a given address.

    "constant": true,
    "inputs": [
            "name": "_owner",
            "type": "address"
    "name": "balanceOf",
    "outputs": [
            "name": "balance",
            "type": "uint256"
    "payable": false,
    "stateMutability": "view",
    "type": "function"

Function definition

function balanceOf(address _owner) public view returns(uint256 balance) {}

Connex Example

const result = await connex.thor


  1. React, Connex, single value (opens in a new tab)
  2. React, Connex, multiple values (opens in a new tab)