{
  "openapi": "3.1.0",
  "info": {
    "title": "Internal Transactions Advanced Filter",
    "version": "2.0.0",
    "description": "Retrieves Internal Transactions with advanced from and to address filtering.",
    "license": {
      "name": "Etherscan API Terms",
      "url": "https://etherscan.io/terms"
    }
  },
  "servers": [
    {
      "url": "https://api.etherscan.io",
      "description": "Etherscan API."
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/v2/api": {
      "get": {
        "operationId": "getAdvancedFilterTxlistinternal",
        "summary": "Internal Transactions Advanced Filter",
        "description": "Retrieves Internal Transactions with advanced from and to address filtering.",
        "parameters": [
          {
            "name": "chainid",
            "in": "query",
            "required": true,
            "description": "Chain ID to query, such as 1 for Ethereum or 8453 for Base from our supported chains.",
            "schema": {
              "type": "string"
            },
            "example": "1"
          },
          {
            "name": "module",
            "in": "query",
            "required": true,
            "description": "Set to account for this endpoint.",
            "schema": {
              "type": "string",
              "default": "account"
            },
            "example": "account"
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "Set to txlistinternal for this endpoint.",
            "schema": {
              "type": "string",
              "default": "txlistinternal"
            },
            "example": "txlistinternal"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "The sender address to filter transactions by. Provide from or to, or provide both startblock and endblock.",
            "schema": {
              "type": "string"
            },
            "example": "0x73605779985A11B8Fe32E6eD5ae5F249FFD0D7f0"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "The recipient address to filter transactions by. Provide to or from, or provide both startblock and endblock.",
            "schema": {
              "type": "string"
            },
            "example": "0x71c7656ec7ab88b098defb751b7401b5f6d8976f"
          },
          {
            "name": "fromto_opr",
            "in": "query",
            "required": false,
            "description": "Required when from or to is provided. Use and when both addresses must match, or or when either address can match.",
            "schema": {
              "type": "string"
            },
            "example": "or"
          },
          {
            "name": "startblock",
            "in": "query",
            "required": false,
            "description": "Starting block number to search from.",
            "schema": {
              "type": "integer"
            },
            "example": 0
          },
          {
            "name": "endblock",
            "in": "query",
            "required": false,
            "description": "Ending block number to search to, or latest for the latest block.",
            "schema": {
              "type": "string"
            },
            "example": "latest"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "Sort order, either desc for the latest transactions first or asc for the oldest transactions first.",
            "schema": {
              "type": "string"
            },
            "example": "desc"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number for pagination.",
            "schema": {
              "type": "integer"
            },
            "example": 1
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Number of records per page. Use the page parameter for subsequent records.",
            "schema": {
              "type": "integer"
            },
            "example": 10
          }
        ],
        "security": [
          {
            "apiKey": []
          }
        ],
        "x-mint": {
          "metadata": {
            "title": "Internal Transactions Advanced Filter",
            "description": "Retrieves Internal Transactions with advanced from and to address filtering."
          }
        },
        "x-etherscan-source-page": {
          "page": "api-reference/endpoint/advanced-filter-txlistinternal",
          "title": "Internal Transactions Advanced Filter",
          "module": "account",
          "action": "txlistinternal"
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "query",
        "name": "apikey",
        "description": "Your Etherscan API key."
      }
    }
  }
}