2
0
mirror of synced 2025-02-24 20:18:07 +00:00
ethers.js/docs/source/getting-started.rst

38 lines
897 B
ReStructuredText
Raw Normal View History

Getting Started
***************
2017-04-04 18:43:41 -04:00
The ethers.js library is a compact and complete JavaScript library for Ethereum.
-----
Installing in Node.js
=====================
2017-04-04 18:43:41 -04:00
From your project directory::
/Users/ricmoo/my-project> npm install --save ethers
And from the relevant application files::
var ethers = require('ethers');
-----
Including in Web Applications
=============================
2017-04-04 18:43:41 -04:00
For security purposes, it is usually best to place a copy of `this script`_ on
the application's server, but for a quick prototype using the Ethers CDN (content
distribution network) should suffice::
<!-- This exposes the library as a global variable: ethers -->
2017-04-04 18:43:41 -04:00
<script src="https://cdn.ethers.io/scripts/ethers-v2.0.min.js" type="text/javascript">
</script>
-----
2017-04-04 18:43:41 -04:00
.. _npm is installed: https://nodejs.org/en/
.. _this script: https://cdn.ethers.io/scripts/ethers-v2.0.min.js