> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amberdata.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Transactions - By Wallet Address

> Retrieves the transactions where this address was either the originator or a recipient.

Note that transactions are returned in descending order by default (block number and transaction index), which means the most recent transactions are on page 0, and the oldest transactions are on the last page.

If you intend to traverse all the transactions, it is recommended to specify the flag `direction=ascending`, which will guarantee that the pagination is stable and will not change with the arrival of new transactions.



## OpenAPI

````yaml get /addresses/{hash}/transactions
openapi: 3.1.0
info:
  title: blockchain-api
  version: '2'
servers:
  - url: https://api.amberdata.com/blockchains
security:
  - sec0: []
paths:
  /addresses/{hash}/transactions:
    get:
      summary: Transactions - By Wallet Address
      description: >-
        Retrieves the transactions where this address was either the originator
        or a recipient.


        Note that transactions are returned in descending order by default
        (block number and transaction index), which means the most recent
        transactions are on page 0, and the oldest transactions are on the last
        page.


        If you intend to traverse all the transactions, it is recommended to
        specify the flag `direction=ascending`, which will guarantee that the
        pagination is stable and will not change with the arrival of new
        transactions.
      operationId: get-address-transactions
      parameters:
        - name: hash
          in: path
          description: address to retrieve transactions for
          schema:
            type: string
            default: '0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB'
          required: true
        - name: blockNumber
          in: query
          description: Filter by transactions for this block number.
          schema:
            type: integer
            format: int32
        - name: from
          in: query
          description: Filter by transactions for this "from" address.
          schema:
            type: string
        - name: to
          in: query
          description: Filter by transactions for this "to" address
          schema:
            type: string
        - name: includeLogs
          in: query
          description: >-
            Indicates whether or not to include log information for each
            transaction, if available (false|true).
          schema:
            type: boolean
        - name: decodeTransactions
          in: query
          description: Decodes transactions input via known ABIs.
          schema:
            type: boolean
            default: false
        - name: includeTokenTransfers
          in: query
          description: >-
            Indicates whether or not to include token transfers information for
            each transaction, if available (false|true).
          schema:
            type: boolean
        - name: includePrice
          in: query
          description: >-
            Indicates whether or not to include price data with the results.
            Options: true, false.
          schema:
            type: boolean
        - name: startDate
          in: query
          description: Filter by transactions which happened after this date.
          schema:
            type: string
            format: date-time
        - name: endDate
          in: query
          description: Filter by transactions which happened before this date.
          schema:
            type: string
            format: date-time
        - name: validationMethod
          in: query
          description: >-
            The validation method to be added to the response: `none`, `basic`,
            `full`. Default: `none`. <a
            href="https://docs.amberdata.io/reference#section-validation-method">More
            Details.</a>
          schema:
            type: string
        - name: direction
          in: query
          description: >-
            The order in which to return the results (ascending or descending). 
            By default, records are returned in descending order, so the most
            recent records are returned first.
          schema:
            type: string
        - name: page
          in: query
          description: The page number to return.
          schema:
            type: integer
            format: int32
            default: 0
        - name: size
          in: query
          description: The number of records per page (maximum 1000)
          schema:
            type: integer
            format: int32
            default: 50
        - name: x-amberdata-blockchain-id
          in: header
          description: The id of the blockchain
          schema:
            type: string
            enum:
              - bitcoin-mainnet
              - bitcoin-abc-mainnet
              - ethereum-mainnet
              - litecoin-mainnet
            default: ethereum-mainnet
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    example: 200
                    default: 0
                  title:
                    type: string
                    example: OK
                  description:
                    type: string
                    example: Successful request
                  payload:
                    type: object
                    properties:
                      records:
                        type: array
                        items:
                          type: object
                          properties:
                            blockchainId:
                              type: string
                              example: 1c9c969065fcd1cf
                            blockNumber:
                              type: string
                              example: '5703560'
                            confirmations:
                              type: string
                              example: '2280417'
                            contractAddress:
                              type: string
                              example: 'null'
                            cumulativeGasUsed:
                              type: string
                              example: '6348961'
                            fee:
                              type: string
                              example: '563675000000000'
                            from:
                              type: object
                              properties:
                                address:
                                  type: string
                                  example: '0xce9af648a831ddf0cd6d05e3fe5787b3c7987246'
                            gasLimit:
                              type: string
                              example: '53000'
                            gasPrice:
                              type: string
                              example: '25000000000'
                            gasUsed:
                              type: string
                              example: '22547'
                            hash:
                              type: string
                              example: >-
                                0xd0c6d02f93f77996823d76a5e012d0108192b1d9f9bce7f4297c3247dc5e753b
                            index:
                              type: integer
                              example: 121
                              default: 0
                            input:
                              type: string
                              example: 0xa9059cbb0...
                            logsBloom:
                              type: string
                              example: 0x000000...
                            maxFeePerGas:
                              type: integer
                              example: 1000000028
                              default: 0
                            maxPriorityFeePerGas:
                              type: integer
                              example: 1000000000
                              default: 0
                            nonce:
                              type: string
                              example: '504404'
                            publicKey:
                              type: string
                              example: 'null'
                            r:
                              type: string
                              example: >-
                                0x7dd79c36a2c7b488d055222d07eff80d9e0fd6983e21a19d9e0770142e5d8350
                            raw:
                              type: string
                              example: 'null'
                            root:
                              type: string
                              example: 'null'
                            s:
                              type: string
                              example: >-
                                0x426e3fcd93bf5bd20878a9f6ffca9f0f8875e988f3ad0fa6caf95493f592a617
                            status:
                              type: string
                              example: '0x1'
                            timestamp:
                              type: string
                              example: '2018-05-30T16:35:27.000Z'
                            to:
                              type: array
                              items:
                                type: object
                                properties:
                                  icon:
                                    type: string
                                    example: >-
                                      https://cdn.amberdata.io/images/tokens/0xf85feea2fdd81d51177f6b8f35f0e6734ce45f5f.png
                                  address:
                                    type: string
                                    example: '0xf85feea2fdd81d51177f6b8f35f0e6734ce45f5f'
                            type:
                              type: integer
                              example: 2
                              default: 0
                            v:
                              type: string
                              example: '27'
                            value:
                              type: string
                              example: '0'
                            statusResult:
                              type: object
                              properties:
                                code:
                                  type: string
                                  example: '0x1'
                                confirmed:
                                  type: boolean
                                  example: true
                                  default: true
                                success:
                                  type: boolean
                                  example: true
                                  default: true
                                name:
                                  type: string
                                  example: successful
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: '{}'
              schema:
                type: object
                properties: {}
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````