Skip to main content
GET
/
v2
/
advanced-filters
List transactions, internal transactions and token transfers matching the advanced filter criteria
curl --request GET \
  --url http://localhost/api/v2/advanced-filters
{
  "items": [
    {
      "block_number": 1,
      "created_contract": {
        "ens_domain_name": "<string>",
        "hash": "<string>",
        "implementations": [
          {
            "address_hash": "<string>",
            "name": "<string>"
          }
        ],
        "is_contract": true,
        "is_scam": true,
        "is_verified": true,
        "metadata": {
          "tags": [
            {
              "meta": {},
              "name": "<string>",
              "ordinal": 123,
              "slug": "<string>",
              "tagType": "<string>"
            }
          ]
        },
        "name": "<string>",
        "proxy_type": "eip1167",
        "reputation": "ok",
        "private_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "public_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "watchlist_names": [
          {
            "display_name": "<string>",
            "label": "<string>"
          }
        ]
      },
      "fee": "<string>",
      "from": {
        "ens_domain_name": "<string>",
        "hash": "<string>",
        "implementations": [
          {
            "address_hash": "<string>",
            "name": "<string>"
          }
        ],
        "is_contract": true,
        "is_scam": true,
        "is_verified": true,
        "metadata": {
          "tags": [
            {
              "meta": {},
              "name": "<string>",
              "ordinal": 123,
              "slug": "<string>",
              "tagType": "<string>"
            }
          ]
        },
        "name": "<string>",
        "proxy_type": "eip1167",
        "reputation": "ok",
        "private_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "public_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "watchlist_names": [
          {
            "display_name": "<string>",
            "label": "<string>"
          }
        ]
      },
      "hash": "<string>",
      "internal_transaction_index": 1,
      "method": "transfer",
      "status": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "to": {
        "ens_domain_name": "<string>",
        "hash": "<string>",
        "implementations": [
          {
            "address_hash": "<string>",
            "name": "<string>"
          }
        ],
        "is_contract": true,
        "is_scam": true,
        "is_verified": true,
        "metadata": {
          "tags": [
            {
              "meta": {},
              "name": "<string>",
              "ordinal": 123,
              "slug": "<string>",
              "tagType": "<string>"
            }
          ]
        },
        "name": "<string>",
        "proxy_type": "eip1167",
        "reputation": "ok",
        "private_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "public_tags": [
          {
            "address_hash": "<string>",
            "display_name": "<string>",
            "label": "<string>"
          }
        ],
        "watchlist_names": [
          {
            "display_name": "<string>",
            "label": "<string>"
          }
        ]
      },
      "token": {
        "address_hash": "<string>",
        "circulating_market_cap": "<string>",
        "decimals": "<string>",
        "exchange_rate": "<string>",
        "holders_count": "<string>",
        "icon_url": "https://example.com",
        "name": "<string>",
        "reputation": "ok",
        "symbol": "<string>",
        "total_supply": "<string>",
        "type": "ERC-20",
        "volume_24h": "<string>",
        "bridge_type": "omni",
        "foreign_address": "<string>",
        "origin_chain_id": "<string>"
      },
      "token_transfer_batch_index": 1,
      "token_transfer_index": 1,
      "total": {
        "token_id": "<string>",
        "token_instance": {
          "animation_url": "https://example.com",
          "external_app_url": "https://example.com",
          "id": "<string>",
          "image_url": "https://example.com",
          "is_unique": true,
          "media_type": "image/png",
          "media_url": "https://example.com",
          "metadata": {
            "description": "Test",
            "image": "https://example.com/image.png",
            "name": "Test"
          },
          "owner": {
            "ens_domain_name": "<string>",
            "hash": "<string>",
            "implementations": [
              {
                "address_hash": "<string>",
                "name": "<string>"
              }
            ],
            "is_contract": true,
            "is_scam": true,
            "is_verified": true,
            "metadata": {
              "tags": [
                {
                  "meta": {},
                  "name": "<string>",
                  "ordinal": 123,
                  "slug": "<string>",
                  "tagType": "<string>"
                }
              ]
            },
            "name": "<string>",
            "proxy_type": "eip1167",
            "reputation": "ok",
            "private_tags": [
              {
                "address_hash": "<string>",
                "display_name": "<string>",
                "label": "<string>"
              }
            ],
            "public_tags": [
              {
                "address_hash": "<string>",
                "display_name": "<string>",
                "label": "<string>"
              }
            ],
            "watchlist_names": [
              {
                "display_name": "<string>",
                "label": "<string>"
              }
            ]
          },
          "thumbnails": {
            "original": "<string>",
            "250x250": "<string>",
            "500x500": "<string>",
            "60x60": "<string>"
          },
          "token": {
            "address_hash": "<string>",
            "circulating_market_cap": "<string>",
            "decimals": "<string>",
            "exchange_rate": "<string>",
            "holders_count": "<string>",
            "icon_url": "https://example.com",
            "name": "<string>",
            "reputation": "ok",
            "symbol": "<string>",
            "total_supply": "<string>",
            "type": "ERC-20",
            "volume_24h": "<string>",
            "bridge_type": "omni",
            "foreign_address": "<string>",
            "origin_chain_id": "<string>"
          },
          "token_type": "ERC-20",
          "value": "<string>"
        }
      },
      "transaction_index": 1,
      "type": "coin_transfer",
      "value": "<string>"
    }
  ],
  "next_page_params": {
    "block_number": 23532302,
    "internal_transaction_index": null,
    "items_count": 50,
    "token_transfer_batch_index": null,
    "token_transfer_index": 0,
    "transaction_index": 1
  },
  "search_params": {
    "methods": {},
    "tokens": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.blockscout.com/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

apikey
string

API key for rate limiting or for sensitive endpoints

key
string

Secret key for getting access to restricted resources

transaction_types
string | null

Comma-separated list of transaction types to include. Allowed values: COIN_TRANSFER, CONTRACT_INTERACTION, CONTRACT_CREATION, ERC-20, ERC-404, ERC-721, ERC-1155, ERC-7984 (plus ZRC-2 on Zilliqa). Values are matched case-insensitively; unknown entries are silently dropped.

methods
string | null

Comma-separated list of 4-byte contract method selectors (lowercase, 0x-prefixed). At most 20 unique entries are honored; invalid entries are dropped.

age_from
string | null

Inclusive lower bound on timestamp (ISO 8601).

age_to
string | null

Inclusive upper bound on timestamp (ISO 8601).

from_address_hashes_to_include
string | null

Comma-separated list of sender address hashes to include.

from_address_hashes_to_exclude
string | null

Comma-separated list of sender address hashes to exclude.

to_address_hashes_to_include
string | null

Comma-separated list of recipient address hashes to include.

to_address_hashes_to_exclude
string | null

Comma-separated list of recipient address hashes to exclude.

address_relation
string | null

How to combine the from_address_hashes_* and to_address_hashes_* filters. Accepts or or and (case-insensitive). or (default) matches an item if either side matches; and requires both sides to match. Any other value is silently coerced to nil (no relation constraint).

amount_from
string | null

Inclusive lower bound on the item's transferred amount (decimal string in the token's base units).

amount_to
string | null

Inclusive upper bound on the item's transferred amount (decimal string in the token's base units).

token_contract_address_hashes_to_include
string | null

Comma-separated list of token contract address hashes to include. Use the literal native to also include native coin transfers. Each list (include and exclude) is capped to 20 entries separately.

token_contract_address_hashes_to_exclude
string | null

Comma-separated list of token contract address hashes to exclude. Use the literal native to also exclude native coin transfers. Each list (include and exclude) is capped to 20 entries separately.

block_number
string

Keyset cursor: block number of the last item from the previous page.

Pattern: ^([1-9][0-9]*|0)$
transaction_index
string

Keyset cursor: transaction index within the block of the last item from the previous page.

Pattern: ^([1-9][0-9]*|0)$
internal_transaction_index

Keyset cursor: internal-transaction index of the last item from the previous page. Use an empty string or the literal null when the previous item was not an internal transaction.

Pattern: ^([1-9][0-9]*|0)$
token_transfer_index

Keyset cursor: token-transfer index of the last item from the previous page. Use an empty string or the literal null when the previous item was not a token transfer.

Pattern: ^([1-9][0-9]*|0)$
token_transfer_batch_index

Keyset cursor: index within an ERC-1155 batch token transfer. Use an empty string or the literal null when the previous item was not part of a batch.

Pattern: ^([1-9][0-9]*|0)$
items_count
integer

Cumulative number of items already returned across previous pages.

Required range: x >= 1

Response

List of matching items with pagination information and resolved search params.

items
AdvancedFilterItem · object[]
required
next_page_params
object
required
Example:
{
"block_number": 23532302,
"internal_transaction_index": null,
"items_count": 50,
"token_transfer_batch_index": null,
"token_transfer_index": 0,
"transaction_index": 1
}
search_params
AdvancedFilterSearchParams · object
required