The getUnconfirmedTransactionHashes method returns information about the current unconfirmed transaction pool or for a specified addresses.

back to methods summary

Input:

ArgumentMandatoryDescriptionFormat
addresses No Array of strings, where each string is a valid addressarray

Note: if addresses parameter is set, getUnconfirmedTransactionHashes method returns transactions that contain transfer from at least one of specified addresses.

Output:

ArgumentDescriptionFormat
transactionHashesArray of strings, where each string is a hash of an unconfirmed transactionarray

Input example:

{  
  "params":{  
     "addresses":["ir48V76oJqAhYpGmsJgn79Yk6vvwYhU2cDc7azm3UW8C4EyzhhEDUUQjXtrbwzwpJ6Kp2ebwHErWD9VxBVnmXBk41oDB3Lt4j"]
  },
  "jsonrpc":"2.0",
  "id":"test",
  "method":"getUnconfirmedTransactionHashes"
}

$ curl -s -X POST -d '{"params":{"addresses":["ir48V76oJqAhYpGmsJgn79Yk6vvwYhU2cDc7azm3UW8C4EyzhhEDUUQjXtrbwzwpJ6Kp2ebwHErWD9VxBVnmXBk41oDB3Lt4j"]},"jsonrpc":"2.0","id":"test","method":"getUnconfirmedTransactionHashes"}' localhost:14101/json_rpc | jq

Output example:

{
  "id": "test",
  "jsonrpc": "2.0",
  "result": {
    "transactionHashes": [
    ...,
    ...
    ]
  }
}

back to methods summary