# Example: @View Reads

`@view` marks functions that must not mutate state; CX3VM can align them with read-only execution.

```cxs
@CX30
@target(CX3JS)
token ReadToken {
    name = "Read"
    symbol = "RD"
    totalSupply = 1000
    owner = sender
    mapping balances: address => uint256

    constructor() {
        balances[sender] = totalSupply
    }

    @view
    balanceOf(a: address) -> uint256 {
        return balances[a]
    }

    @view
    decimals() -> uint256 {
        return 6
    }

    @pure
    add(a: uint256, b: uint256) -> uint256 {
        return a + b
    }
}
```

## `@pure`

Side-effect-free math helper - convenient for tests and off-chain tooling.

After deploy, call `@view` methods with **`@carbonx3/cx3.js`** (`token.balanceOf(...)`) — **cx3.js SDK**.

## Next

**Example: KYC (On-Chain Hash)**
