mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 11:38:12 +00:00
41 lines
621 B
ReStructuredText
41 lines
621 B
ReStructuredText
========
|
|
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');
|
|
|
|
|
|
------------------------------------------------------------------------------
|