txpool_inspect

描述:返回交易池的信息

return

数据类型 备注
Object 被挂起(pending)和进入队列(queued)的交易概览

example

Request:

curl -X POST \
http://127.0.0.1:8283 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "txpool_inspect", "params": []}'

Response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": {
    "pending": {
    "0x59677fD68ec54e43aD4319D915f81748B5a6Ff8B": {
        "20": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "21": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "22": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "23": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "24": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "25": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "26": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "27": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "28": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu",
        "29": "0x9c75211DBE849b1b9Ee8b7068E6fb64DF6Be600e: 100000000000 lu + 40000 gas × 10000000000000 lu"
        }
    },
    "queued": {}
    }
}