GetCurrencyTaxRecords
Retrieves tax records for currency transfers and payments, filterable by currency, account, and timestamp.
Request
GET /nxt?requestType=getCurrencyTaxRecords
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
currency | long | Currency ID | Optional |
account | string | Filter by account | Optional |
includeCurrencyInfo | boolean | Include currency metadata | Optional |
firstIndex | int | Pagination start index | Optional |
lastIndex | int | Pagination end index | Optional |
timestamp | int | Only return records at or after this timestamp | Optional |
Notes
- At least one of
currencyoraccountmust be provided - Returns
MISSING_CURRENCY_ACCOUNTif both are missing
Response
{
"taxRecords": [
{
"currency": "987654321",
"taxRecordFullHash": "abc123def456...",
"payer": "1234567890",
"payerRS": "NXT-abcd-efgh-ijkl",
"taxCollector": "0987654321",
"taxCollectorRS": "NXT-zyxw-vuts-rqpo",
"unitsQNT": "5000000",
"height": 250,
"timestamp": 123456789,
"currencyInfo": {
"name": "MyCoin",
"code": "MYC",
"decimals": 8
}
}
]
}
Example
# Get tax records for a currency
curl "http://localhost:22024/nxt?requestType=getCurrencyTaxRecords¤cy=987654321&includeCurrencyInfo=true"
# Get tax records for an account
curl "http://localhost:22024/nxt?requestType=getCurrencyTaxRecords&account=1234567890"