Add parity_defaultAccount RPC (with subscription) (#4383)
* Add parity_defaultAccount RPC (with subscription) * Add jsonrpc interface
This commit is contained in:
@@ -81,6 +81,12 @@ export default class Parity {
|
||||
.execute('parity_decryptMessage', inAddress(address), inHex(data));
|
||||
}
|
||||
|
||||
defaultAccount () {
|
||||
return this._transport
|
||||
.execute('parity_defaultAccount')
|
||||
.then(outAddress);
|
||||
}
|
||||
|
||||
defaultExtraData () {
|
||||
return this._transport
|
||||
.execute('parity_defaultExtraData');
|
||||
@@ -307,11 +313,6 @@ export default class Parity {
|
||||
.execute('parity_postTransaction', inOptions(options));
|
||||
}
|
||||
|
||||
postSign (from, message) {
|
||||
return this._transport
|
||||
.execute('parity_postSign', from, message);
|
||||
}
|
||||
|
||||
registryAddress () {
|
||||
return this._transport
|
||||
.execute('parity_registryAddress')
|
||||
|
||||
Reference in New Issue
Block a user