# List Transactions By Address Solana

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


> **Note:** Please be advised that retrieving Solana data will provide you with the most recent day of transactions. For access to full historical data, kindly reach out to our support team.

- **Endpoint:** `GET https://rest.cryptoapis.io/addresses-latest/solana/{network}/{address}/transactions`
- **Authentication:** `x-api-key` header
- **Credits cost:** 30 credits for 1 result by default; per blockchain: Solana: 90
- **Documentation page:** https://developers.cryptoapis.io/v-2.2024-12-12-175/RESTapis/address-latest-solana/list-transactions-by-address-solana/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. Allowed values: `mainnet`, `devnet`. |
| `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` | string | no | Defines how many items should be returned in the response per page basis. |
| `startingAfter` | string | no | String representation of the transaction signature to start searching backwards from. If not provided the search starts from the top of the highest max confirmed block |

## 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": [
      {
        "fee": {
          "amount": "0.000010702",
          "unit": "SOL"
        },
        "nativeBalanceChanges": [
          {
            "address": "Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",
            "after": "100",
            "before": "150",
            "change": "50",
            "type": "native",
            "unit": "SOL"
          }
        ],
        "nativeMovements": [
          {
            "amount": "10",
            "recipientAddress": "DUVULQ5bLhvrMwV6BzqPPEQ9RYJ2pVkqwmByBTESTpVf",
            "senderAddress": "DUVULQ5bLhvrMTEstBzqPPEQ9RYJ2pVkqwmByBHKNGpVf",
            "unit": "SOL"
          }
        ],
        "signature": "2KGuERep8VNbpDbyLxxXKV8uFik5ECSx5zrRAgUyzAbGCXGVg2Xb62Yda8TVD3xjxsmGkSNDSm5cVstgLjfnmte5",
        "signer": "DCAKxn5PFNN1mBREPWGdk1RXg5aVH9rPErLfBFEi2Emb",
        "timestamp": 1712821685,
        "tokenBalanceChanges": [
          {
            "address": "DUVULQ5bLhvrMwV6BzqPPEQ9RYJ2pVkqwmByBHKNGpVf",
            "after": "50",
            "before": "50",
            "change": "100",
            "contractAddress": "Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",
            "tokenAddress": "DUVULQ5bLhvrMwV6BzqPPEQ9RYJ2pVkqwmByBHKNGpVf",
            "type": "spl"
          }
        ],
        "tokenMovements": [
          {
            "amount": "10",
            "contractAddress": "Dn4noZ5jgGfkntzcQSUZ8czkreiZ1ForXYoV2H8Dm7S1",
            "recipientAddress": "DUVULQ5bLhvrMwV6BzqPPEQ9RYJ2pVkqwmByBTESTpVf",
            "recipientTokenAddress": "DUVULQ5bLhvrMTEstBzqPPEQ9RYJ2pVkqwmByBHKNGpVf",
            "senderAddress": "DUVULQ5bLhvrMTEstBzqPPEQ9RYJ2pVkqwmByBHKNGpVf",
            "senderTokenAddress": "DUVULQ5bLhvrMwV6BzqPPEQ9RYJ2pVkqwmByBHKNGpVf"
          }
        ],
        "minedInBlock": {
          "hash": "ByacH5PR9vSBwHyc6R1Rt2THzGGZd3DqwhgEcUfSKG5C",
          "height": 259495121
        }
      }
    ]
  }
}
```

### 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[].fee` | object | yes | Object representation of the fee's amount & unit |
| `data.items[].fee.amount` | string | yes | String representation of the transaction's fee amount |
| `data.items[].fee.unit` | string | yes | String representation of the transaction's fee unit (ex. SOL) |
| `data.items[].nativeBalanceChanges` | array of object | yes | Object Array representation of the transactions native (SOL) balance changes of each address |
| `data.items[].nativeBalanceChanges[].address` | string | yes | String representation of the balance change address |
| `data.items[].nativeBalanceChanges[].after` | string | yes | String representation of the balance change after the transaction |
| `data.items[].nativeBalanceChanges[].before` | string | yes | String representation of the balance change before the transaction |
| `data.items[].nativeBalanceChanges[].change` | string | yes | String representation of the balance change calculated |
| `data.items[].nativeBalanceChanges[].type` | string | no | String representation of the balance change type |
| `data.items[].nativeBalanceChanges[].unit` | string | yes | String representation of the balance change unit (ex. SOL) |
| `data.items[].nativeMovements` | array of object | yes | Object Array representation of the transactions native movements |
| `data.items[].nativeMovements[].amount` | string | yes | String representation of the movement asset amount |
| `data.items[].nativeMovements[].recipientAddress` | string | yes | String representation of the movement recipient address |
| `data.items[].nativeMovements[].senderAddress` | string | yes | String representation of the movement sender address |
| `data.items[].nativeMovements[].unit` | string | yes | String representation of the movement token's unit |
| `data.items[].signature` | string | yes | String representation of the transaction's signature |
| `data.items[].signer` | string | yes | String representation of the transaction's signer |
| `data.items[].timestamp` | integer | yes | Numeric representation of the transaction's timestamp |
| `data.items[].tokenBalanceChanges` | array of object | yes | Object Array representation of the transactions token (SPL) balance changes of each address and token |
| `data.items[].tokenBalanceChanges[].address` | string | yes | String representation of the balance change address |
| `data.items[].tokenBalanceChanges[].after` | string | yes | String representation of the balance change after the transaction |
| `data.items[].tokenBalanceChanges[].before` | string | yes | String representation of the balance change before the transaction |
| `data.items[].tokenBalanceChanges[].change` | string | yes | String representation of the balance change calculated |
| `data.items[].tokenBalanceChanges[].contractAddress` | string | yes | String representation of the balance change token's contract address (also called mint) |
| `data.items[].tokenBalanceChanges[].tokenAddress` | string | yes | String representation of the balance change token address (also called mint) |
| `data.items[].tokenBalanceChanges[].type` | string | no | String representation of the balance change type |
| `data.items[].tokenMovements` | array of object | yes | Object Array representation of the transactions token movements |
| `data.items[].tokenMovements[].amount` | string | yes | String representation of the movement asset amount |
| `data.items[].tokenMovements[].contractAddress` | string | yes | String representation of the movement contract's address (also called mint) |
| `data.items[].tokenMovements[].recipientAddress` | string | yes | String representation of the movement recipient address |
| `data.items[].tokenMovements[].recipientTokenAddress` | string | no | String representation of the movement recipient token address |
| `data.items[].tokenMovements[].senderAddress` | string | yes | String representation of the movement sender address |
| `data.items[].tokenMovements[].senderTokenAddress` | string | no | String representation of the movement sender token address |
| `data.items[].minedInBlock` | object | yes |  |
| `data.items[].minedInBlock.hash` | string | yes | String representation of the transaction's block hash |
| `data.items[].minedInBlock.height` | integer | yes | Numeric representation of the transaction's block height |
