Set OpenEthereum to accept non-reserved peers (default behavior).
None
Boolean - true if successful.Request
curl --data '{"method":"parity_acceptNonReservedPeers","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Add a reserved peer.
String - Enode addressparams: ["enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@22.99.55.44:7770"]
Boolean - true if successful.Request
curl --data '{"method":"parity_addReservedPeer","params":["enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@22.99.55.44:7770"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Set the client to drop all non-reserved peers. To restore default behavior call parity_acceptNonReservedPeers.
None
Boolean - true if successful.Request
curl --data '{"method":"parity_dropNonReservedPeers","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Attempts to upgrade OpenEthereum to the version specified in parity_upgradeReady.
None
Boolean - returns true if the upgrade to the new release was successfully executed, false if not.Request
curl --data '{"method":"parity_executeUpgrade","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Creates a hash of a file at a given URL.
String - The url of the content.params: ["https://raw.githubusercontent.com/openethereum/openethereum/master/README.md"]
Hash - The SHA-3 hash of the content.Request
curl --data '{"method":"parity_hashContent","params":["https://raw.githubusercontent.com/openethereum/openethereum/master/README.md"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": "0x2547ea3382099c7c76d33dd468063b32d41016aacb02cbd51ebc14ff5d2b6a43"
}
Remove a reserved peer.
String - Encode addressparams: ["enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@22.99.55.44:7770"]
Boolean - true if successful.Request
curl --data '{"method":"parity_removeReservedPeer","params":["enode://a979fb575495b8d6db44f750317d0f4622bf4c2aa3365d6af7c284339968eef29b69ad0dce72a4d8db5ebb4968de0e3bec910127f134779fbcb0cb6d3331163c@22.99.55.44:7770"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Changes author (coinbase) for mined blocks.
Address - 20 Bytes - Addressparams: ["0x407d73d8a49eeb85d32cf465507dd71d507100c1"]
Boolean - true if the call was successful.Request
curl --data '{"method":"parity_setAuthor","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Sets the network spec file the client is using.
String - Chain spec name, one of the chain presets or a filename.params: ["foundation"]
Boolean - true if the call succeeded.Request
curl --data '{"method":"parity_setChain","params":["foundation"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Sets an authority account for signing consensus messages. For more information check the Proof of Authority Chains page.
Address - Identifier of a valid authority account.String - Passphrase to unlock the account.params: [
"0x407d73d8a49eeb85d32cf465507dd71d507100c1",
"hunter2"
]
Boolean - True if the call succeededRequest
curl --data '{"method":"parity_setEngineSigner","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","hunter2"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Changes extra data for newly mined blocks
Data - Extra Dataparams: ["0x"]
Boolean - whether the call was successfulRequest
curl --data '{"method":"parity_setExtraData","params":["0x"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Sets new gas ceiling target for mined blocks.
Quantity - (default: 0x0) Gas ceiling target.params: [
"0x2540be400" // 10000000000
]
Boolean - true if the call was successful.Request
curl --data '{"method":"parity_setGasCeilTarget","params":["0x2540be400"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Sets a new gas floor target for mined blocks..
Quantity - (default: 0x0) Gas floor target.params: [
"0x3e8" // 1000
]
Boolean - true if the call was successful.Request
curl --data '{"method":"parity_setGasFloorTarget","params":["0x3e8"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Sets the maximum amount of gas a single transaction may consume.
Quantity - Gas amountparams: [
"0x186a0" // 100000
]
Boolean - true if the call was successful.Request
curl --data '{"method":"parity_setMaxTransactionGas","params":["0x186a0"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Changes minimal gas price for transaction to be accepted to the queue.
Quantity - Minimal gas priceparams: [
"0x3e8" // 1000
]
Boolean - whether the call was successfulRequest
curl --data '{"method":"parity_setMinGasPrice","params":["0x3e8"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Changes the client operating mode.
String - The mode to set, one of:
"active" - Client continuously syncs the chain."passive" - Client syncs initially, then sleeps and wakes regularly to resync."dark" - Client syncs only when the RPC is active."offline" - Client doesn’t sync.params: ["passive"]
Boolean - true if the call succeeded.Request
curl --data '{"method":"parity_setMode","params":["passive"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
This method is currently deprecated due to significant changes in the txqueue
Changes limit for transactions in queue.
Quantity - New Limitparams: [
"0x3e8" // 1000
]
Boolean - whether the call was successfulRequest
curl --data '{"method":"parity_setTransactionsLimit","params":["0x3e8"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": true
}
Returns a ReleaseInfo object describing the release which is available for upgrade or null if none is available.
None
Object - Details or null if no new release is available.
version: Object - Information on the version.is_critical: Boolean - Does this release contain critical security updates?fork: Quantity - The latest fork that this release can handle.binary: Data - (optional) Keccak-256 checksum of the release openethereum binary, if known.Request
curl --data '{"method":"parity_upgradeReady","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Response
{
"id": 1,
"jsonrpc": "2.0",
"result": null
}