txpool_content

Retrieves the contents of the transaction pool, including pending and queued transactions

Request
Examples
curl --location 'https://rpc.xone.org' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "txpool_content",
    "params": [],
    "id": 1
}'
Response
200 OK
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "pending": {
      "0x1234567890abcdef1234567890abcdef12345678": {
        "0x1": {
          "blockHash": null,
          "blockNumber": null,
          "from": "0x1234567890abcdef1234567890abcdef12345678",
          "gas": "0x5208",
          "gasPrice": "0x4a817c800",
          "hash": "0x9a1e1ab6e3d7852e8230b7b79b7e6bf4e108f6de7d3f4ebf88e5fd1c1e6fdd1f",
          "input": "0x",
          "nonce": "0x1",
          "to": "0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
          "transactionIndex": null,
          "value": "0x0",
          "v": "0x1b",
          "r": "0x1f7dfd312e0e0d29e88c7cb2d979ec4b357118960f9a4d2c6eb9b637b0930c92",
          "s": "0x1cbb017447adff4b3e91820f0d8b1c2fd27ea154c7dbf4f3fffbf658c87f57e8"
        }
      }
    },
    "queued": {}
  }
}

Request params

NameTypeDescription
idintegerRequest identifier
jsonrpcstringJSON-RPC version
methodstringAPI method name
ParametersThis method does not accept any parameters. 

Response

200
Contains details about the current state of the transaction pool
NameTypeDescription
Parametersobject 
idinteger
jsonrpcstring
resultobject