jsapi interface for parity_killAccount
This commit is contained in:
parent
2d9369e5ba
commit
3db5e3e627
@ -123,6 +123,11 @@ export default class Parity {
|
||||
.then((accounts) => (accounts || []).map(outAddress));
|
||||
}
|
||||
|
||||
killAccount (account, password) {
|
||||
return this._transport
|
||||
.execute('parity_killAccount', inAddress(account), password);
|
||||
}
|
||||
|
||||
listGethAccounts () {
|
||||
return this._transport
|
||||
.execute('parity_listGethAccounts')
|
||||
|
@ -238,6 +238,24 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
killAccount: {
|
||||
desc: 'Permanently an account',
|
||||
params: [
|
||||
{
|
||||
type: Address,
|
||||
desc: 'The account to remove'
|
||||
},
|
||||
{
|
||||
type: String,
|
||||
desc: 'Account password'
|
||||
}
|
||||
],
|
||||
returns: {
|
||||
type: Boolean,
|
||||
desc: 'true on success'
|
||||
}
|
||||
},
|
||||
|
||||
listGethAccounts: {
|
||||
desc: 'Returns a list of the accounts available from Geth',
|
||||
params: [],
|
||||
|
Loading…
Reference in New Issue
Block a user