# List HD Wallet (xPub, yPub, zPub) Transactions XRP

This endpoint will list HD Wallet transactions.

- **Endpoint:** `GET https://rest.cryptoapis.io/hd-wallets/{blockchain}/{network}/{extendedPublicKey}/transactions`
- **Authentication:** `x-api-key` header
- **Credits cost:** 40 credits for 1 result by default; per blockchain: XRP: 40
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/hd-wallet-data-xrp/list-hd-wallet-xpub-ypub-zpub-transactions-xrp/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `blockchain` | string | yes | Represents the specific blockchain. Allowed values: `xrp`. |
| `extendedPublicKey` | string | yes | Defines the master public key (xPub) of the account. |
| `network` | string | yes | Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "sepolia" is a test network. Allowed values: `mainnet`, `testnet`. |

## Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `derivation` | string | no | The way how the HD walled derives, for example when the type is ACCOUNT, it derives change and receive addresses while when the type is BIP32 it derives directly. Allowed values: `account`, `bip32`. |
| `limit` | integer | no | Defines how many items should be returned in the response per page basis. |
| `offset` | integer | no | The starting index of the response items, i.e. where the response should start listing the returned items. |

## Responses

| Status | Description |
| --- | --- |
| 200 | The request has been successful. |
| 400 | 400 |
| 401 | 401 |
| 402 | 402 |
| 403 | 403 |
| 409 | The data provided seems to be invalid. |
| 415 | The selected Media Type is unavailable. The Content-Type header should be 'application/json'. |
| 422 | 422 |
| 429 | The request limit has been reached. There can be maximum {requests} requests per {seconds} second(s) made. Please contact our team via email if you need more or upgrade your plan. |
| 500 | An unexpected server error has occurred, we are working to fix this. Please try again later and in case it occurs again please report it to our team via email. |

### Example 200 response

```json
{
  "apiVersion": "2024-12-12",
  "requestId": "601c1710034ed6d407996b30",
  "context": "yourExampleString",
  "data": {
    "limit": 50,
    "offset": 0,
    "total": 100,
    "items": [
      {
        "hash": "1ec73b0f61359927d02376b35993b756b1097cb9a857bec23da4c98c4977d2b2",
        "positionInBlock": 1,
        "recipient": [
          {
            "address": "2MzakdGTEp8SMWEHKwKM4HYv6uNCBXtHpkV",
            "isMember": false,
            "value": {
              "amount": "0.000144"
            }
          }
        ],
        "sender": [
          {
            "address": "2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1",
            "isMember": true,
            "value": {
              "amount": "0.00873472"
            }
          }
        ],
        "timestamp": 1582202940,
        "fee": {
          "amount": "0.00016932"
        },
        "minedInBlock": {
          "hash": "00000000407f119ecb74b44229228910400aaeb9f4e3b9869955b85a53e9b7db",
          "height": 1903849
        }
      }
    ]
  }
}
```

### 200 response fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `apiVersion` | string | yes | Specifies the version of the API that incorporates this endpoint. |
| `requestId` | string | yes | Defines the ID of the request. The `requestId` is generated by Crypto APIs and it's unique for every request. |
| `context` | string | no | In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. `context` is specified by the user. |
| `data` | object | yes |  |
| `data.limit` | integer | yes | Defines how many items should be returned in the response per page basis. |
| `data.offset` | integer | yes | The starting index of the response items, i.e. where the response should start listing the returned items. |
| `data.total` | integer | yes | Defines the total number of items returned in the response. |
| `data.items` | array of object | yes |  |
| `data.items[].hash` | string | yes | Represents the same as `transactionId` for account-based protocols like Ethereum, while it could be different in UTXO-based protocols like Bitcoin. E.g., in UTXO-based protocols `hash` is different from `transactionId` for SegWit transactions. |
| `data.items[].positionInBlock` | integer | yes | Represents the index position of the transaction in the block. |
| `data.items[].recipient` | array of object | yes | Represents a list of recipient addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list. |
| `data.items[].recipient[].address` | string | yes | The address which receives this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one recipient. |
| `data.items[].recipient[].isMember` | boolean | yes | Defines whether an address is a child address derived from the HD wallet (xPub, yPub, zPub) as boolean. |
| `data.items[].recipient[].value` | object | yes |  |
| `data.items[].recipient[].value.amount` | string | yes | Represents the amount received to this address in XRP units |
| `data.items[].sender` | array of object | yes | Represents a list of sender addresses with the respective amounts. In account-based protocols like Ethereum there is only one address in this list. |
| `data.items[].sender[].address` | string | yes | Represents the address which sends this transaction. In UTXO-based protocols like Bitcoin there could be several senders while in account-based protocols like Ethereum there is always only one sender. |
| `data.items[].sender[].isMember` | boolean | yes | Defines whether an address is a child address derived from the HD wallet (xPub, yPub, zPub) as boolean. |
| `data.items[].sender[].value` | object | yes |  |
| `data.items[].sender[].value.amount` | string | yes | Represents the amount sent by this address. |
| `data.items[].timestamp` | integer | yes | Defines the exact date/time in Unix Timestamp when this transaction was mined, confirmed or first seen in Mempool, if it is unconfirmed. |
| `data.items[].fee` | object | yes |  |
| `data.items[].fee.amount` | string | yes | Defines the amount of the transaction fee in XRP units |
| `data.items[].minedInBlock` | object | yes |  |
| `data.items[].minedInBlock.hash` | string | yes | Represents the hash of the block where this transaction was mined/confirmed for first time. The hash is defined as a cryptographic digital fingerprint made by hashing the block header twice through the SHA256 algorithm. |
| `data.items[].minedInBlock.height` | integer | yes | Represents the hight of the block where this transaction was mined/confirmed for first time. The height is defined as the number of blocks in the blockchain preceding this specific block. |
