web3.js/docs/web3-utils.rst
2017-03-10 11:02:46 +01:00

43 lines
633 B
ReStructuredText

.. _utils:
========
web3.utils
========
This package provides utility functions for Ethereum dapps and other web3.js packages.
------------------------------------------------------------------------------
sha3
=====================
.. code-block:: javascript
web3.utils.sha3(string)
Will calculate the sha3 of the input.
----------
Parameters
----------
1. ``String`` - ``string``: A string to hash.
-------
Returns
-------
``String``: the result hash.
-------
Example
-------
.. code-block:: javascript
web3.utils.sha3('234');
------------------------------------------------------------------------------