Skip to content

Instantly share code, notes, and snippets.

@tomusdrw
Created May 4, 2017 13:31
Show Gist options
  • Save tomusdrw/5d727863c7eb90ce2b64dcea3fe0310d to your computer and use it in GitHub Desktop.
Save tomusdrw/5d727863c7eb90ce2b64dcea3fe0310d to your computer and use it in GitHub Desktop.
List of RPC methods

Parity RPC methods

Groupped by cause of change of returned value.

Can update with new block:

eth_blockNumber
eth_getBalance(acc, bn)
eth_getStorageAt(acc, idx, bn)
eth_getBlockByNumber(bn, includeTx)
eth_getTransactionCount(acc, bn)
eth_getBlockTransactionCountByNumber(bn)
eth_getUncleCountByBlockNumber(bn)
eth_getCode(bn)
eth_call(req, bn)
eth_estimateGas(req, bn)
eth_getTransactionByBlockNumberAndIndex(bn, idx)
eth_getUncleByBlockNumberAndIndex(bn, idx)

eth_getBlockByHash(bhash)
eth_getBlockTransactionCountByHash(bhash)
eth_getUncleCountByBlockHash(bhash)
eth_getTransactionByBlockHashAndIndex(bhash, idx)
eth_getUncleByBlockHashAndIndex(bhash, idx)
eth_getLogs(filter)

eth_getWork
eth_gasPrice

PAR: parity_gasPriceHistogram
PAR: parity_listAccounts
PAR: parity_listStorageKeys
PAR: parity_releaseInfo
PAR: parity_getBlockHeaderByNumber(bn)

trace_filter
trace_block(bn)
trace_call(req, [], bn)
trace_rawTransaction(tx, [], bn)

Accounts

eth_accounts
eth_coinbase

personal_listAccounts

PAR: parity_accountsInfo
PAR: parity_hardwareAccountsInfo
PAR: parity_defaultAccount

PACC: parity_getNewDappsDefaultAddress
PACC: parity_getNewDappsAddresses
PACC: parity_getDappDefaultAddress
PACC: parity_getDappAddresses
PACC: parity_allAccountsInfo

Sync Events

eth_syncing

net_peerCount
net_listening

PAR: parity_netPeers
PAR: parity_chainStatus

Pending Transactions

eth_getTransactionByHash(txhash)
eth_getTransctionReceipt(txhash)

PAR: parity_pendingTransactions
PAR: parity_futureTransactions
PAR: parity_pendingTransactionsStats
PAR: parity_localTransactions
PAR: parity_nextNonce

Changed by corresponding set* method:

eth_hashrate (eth_submitHashrate)
eth_mining (eth_submitWork)
eth_getWork (eth_submitWork)

PACC: parity_getVaultMeta (parity_setVaultMeta)
PACC: parity_listVaults (parity_newVault)
PACC: parity_listOpenedVaults (parity_openVault, parity_closeVault)
PACC: parity_listRecentDapps (parity_getDappAddresses)

PAR: parity_extraData (parity_setExtraData)
PAR: parity_gasFloorTarget (parity_setGasFloorTarget)
PAR: parity_gasCeilTarget (parity_setGasCeilTarget)
PAR: parity_minGasPrice (parity_setMinGasPrice)
PAR: parity_transactionLimit (parity_setTransactionLimit)

Other:

PSET: parity_upgradeReady (upgrade system)
PSET: parity_hashContent (remote content changed)
PACC: parity_listRecentDapps (dapp accessed)

Local transaction

signer_requestsToConfirm
PAR: parity_unsignedTransactionCount
PAR: parity_localTransactions

Local FS

PACC: parity_listGethAccounts
PSET: parity_dappsList

Sub-modules (possibly re-configurable in future)

PAR: parity_netPort
PAR: parity_rpcSettings
PAR: parity_nodeName
PAR: parity_dappsUrl
PAR: parity_wsUrl
PAR: parity_enode

PAR: parity_netChain/parity_chainName
PAR: parity_chain (?)
PAR: parity_consensusCapability (?)

Invalid/Non-listenable

EthSigning::*
ParitySigning::*

eth_sendRawTransaction/eth_submitTransaction
eth_protocolVersion
eth_submitHashrate
eth_submitWork

trace_replayTransaction(txhash, [])
trace_transaction(txhash)
trace_get(bhash, index)

net_version

web3_clientVersion
web3_sha3

personal_newAccount
personal_unlockAccount
personal_sendTransaction/personal_signAndSendTransaction

signer_confirmRequest
signer_confirmRequestWithToken
signer_confirmRequestRaw
signer_rejectRequest
signer_generateAuthorizationToken

PSET: parity_setMinGasPrice
PSET: parity_setGasFloorTarget
PSET: parity_setGasCeilTarget
PSET: parity_setExtraData
PSET: parity_setAuthor
PSET: parity_setEngineSigner
PSET: parity_setTransactionLimit
PSET: parity_setMaxTransactionGas
PSET: parity_addReservedPeer
PSET: parity_removeReservedPeer
PSET: parity_dropNonReservedPeers
PSET: parity_acceptNonReservedPeers
PSET: parity_startNetwork
PSET: parity_stopNetwork
PSET: parity_setMode
PSET: parity_setChain
PSET: parity_executeUpgrade
PSET: parity_removeTransaction

PACC: parity_deriveAddressHash
PACC: parity_deriveAddressIndex
PACC: parity_exportAccount
PACC: parity_signMessage
PACC: parity_setVaultMeta
PACC: parity_changeVaultPassword
PACC: parity_changeVault
PACC: parity_openVault
PACC: parity_closeVault
PACC: parity_newVault
PACC: parity_importGethAccounts
PACC: parity_setNewDappsDefaultAddress
PACC: parity_setNewDappsAddresses
PACC: parity_setDappDefaultAddress
PACC: parity_setDappAddresses
PACC: parity_setAccountName
PACC: parity_setAccountMeta
PACC: parity_newAccountFromPhrase
PACC: parity_newAccountFromWallet
PACC: parity_newAccountFromSecret
PACC: parity_testPassword
PACC: parity_changePassword
PACC: parity_killAccount
PACC: parity_removeAddress

PAR: parity_devLogs
PAR: parity_devLogsLevels
PAR: parity_defaultExtraData
PAR: parity_generateSecretPhrase
PAR: parity_phraseToAddress
PAR: parity_registryAddress
PAR: parity_encryptMessage
PAR: parity_versionInfo
PAR: parity_nodeKind

PAR: parity_cidV0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment