# /v1/accounts/{address}/transactions

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

GET https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/accounts/{address}/transactions

Retrieves transactions sent from a specific account. If `start` is not provided, retrieval starts at sequence number 0. If `start` is too far in the past and pruned, a 410 will be returned.


Reference: https://www.alchemy.com/docs/chains/aptos/aptos-api-endpoints/aptos-api-endpoints/v-1-accounts-address-transactions

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| address | string | Yes | Address of account with or without a 0x prefix. |

## Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| limit | integer | No | Maximum number of transactions to retrieve. |
| start | string | No | Account sequence number to start retrieving transactions from. |

## Code Examples

### cURL

```bash
curl --request GET \
  --url https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/accounts/0xc32f662cd9718f02d8a8e5628f8f642fa27cd9b5f457b406ed734901a4939e34/transactions
```

### JavaScript

```javascript
const options = {method: 'GET'};

fetch('https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/accounts/0xc32f662cd9718f02d8a8e5628f8f642fa27cd9b5f457b406ed734901a4939e34/transactions', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/accounts/0xc32f662cd9718f02d8a8e5628f8f642fa27cd9b5f457b406ed734901a4939e34/transactions"

response = requests.get(url)

print(response.text)
```

### Go

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/accounts/0xc32f662cd9718f02d8a8e5628f8f642fa27cd9b5f457b406ed734901a4939e34/transactions"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
```

### Java

```java
HttpResponse<String> response = Unirest.get("https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/accounts/0xc32f662cd9718f02d8a8e5628f8f642fa27cd9b5f457b406ed734901a4939e34/transactions")
  .asString();
```

### C#

```csharp
using RestSharp;


var options = new RestClientOptions("https://aptos-mainnet.g.alchemy.com/v2/docs-demo/v1/accounts/0xc32f662cd9718f02d8a8e5628f8f642fa27cd9b5f457b406ed734901a4939e34/transactions");
var client = new RestClient(options);
var request = new RestRequest("");
var response = await client.GetAsync(request);

Console.WriteLine("{0}", response.Content);

```


## Operation Specification

```yaml
path: /v1/accounts/{address}/transactions
method: GET
operation:
  summary: /v1/accounts/{address}/transactions
  description: |
    Retrieves transactions sent from a specific account. If `start` is not provided, retrieval starts at sequence number 0. If `start` is too far in the past and pruned, a 410 will be returned.
  tags:
    - Aptos API Endpoints
  security:
    - apiKey: []
  parameters:
    - name: address
      in: path
      required: true
      schema:
        type: string
        example: '0xc32f662cd9718f02d8a8e5628f8f642fa27cd9b5f457b406ed734901a4939e34'
      description: Address of account with or without a 0x prefix.
    - name: limit
      in: query
      required: false
      schema:
        type: integer
      description: Maximum number of transactions to retrieve.
    - name: start
      in: query
      required: false
      schema:
        type: string
      description: Account sequence number to start retrieving transactions from.
  responses:
    '200':
      description: List of transactions from the specified account.
      content:
        application/json:
          schema:
            type: array
            items:
              type: object
              properties:
                version:
                  type: string
                hash:
                  type: string
                state_change_hash:
                  type: string
                event_root_hash:
                  type: string
                state_checkpoint_hash:
                  type:
                    - string
                    - 'null'
                gas_used:
                  type: string
                success:
                  type: boolean
                vm_status:
                  type: string
                accumulator_root_hash:
                  type: string
                changes:
                  type: array
                  items:
                    type: object
                    properties:
                      address:
                        type: string
                      state_key_hash:
                        type: string
                      data:
                        type: object
                        properties:
                          type:
                            type: string
                          data:
                            type: object
                      type:
                        type: string
          examples:
            response:
              summary: Example transaction list
              value:
                - version: '6691597071'
                  hash: '0x3841a4cba1c638dc15e6c3f8559059747f342349caef7004b401eabb0b7279aa'
                  state_change_hash: '0xb0394dfe1356dd2f702dfc5d1832a928884117cdb28b52710f8297aa768fb59b'
                  event_root_hash: '0x2cce8081b44bb21c55891081a77b3a806c589dbaa231e297dd44b3d7092635bf'
                  state_checkpoint_hash: null
                  gas_used: '30'
                  success: true
                  vm_status: Executed successfully
                  accumulator_root_hash: '0x4d435ff06204a8e20adf4da01c95ea77734ab960c39f240d215f95fde225befc'
                  changes:
                    - address: '0x13a9f1a109368730f2e355d831ba8fbf5942fb82321863d55de54cb4ebe5d18f'
                      state_key_hash: '0x6df3ecbf3a2fbae0fdba75291520be34b171e2b75b648f3381c101df2eb1abf3'
                      type: write_resource
                      data:
                        type: 0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>
                        data:
                          coin:
                            value: '8382825976'
                          deposit_events:
                            counter: '79737818'
                            guid:
                              id:
                                addr: '0x13a9f1a109368730f2e355d831ba8fbf5942fb82321863d55de54cb4ebe5d18f'
                                creation_num: '2'
                          frozen: false
                          withdraw_events:
                            counter: '65846'
                            guid:
                              id:
                                addr: '0x13a9f1a109368730f2e355d831ba8fbf5942fb82321863d55de54cb4ebe5d18f'
                                creation_num: '3'
```
