2017-06-15 113 views
0

我與nethereum測試(.NET集成庫Ethereum)試圖解鎖帳戶的API上testrpc與下面的代碼:錯誤:personal_unlockAccount方法沒有實現

var ipcClient = ClientFactory.GetClient(); 
var web3 = new Web3(ipcClient); 

// Unlock the caller's account with the given password 
var unlockResult = await web3.Personal.UnlockAccount.SendRequestAsync(publicKey, password, _accountUnlockTime); 

     return unlockResult; 

我已經執行上的PowerShell testrpc,並有由testrpc創建的10個默認賬戶,並且想解鎖它們。

調用這個方法,我得到以下異常:

Error: RPC method personal_unlockAccount not supported.

回答

1

Testrpc不必解鎖賬戶的能力,這是特定像Geth的一個客戶。

+0

所以,我不需要解鎖?只需使用'web3.Eth.DeployContract'等功能?也很高興在這裏看到你 –

+0

是的,這將是足夠的。並感謝:D –

相關問題