parity namespace
parity_clearEngineSigner
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "parity_clearEngineSigner",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: boolean
parity_enode
Returns the node enode URI.
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "parity_enode",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: string
parity_getBlockReceipts
Get receipts from all transactions from particular block, more efficient than fetching the receipts one-by-one.
- Parameters
- Request
- Response
blockParameter
: string (block number or hash or either ofearliest
,finalized
,latest
,pending
, orsafe
)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "parity_getBlockReceipts",
"params": [blockParameter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: array of object
blobGasPrice
: string (hex integer)blobGasUsed
: string (hex integer)blockHash
: string (hash)blockNumber
: string (hex integer)contractAddress
: string (address)cumulativeGasUsed
: string (hex integer)effectiveGasPrice
: string (hex integer)error
: stringfrom
: string (address)gasUsed
: string (hex integer)logs
: array of objectaddress
: string (address)blockHash
: string (hash)blockNumber
: string (hex integer)data
: string (hex data)logIndex
: string (hex integer)removed
: booleantopics
: array of string (hash)transactionHash
: string (hash)transactionIndex
: string (hex integer)
logsBloom
: string (hex data)root
: string (hash)status
: string (hex integer)to
: string (address)transactionHash
: string (hash)transactionIndex
: string (hex integer)type
: integer
parity_netPeers
Returns connected peers. Peers with non-empty protocols have completed handshake.
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "parity_netPeers",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: object
active
: string (hex integer)connected
: string (hex integer)max
: string (hex integer)peers
: array of objectcaps
: array of stringid
: stringname
: stringnetwork
: objectlocalAddress
: stringremoteAddress
: string
protocols
: map of objectdifficulty
: string (hex integer)headHash
: string (hash)version
: string (hex data)
parity_pendingTransactions
Returns a list of transactions currently in the queue. If address is provided, returns transactions only with given sender address.
- Parameters
- Request
- Response
address
: string (address)
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "parity_pendingTransactions",
"params": [address]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: array of object
blockHash
: string (hash)blockNumber
: string (hex integer)chainId
: string (hex integer)condition
: objectcreates
: string (address)from
: string (address)gas
: string (hex integer)gasPrice
: string (hex integer)hash
: string (hash)input
: string (hex data)nonce
: string (hex integer)publicKey
: objectaddress
: string (address)bytes
: string (hex data)hash
: string (hash)prefixedBytes
: string (hex data)
r
: string (hex data)raw
: string (hex data)s
: string (hex data)standardV
: string (hex integer)to
: string (address)transactionIndex
: string (hex integer)v
: string (hex integer)value
: string (hex integer)
parity_setEngineSigner
- Parameters
- Request
- Response
-
address
: string (address) -
password
: string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "parity_setEngineSigner",
"params": [address, password]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: boolean
parity_setEngineSignerSecret
- Parameters
- Request
- Response
privateKey
: string
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "parity_setEngineSignerSecret",
"params": [privateKey]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result
: boolean