安全地清空钱包并移除全部账户。
调用:
web3.eth.accounts.wallet.clear();
返回值:
Object: 钱包对象
示例代码:
web3.eth.accounts.wallet.clear();
> Wallet {
add: function(){},
remove: function(){},
save: function(){},
load: function(){},
clear: function(){},
length: 0
}