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

# getTransactionsByAddress

> Learn how to use the getTransactionsByAddress JSON-RPC method.

## Contextualizing `getTransactionsByAddress`

* `getTransactionsByAddress` provides a detailed transaction history for a given address, including status and gas metrics. It returns all associated transactions, regardless of whether they're pending, successful, or failed, along with the relevant transaction details like gas spent and fees for confirmed transactions.

***

## Query example

```javascript JavaScript theme={null}
const axios = require('axios');

(async () => {
    const response = await axios.post('https://rpc.particle.network/evm-chain', {
        chainId: 42,
        jsonrpc: '2.0',
        id: 1,
        method: 'particle_getTransactionsByAddress',
        params: ['0x425249Cf0F2f91f488E24cF7B1AA3186748f7516'],
    }, {
        auth: {
            username: 'Your Project Id',
            password: 'Your Project Server Key',
        }
    });

    console.log(response.data);
})();
```


## OpenAPI

````yaml openapi-evm POST /#particle_getTransactionsByAddress
openapi: 3.0.0
info:
  title: Particle Network Enhanced RPC
  version: 1.0.0
servers:
  - url: https://rpc.particle.network/evm-chain
security: []
paths:
  /#particle_getTransactionsByAddress:
    post:
      summary: getTransactionsByAddress
      operationId: getTransactionsByAddress
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetTransactionsByAddressRequest'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTransactionsByAddressResponse'
      security:
        - basicAuth: []
components:
  schemas:
    GetTransactionsByAddressRequest:
      allOf:
        - $ref: '#/components/schemas/RPCRequest'
        - type: object
          properties:
            method:
              enum:
                - particle_getTransactionsByAddress
            params:
              type: array
              items:
                type: string
    GetTransactionsByAddressResponse:
      allOf:
        - $ref: '#/components/schemas/RPCResponse'
        - type: object
          properties:
            result:
              type: array
              description: Array of transactions.
              items:
                type: object
                properties:
                  hash:
                    type: string
                    description: Transaction hash.
                  from:
                    type: string
                    description: Sender address.
                  to:
                    type: string
                    description: Receiver address.
                  value:
                    type: string
                    description: Transaction value.
                  data:
                    type: string
                    description: Transaction data.
                  gasLimit:
                    type: integer
                    description: Gas limit for the transaction.
                  timestamp:
                    type: integer
                    description: Timestamp of the transaction.
                  status:
                    type: integer
                    description: Status of the transaction.
                  type:
                    type: integer
                    description: Type of the transaction.
                  nonce:
                    type: integer
                    description: Nonce of the transaction.
                  accessList:
                    type: array
                    description: Access list for the transaction.
                    items:
                      type: object
                  maxPriorityFeePerGas:
                    type: string
                    description: Max priority fee per gas.
                  maxFeePerGas:
                    type: string
                    description: Max fee per gas.
                  gasSpent:
                    type: string
                    description: Gas spent for the transaction.
                  gasPrice:
                    type: string
                    description: Gas price for the transaction.
                  fees:
                    type: string
                    description: Transaction fees.
    RPCRequest:
      type: object
      required:
        - jsonrpc
        - id
        - method
        - params
        - chainId
      properties:
        jsonrpc:
          type: string
          default: 2
          description: Version of the JSON-RPC protocol, should be 2.0.
          example: '2.0'
        id:
          type: integer
          default: 1
          description: The request identifier.
          example: 1
        method:
          type: string
          description: API method being called.
        chainId:
          type: integer
          example: 1
          description: The chain ID.
        params:
          type: array
          description: Parameters for the API method call.
    RPCResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          description: Version of the JSON-RPC protocol, should be 2.0.
          example: '2.0'
        id:
          type: integer
          description: The request identifier.
          example: 1
        result:
          anyOf:
            - $ref: '#/components/schemas/AnyValue'
    AnyValue:
      anyOf:
        - type: string
        - type: number
        - type: integer
        - type: boolean
        - type: object
        - type: array
          items: {}
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic

````