Advertisement
balykin95

Untitled

Dec 14th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. It'sJ53t4T3St!12
  2.  
  3.  
  4. pragma solidity ^0.4.18;
  5. contract key {
  6. string a="123";
  7. /* Constructor */
  8. function ShowKey() public constant returns(string) {
  9. return a;
  10. }
  11. }
  12. --
  13. geth --rinkeby console 2>>c:\trash.txt
  14.  
  15. --
  16. web3.eth.contract([{constant:true,inputs:[],name:"ShowKey",outputs:[{type:"string"}],type:"function"}]).at("0x4ab57f1bfacfa668640ee7f464ae73af28810fb3").ShowKey();
  17. --
  18. 0x249AB46ee4e1aD3dd2d35147e346e86E1C2d2a17
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement