contract.call

Use call to execute a pure or view smart contract method. These methods do not modify the blockchain, do not cost anything to execute and are also not broadcasted to the network.

Usage

contract['function_name'](...parameter).call()

Parameters

No need to pass parameters.

Returns

Object.

Example

const contract = visionWeb.contract().at('46f151d2b560d0f0a983cdbfc85fff392bb8874258');
contract.balanceOf('462d7a77f8bef6fe225bf5e353dd6a380f588a1496').call();
> 2000