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

# Get transactions for a wallet address

> Fetches the list of transactions for a given wallet address within an environment.



## OpenAPI

````yaml get /sdk/{environmentId}/chains/{chainName}/transactions/{address}
openapi: 3.0.1
info:
  title: Dashboard API
  description: Dashboard API documentation
  version: 1.0.0
servers:
  - url: https://app.dynamicauth.com/api/v0
  - url: https://app.dynamic.xyz/api/v0
  - url: http://localhost:3333/api/v0
security: []
tags:
  - name: Analytics
  - name: SDK
  - name: Organizations
  - name: Projects
  - name: Environments
  - name: Users
  - name: Invites
  - name: Tokens
  - name: Origins
  - name: Allowlists
  - name: Wallets
  - name: Members
  - name: Sessions
  - name: Settings
  - name: Gates
  - name: Chains
  - name: Exports
  - name: Events
  - name: Webhooks
  - name: Custom Fields
  - name: OrganizationMfaSettings
  - name: CustomHostnames
  - name: TestAccount
  - name: NameServices
  - name: GlobalWallets
  - name: GlobalWalletConnections
  - name: UserApiTokens
  - name: Waas
  - name: WalletConnect
paths:
  /sdk/{environmentId}/chains/{chainName}/transactions/{address}:
    get:
      tags:
        - SDK
      summary: Get transactions for a wallet address
      description: >-
        Fetches the list of transactions for a given wallet address within an
        environment.
      operationId: getWalletTransactions
      parameters:
        - $ref: '#/components/parameters/environmentId'
        - in: path
          name: chainName
          required: true
          schema:
            $ref: '#/components/schemas/ChainEnum'
        - in: path
          name: address
          required: true
          schema:
            $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
          description: Public key (address) of the wallet
        - in: query
          name: networkId
          schema:
            type: number
          required: true
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 100
          required: false
        - in: query
          name: offset
          schema:
            type: string
          required: false
      responses:
        '200':
          description: Wallet transactions fetched successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WalletTransactionsResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - bearerAuth: []
components:
  parameters:
    environmentId:
      in: path
      name: environmentId
      required: true
      description: ID of the environment
      schema:
        $ref: '#/components/schemas/uuid'
  schemas:
    ChainEnum:
      type: string
      enum:
        - ETH
        - EVM
        - FLOW
        - SOL
        - ALGO
        - STARK
        - COSMOS
        - BTC
        - ECLIPSE
        - SUI
        - SPARK
        - TRON
        - APTOS
        - TON
        - STELLAR
    NonEmptyStringWith255MaxLength:
      type: string
      pattern: ^(?=\S)[\p{L}\p{N}a-zA-Z _.,:!?&%@\/+\-'|]+(?<=\S)$
      maxLength: 255
      example: An example name
    WalletTransactionsResponse:
      type: object
      required:
        - transactions
      properties:
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/WalletTransaction'
        nextOffset:
          type: string
          description: Offset to the next page of transactions
    uuid:
      type: string
      pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
      minLength: 36
      maxLength: 36
      example: 95b11417-f18f-457f-8804-68e361f9164f
    WalletTransaction:
      type: object
      required:
        - transactionHash
        - blockNumber
        - transactionTimestamp
        - blockHash
        - blockExplorerUrls
        - fromAddress
        - toAddress
        - labels
        - assetTransfers
        - chainName
        - networkId
      properties:
        transactionHash:
          $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
        blockNumber:
          type: number
          description: Block number of the transaction
        transactionTimestamp:
          type: string
          format: date-time
          description: Timestamp of the transaction
        blockHash:
          $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
        blockExplorerUrls:
          type: array
          items:
            type: string
          description: URLs to the block explorer for the transaction
        fromAddress:
          $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
        toAddress:
          $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
        labels:
          type: array
          items:
            $ref: '#/components/schemas/WalletTransactionType'
        assetTransfers:
          type: array
          items:
            $ref: '#/components/schemas/WalletTransactionAssetTransfer'
        chainName:
          $ref: '#/components/schemas/ChainEnum'
        networkId:
          type: number
          example: 1
    BadRequest:
      type: object
      properties:
        error:
          type: string
    Unauthorized:
      type: object
      properties:
        error:
          type: string
          example: No jwt provided!
    Forbidden:
      type: object
      properties:
        error:
          type: string
          example: Access Forbidden
    NotFound:
      type: object
      required:
        - error
        - code
      properties:
        error:
          type: string
          example: Not Found
        code:
          type: string
          example: not_found
    InternalServerError:
      type: object
      properties:
        error:
          type: string
          example: Internal Server Error
    WalletTransactionType:
      type: string
      description: >-
        A transaction label. `sent`, `received`, and `swap` describe the
        transaction's direction relative to the wallet. `token`, `external`, and
        `internal` are asset-category labels emitted for EVM activity; an EVM
        event's `labels` array can contain both a category and a direction
        label.
      enum:
        - sent
        - received
        - swap
        - token
        - external
        - internal
    WalletTransactionAssetTransfer:
      type: object
      required:
        - fromAddress
        - toAddress
        - amount
      properties:
        tokenAddress:
          $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
        fromAddress:
          $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
        toAddress:
          $ref: '#/components/schemas/NonEmptyStringWith255MaxLength'
        amount:
          type: number
          description: Amount of the asset transferred
        metadata:
          type: object
          properties:
            name:
              type: string
              description: Name of the asset
            symbol:
              type: string
              description: Symbol of the asset
            decimals:
              type: number
              description: Decimals of the asset
            imageUri:
              type: string
              description: Logo URI of the asset
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/BadRequest'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Unauthorized'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Forbidden'
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/NotFound'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/InternalServerError'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````