Added etherscan example to docs.

This commit is contained in:
ricmoo 2016-08-03 19:41:46 -04:00
parent 1b0dc18bdc
commit af62f54042

View File

@ -219,7 +219,7 @@ Wallet.summonBrainWallet(email, password, function(error, wallet, progress) {
Provider API
------------
Connect to standard *Ethereum* nodes via RPC, for example, if you have a local parity (or geth) instance running:
Connect to standard *Ethereum* nodes via RPC (if you have a local [parity](https://ethcore.io/parity.html) or [geth](https://github.com/ethereum/go-ethereum/wiki/Geth) instance running), or via [Etherscan](https://etherscan.io):
```javascript
@ -232,6 +232,10 @@ var Wallet = new Wallet(privateKey, 'http://localhost:8545');
var Wallet = new Wallet(privateKey, web3Provider);
var Wallet = new Wallet(privateKey, web3);
// Or use Etherscan:
var Wallet = new Wallet(privateKey, new Wallet.providers.EtherscanProvider({testnet: true}));
// With a provider attached, you can call additional methods on the wallet
// Get the wallet's balance