Skip to main content

GetExpectedTransactions

Retrieves expected (pending) transactions from the blockchain, filtered by account and/or chain.

Endpoint

GET /nxt?requestType=getExpectedTransactions

Parameters

NameTypeRequiredDescription
accountstringNoAccount ID (can be repeated)
chainstringNoChain name

Request Example

curl "http://localhost:22024/nxt?requestType=getExpectedTransactions&account=12345678901234567890"

Response

{
"expectedTransactions": [
{
"transaction": "12345678901234567890",
"fullHash": "abc123...",
"type": 0,
"subtype": 0,
"timestamp": 12345678,
"deadline": 1440,
"senderPublicKey": "abc123...",
"sender": "NXT-...",
"recipient": "NXT-...",
"amountFQT": "100000000",
"feeFQT": "100000000",
"height": 12345,
"block": "1234567890123456789",
"confirmations": 100,
"requestProcessingTime": 5
}
],
"requestProcessingTime": 10
}

Response Fields

FieldTypeDescription
expectedTransactionsarrayArray of unconfirmed transaction objects
requestProcessingTimenumberAPI request processing time in milliseconds

Source

GetExpectedTransactions.java, JSONData.unconfirmedTransaction()

Tags

TRANSACTIONS