0

I use parity with light mode and RPC call parity_pendingTransactions always return empty result. I'm using ropsten testnet network. How can I fix this problem ?

here the example

curl --data '{"method":"parity_pendingTransactions","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

here the result

{"jsonrpc":"2.0","result":[],"id":1}

my config.toml

# This config should be placed in following path:
#   ~/.local/share/io.parity.ethereum/config.toml

[parity]
# Ropsten Test Network
chain = "ropsten"
# Parity continously syncs the chain
mode = "active"
# Stable
release_track = "stable"
# Experimental: run in light client mode. Light clients synchronize a bare minimum of data and fetch necessary data on-demand from the network. Much lower in storage, potentially higher in bandwidth. Has no effect with subcommands.
light = true

[footprint]
# Increase performance on SSD.
db_compaction = "ssd"

[network]
# Override the bootnodes from selected chain file.
bootnodes = ["enode://6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f@52.232.243.152:30303,enode://94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09@192.81.208.223:30303"]

[rpc]
# Only selected APIs will be exposed over this interface.
apis = ["web3", "eth", "pubsub", "net", "parity", "private", "parity_pubsub", "traces", "rpc", "shh", "shh_pubsub", "personal", "parity_accounts"]
# Threads for handling incoming connections for HTTP JSON-RPC server.
server_threads = 2

[websockets]
# Only selected APIs will be exposed over this interface.
apis = ["web3", "eth", "pubsub", "net", "parity", "parity_pubsub", "private", "traces", "rpc", "shh", "shh_pubsub", "personal", "parity_accounts"]

[ipc]
# Only selected APIs will be exposed over this interface.
apis = ["web3", "eth", "pubsub", "net", "parity", "parity_pubsub", "parity_accounts", "private", "traces", "rpc", "shh", "shh_pubsub", "personal"]
  • Light clients don't participate in block and transaction propagation so this rpc method will never return anything useful. – Joshua Mir Apr 9 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.