daily pastebin goal
83%
SHARE
TWEET

Untitled

a guest May 16th, 2018 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var ethereumUri = 'http://127.0.0.1:7545';  
  2.         let web3 = new Web3(new Web3.providers.HttpProvider(ethereumUri));
  3.         if (!web3.isConnected()) {
  4.             return 'Unable to connect to ethereum node at ' + ethereumUri
  5.         }else{
  6.           var escrowContract = web3.eth.contract(abi); //abi initalized at start
  7.           var instance = escrowContract.at(this.contractAddress); //contractAddress is initialized at the start
  8.  
  9.           console.log(web3.eth.accounts);
  10.           console.log(web3.eth.accounts[0]);
  11.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top