JSON-RPC API
txpool
Transactions waiting to be included in a block.
Besu has its own txpool methods. The Geth methods txpool_content and txpool_inspect do not exist on BXN.
| Method | Returns |
|---|---|
txpool_status | Count of pending and queued transactions |
txpool_besuStatistics | Pool size limit and counts of local and remote transactions |
txpool_besuTransactions | Hash and time added for every transaction in the pool |
txpool_besuPendingTransactions | Full pending transactions. Takes a limit and an optional filter |
Example
curl -s -X POST https://rpc.blackfort.network/mainnet/rpc \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","method":"txpool_status","params":[],"id":1}'{"jsonrpc":"2.0","id":1,"result":{"pending":"0xd3","queued":"0xc7f"}}Get up to 10 pending transactions sent from one address:
curl -s -X POST https://rpc.blackfort.network/mainnet/rpc \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","method":"txpool_besuPendingTransactions","params":[10,{"from":{"eq":"0xYourAddress"}}],"id":1}'