web3.js/docs/web3-utils.rst

41 lines
725 B
ReStructuredText
Raw Normal View History

2016-11-02 15:51:52 +01:00
========
web3.utils
========
This package provides utility functions for ethereum dapps and other web3.js packages.
------------------------------------------------------------------------------
sha3
=====================
.. code-block:: javascript
web3.utils.sha3(myProvider)
When called changes the current provider for all modules.
----------
Parameters
----------
2016-11-09 16:22:43 +01:00
1. ``Object`` - **myProvider**: a valid provider with at least ``send``, ``on`` function
2016-11-02 15:51:52 +01:00
-------
Returns
-------
``undefined``
-------
Example
-------
.. code-block:: javascript
web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545'));
------------------------------------------------------------------------------