Skip to main content

getBlockchainTransactions

Retrieves a list of blockchain transactions for a given account, with optional filtering by type, subtype, and confirmations.

Endpoint

GET /nxt?requestType=getBlockchainTransactions

Parameters

NameTypeRequiredDefaultDescription
accountstringYesAccount ID (numeric or RS-formatted)
timestampintNo0Get transactions after this block timestamp
typeintNoFilter by transaction type
subtypeintNoFilter by transaction subtype
confirmationsintNo0Only return transactions with at least this many confirmations
includeExpiredPrunablebooleanNofalseWhether to include expired prunable data
includePhasingResultbooleanNofalseWhether to include phasing process result for each transaction
executedOnlybooleanNofalseWhether to only include transactions that have been executed (phased transactions only)

Request Example

curl "http://localhost:22024/nxt?requestType=getBlockchainTransactions&account=12345678901234567890&timestamp=0&numberOfConfirmations=6"

Response

{
"transactions": [
{
"transaction": "12345678901234567890",
"timestamp": 123456789,
"block": "12345678901234567890",
"blockHeight": 1000000,
"transactionIndex": 0,
"sender": "1234567890",
"recipient": "9876543210",
"amountFQT": "100000000",
"feeFQT": "100000000",
"type": 0,
"subtype": 0,
"confirmations": 100,
"fullHash": "hexFullHash",
"signatureHash": "hexSignatureHash",
"blockTimestamp": 123456780,
"approvalHash": "hexApprovalHash",
"approved": true,
"phasing": {
"phasingVoterAccounts": [],
"phasingQuorum": 0,
"phasingSubjectProperty": null
},
"requestProcessingTime": 5
}
],
"requestProcessingTime": 10
}

Response Fields

FieldTypeDescription
transactionsarrayArray of transaction objects in JSON format
requestProcessingTimenumberAPI request processing time in milliseconds

Source

GetBlockchainTransactions.java, JSONData.transaction()

Tags

ACCOUNTS, TRANSACTIONS