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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
account | string | Yes | — | Account ID (numeric or RS-formatted) |
timestamp | int | No | 0 | Get transactions after this block timestamp |
type | int | No | — | Filter by transaction type |
subtype | int | No | — | Filter by transaction subtype |
confirmations | int | No | 0 | Only return transactions with at least this many confirmations |
includeExpiredPrunable | boolean | No | false | Whether to include expired prunable data |
includePhasingResult | boolean | No | false | Whether to include phasing process result for each transaction |
executedOnly | boolean | No | false | Whether to only include transactions that have been executed (phased transactions only) |
Request Example
curl "http://localhost:22024/nxt?requestType=getBlockchainTransactions&account=12345678901234567890×tamp=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
| Field | Type | Description |
|---|---|---|
transactions | array | Array of transaction objects in JSON format |
requestProcessingTime | number | API request processing time in milliseconds |
Source
GetBlockchainTransactions.java, JSONData.transaction()
Tags
ACCOUNTS, TRANSACTIONS