- 之後打開終端機,輸入 :
var SimpleStorage = eth.contract(把API的內容放進這邊,記得要把空白刪除掉).at(這邊則是放入在run裡面的account)
- 再輸入前,請先把昨天貼到記事本的ABI檔案稍微整理,空格的部分刪除,再把修改過後的ABI放到上面那段程式碼裡面。
var SimpleStorage = eth.contract([{"constant": false,"inputs": [{"name": "x","type": "string"}],"name": "set","outputs": [],"payable": false,"stateMutability": "nonpayable","type": "function"},{"constant": true,"inputs": [],"name": "get","outputs": [{"name": "","type": "string"}],"payable": false,"stateMutability": "view","type": "function"},{"inputs": [{"name": "x","type": "string"}],"payable": false,"stateMutability": "nonpayable","type": "constructor"}]).at("0x4ea687f88f11eb5ceab86a3c06f769c904d70625")
- 最終結果會是這樣,再按下Enter。