# List Transactions by Address XRP

This endpoint will list XRP transactions by a attribute `address`. The transactions listed will detail additional information such as hash, height, time of creation in Unix timestamp, etc.


> **Note:** Please note that retrieving data will provide the most recent 14 days (1,209,600 seconds) of transactions from the current moment. To access the full historical data, please refer to the Address History APIs.

- **Endpoint:** `GET https://rest.cryptoapis.io/addresses-latest/xrp/{network}/{address}/transactions`
- **Authentication:** `x-api-key` header
- **Credits cost:** 110 credits for 1 result by default; per blockchain: XRP: 110
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-latest-xrp/list-transactions-by-address-xrp/get

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `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 network like "testnet" is a test network. Allowed values: `mainnet`, `testnet`. |
| `address` | string | yes | Represents the public address, which is a compressed and shortened form of a public key. |

## 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. |
| `limit` | integer | no | Defines how many items should be returned in the response per page basis. |
| `sortingOrder` | string | no | Defines the sorting order of the results. DESCENDING or ASCENDING by timestamp |
| `startingAfter` | string | no | Defines the id of the previous listed record id from which the current list should start from. |
| `transactionType` | string | no |  Allowed values: `account-set`, `account-delete`, `check-cancel`, `check-cash`, `check-create`, `deposit-preauth`, `escrow-cancel`, `escrow-create`, `escrow-finish`, `offer-cancel`, `offer-create`, `payment`, `payment-channel-claim`, `payment-channel-create`, `payment-channel-fund`, `set-regular-key`, `signer-list-set`, `ticket-create`, `trust-set`. |

## 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 | Your request body for POST requests must have a structure of { data: { item: [...properties] } } |
| 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,
    "startingAfter": "5ca21f92cf5431000105d1a7",
    "hasMore": true,
    "nextStartingAfter": "5ca21f92cf5431000105d1a7",
    "sortingOrder": "ascending",
    "items": [
      {
        "destinationTag": 3999472835,
        "hash": "33684d38ccf56f5b10a25e60b11b251abe6288f41aadd03c7596dced895b282a",
        "positionInBlock": 3,
        "recipient": "rDsbeomae4FXwgQTJp9Rs64Qg9vDiTCdBv",
        "sender": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
        "status": "tesSUCCESS",
        "timestamp": 4256894,
        "type": "OfferCreate",
        "fee": {
          "amount": "0.000024",
          "unit": "XRP"
        },
        "minedInBlock": {
          "hash": "3dff3ab3697a0a3116062a92a499dc7b5c9c777b2035f79bb906894972d4573d",
          "height": 15949067
        },
        "offer": {
          "amount": "5.256",
          "unit": "XRP"
        },
        "receive": {
          "amount": "4.236",
          "unit": "XRP"
        },
        "value": {
          "amount": "22",
          "unit": "XRP"
        }
      }
    ]
  }
}
```

### 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.startingAfter` | string | no | Defines the id of the previous listed record id from which the current list should start from. |
| `data.hasMore` | boolean | yes | Defines whether or not there are more elements available after this set. |
| `data.nextStartingAfter` | string | no | Defines the id of the next page which the next list should start from. |
| `data.sortingOrder` | string | no | Defines what the sorting order is either ascending or descending. |
| `data.items` | array of object | yes |  |
| `data.items[].destinationTag` | integer | no |  |
| `data.items[].hash` | string | yes | Represents the hash of the XRP transaction. |
| `data.items[].positionInBlock` | integer | yes | Represents the index position of the transaction in the block. |
| `data.items[].recipient` | string | yes | String representation of the transaction to address |
| `data.items[].sender` | string | yes | String representation of the transaction from address |
| `data.items[].status` | string | yes | Defines the status of the transaction. |
| `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[].type` | string | yes | Specifies the type of the transaction. |
| `data.items[].fee` | object | yes |  |
| `data.items[].fee.amount` | string | yes | Defines the amount of the transaction fee. |
| `data.items[].fee.unit` | string | yes | Defines the unit of the transaction fee. |
| `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. |
| `data.items[].offer` | object | yes |  |
| `data.items[].offer.amount` | string | yes | Defines the amount of the offer. |
| `data.items[].offer.unit` | string | yes | Defines the unit of the offer. |
| `data.items[].receive` | object | yes |  |
| `data.items[].receive.amount` | string | yes | Defines the amount received. |
| `data.items[].receive.unit` | string | yes | Defines the unit of the amount received. |
| `data.items[].value` | object | yes |  |
| `data.items[].value.amount` | string | yes | Defines the specific amount of the value. |
| `data.items[].value.unit` | string | yes | Defines the specific unit of the value. |
