---
updatedAt: 2025-10-20T17:00:00.000Z
agentTools:
  projectIndex: https://b2b-api-arbitragescanner.readme.io/llms.txt
---

# Get Swaps by address

Returns a list of swap transactions that occurred within the specified address.
The response includes details such astoken addresses, amounts in/out, timestamps, and transaction hashes.
Supports pagination, default order is timestamp desc.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Onchain indexed data API docs",
    "summary": "This document contains a description of all essential request and response schemes.",
    "version": "2.5",
    "x-logo": {
      "url": "https://s3.arbitragescanner.io/logo.png"
    }
  },
  "paths": {
    "/v1/{evm_chain}/address/swaps": {
      "get": {
        "tags": [
          "EVM:Address"
        ],
        "summary": "Get Swaps by address",
        "description": "Returns a list of swap transactions that occurred within the specified address.\nThe response includes details such astoken addresses, amounts in/out, timestamps, and transaction hashes.\nSupports pagination, default order is timestamp desc.",
        "operationId": "get_evm_address_swaps_api_v1__evm_chain__address_swaps_get",
        "security": [
          {
            "ApiKeyAuth": []
          }
        ],
        "parameters": [
          {
            "name": "evm_chain",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/EvmChainEnum",
              "description": "Target blockchain network (e.g., ethereum, polygon, bsc).",
              "examples": [
                "ethereum"
              ]
            },
            "description": "Target blockchain network (e.g., ethereum, polygon, bsc)."
          },
          {
            "name": "address",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "EVM address (wallet or contract).",
              "examples": [
                "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
              ],
              "title": "Address"
            },
            "description": "EVM address (wallet or contract)."
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Number of records to skip (for pagination).",
              "examples": [
                0
              ],
              "default": 0,
              "title": "Offset"
            },
            "description": "Number of records to skip (for pagination)."
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "description": "Maximum number of records to return.",
              "examples": [
                20
              ],
              "default": 20,
              "title": "Limit"
            },
            "description": "Maximum number of records to return."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginatedData_EthAddressSwap_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EthAddressSwap": {
        "properties": {
          "tx": {
            "type": "string",
            "title": "Tx"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "title": "Timestamp"
          },
          "pool_address": {
            "type": "string",
            "title": "Pool Address"
          }
        },
        "type": "object",
        "required": [
          "tx",
          "timestamp",
          "pool_address"
        ],
        "title": "EthAddressSwap"
      },
      "EvmChainEnum": {
        "type": "string",
        "enum": [
          "ethereum"
        ],
        "title": "EvmChainEnum"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "PaginatedData_EthAddressSwap_": {
        "properties": {
          "meta": {
            "$ref": "#/components/schemas/PaginationMeta"
          },
          "data": {
            "items": {
              "$ref": "#/components/schemas/EthAddressSwap"
            },
            "type": "array",
            "title": "Data"
          }
        },
        "type": "object",
        "required": [
          "meta",
          "data"
        ],
        "title": "PaginatedData[EthAddressSwap]"
      },
      "PaginationMeta": {
        "properties": {
          "limit": {
            "type": "integer",
            "title": "Limit"
          },
          "offset": {
            "type": "integer",
            "title": "Offset"
          },
          "has_next_page": {
            "type": "boolean",
            "title": "Has Next Page"
          }
        },
        "type": "object",
        "required": [
          "limit",
          "offset",
          "has_next_page"
        ],
        "title": "PaginationMeta"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "name": "X-API-Key",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "EVM:Address",
      "description": "Various address related data."
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "servers": [
    {
      "url": "https://b2b.api.arbitragescanner.io/api/onchain/"
    }
  ]
}
```