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

# Backfill Transaction

> Backfills transaction data for a given signature and account into the analytics database. Useful for ensuring specific transactions are tracked and analyzed within a specified slot range. The backfill runs asynchronously and returns immediately with a request ID for tracking.



## OpenAPI

````yaml /api-reference/openapi.json post /backfill-transaction
openapi: 3.0.3
info:
  title: Blockline MEV Analytics API
  description: >-
    Professional MEV analytics API for Solana. Analyze transaction context,
    detect front-running, identify sandwich attacks, and gain competitive
    intelligence on Solana MEV activity.
  version: 1.0.0
  contact:
    name: Blockline Support
    url: https://blockline.soltop.sh
servers:
  - url: https://api.soltop.sh
    description: Production API
security:
  - ApiKeyAuth: []
tags:
  - name: Trade Analysis
    description: Analyze MEV activity and transaction context
  - name: Transactions
    description: Transaction details and metadata
  - name: Wallets
    description: Wallet transaction history
  - name: Data Management
    description: Backfill and data operations
  - name: MEV Analysis
    description: >-
      Sandwich attack detection: scan wallets, check transactions, and profile
      attackers (async job queue)
  - name: Write Locks
    description: Account write lock contention and hot account analysis
paths:
  /backfill-transaction:
    post:
      tags:
        - Data Management
      summary: Backfill Transaction
      description: >-
        Backfills transaction data for a given signature and account into the
        analytics database. Useful for ensuring specific transactions are
        tracked and analyzed within a specified slot range. The backfill runs
        asynchronously and returns immediately with a request ID for tracking.
      operationId: backfillTransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - signature
                - account
              properties:
                signature:
                  type: string
                  description: Transaction signature to backfill (base58, 87-88 characters)
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{87,88}$
                  example: >-
                    pHXgUjY4cVvi5orXuK3b66MBhF2W3MpXruRGKodqTWze7354iVQ66k1rWCzyWTU7UDeebojPTpW9ZmVv9Dn12cg
                account:
                  type: string
                  description: The market/account ID to analyze (base58, 32-44 characters)
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  example: FnmStvzQ27Pm4U8r3M6gPD7mnk6ST6HwraPsoNmYpump
                slotRange:
                  type: integer
                  description: Number of slots before/after to analyze
                  default: 2
                  minimum: 1
                  maximum: 100
                  example: 2
      responses:
        '200':
          description: Backfill initiated
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    type: object
                    properties:
                      status:
                        type: string
                        example: Backfill started
                      query_info:
                        type: object
                        properties:
                          signature:
                            type: string
                          account:
                            type: string
                          slot_range:
                            type: integer
                          request_id:
                            type: string
                            example: abc123xyz
                      message:
                        type: string
                        example: Backfill initiated. Check logs for completion status.
        '400':
          $ref: 8bfc2abc-1edb-488f-91c7-8ada8fb2fc2d
        '401':
          $ref: 02ca5649-c9d9-4a5e-8f26-a133d5c61cc5
        '403':
          $ref: 80776eac-c595-4f19-9646-9d6dc9a6cf2c
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        API Key authentication. Format: `sk_live_xxx` (production) or
        `sk_test_xxx` (testing). Obtain your API key from the [Blockline
        Dashboard](https://blockline.soltop.sh/dashboard/api-keys).

````