> For the complete documentation index, see [llms.txt](https://l1x-sdk.gitbook.io/l1x-wallet-sdk/4BgPf6WH50hnVEUCHE22/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l1x-sdk.gitbook.io/l1x-wallet-sdk/4BgPf6WH50hnVEUCHE22/core-methods/how-to-get-account-transactions.md).

# How to get account transactions?

* **getTransactionsByAccount**

This function is used to retrieve an array of transaction receipts for a specified account.

{% code overflow="wrap" lineNumbers="true" fullWidth="false" %}

```typescript
import { L1XProvider, GetTransactionsByAccountArg } from "@l1x/l1x-wallet-sdk";

let l1xProvider = new L1XProvider({
  clusterType: "mainnet",
  endpoint: "https://v2-mainnet-rpc.l1x.foundation",
});

const query: GetTransactionsByAccountArg = {
  address: "6e371a05d5766c692172744f4907940ef324fcb9",
  number_of_transactions: 10,
  starting_from: 0,
};

l1xProvider.core
  .getTransactionsByAccount(query)
  .then((response) => console.log(response)) // log response
  .catch((err) => console.error(err)); // log error

```

{% endcode %}

**Parameters**:

The account address and query parameters.

```json
{
    "address": "6e371a05d5766c692172744f4907940ef324fcb9",
    "number_of_transactions": 10,
    "starting_from": 0
}
```

**Returns:**

A promise that resolves with an array of transaction receipts.

```json
[
    {
        transaction: {
          tx_type: Number,
          nonce: String,
          fee_limit: String,
          signature: [Array],
          verifying_key: [Array],
          transaction: [Object]
        },
        block_hash: null,
        block_number: null,
        fee_used: null,
        timestamp: null,
        from: '',
        transaction_hash: ''
    }
]
```
