Transaction

Fetch transactions by address

Retrieves the latest transactions for a specified address from the Nimiq RPC, including both sent and received transactions. Reward transactions are also included. The max parameter controls the maximum number of transactions returned, with a default of 500.

GET
/getTransactionsByAddress/{address}/{max}
/getTransactionsByAddress/{address}/{max}

Path Parameters

address
Required
string

The address to fetch transactions for.

maxinteger

The maximum number of transactions to retrieve, defaulting to 500.

Default: 500
curl -X GET "https://test.nimiqhub.com/getTransactionsByAddress/string/500"

Transactions retrieved successfully

{
  "data": [
    {
      "hash": "string",
      "blockNumber": 0,
      "timestamp": 0,
      "confirmations": 0,
      "size": 0,
      "relatedAddresses": [
        "string"
      ],
      "from": "string",
      "fromType": 0,
      "to": "string",
      "toType": 0,
      "value": 0,
      "fee": 0,
      "senderData": "string",
      "recipientData": "string",
      "flags": 0,
      "validityStartHeight": 0,
      "proof": "string",
      "networkId": 0,
      "executionResult": true
    }
  ],
  "metadata": null
}