> ## 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.

# Analyze Account Write Locks

> Analyze write lock patterns for a specific Solana account, showing timeline of write locks, conflict events, competing transactions, and hot scores. Queries can take 2-5 minutes for large time ranges. No caching - queries run fresh against ClickHouse. Requires one of three query modes: time_range, slot, or start_date/end_date.



## OpenAPI

````yaml /api-reference/openapi.json post /api/write-locks/account
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:
  /api/write-locks/account:
    post:
      tags:
        - Write Locks
      summary: Analyze Account Write Locks
      description: >-
        Analyze write lock patterns for a specific Solana account, showing
        timeline of write locks, conflict events, competing transactions, and
        hot scores. Queries can take 2-5 minutes for large time ranges. No
        caching - queries run fresh against ClickHouse. Requires one of three
        query modes: time_range, slot, or start_date/end_date.
      operationId: analyzeAccountWriteLocks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account
              properties:
                account:
                  type: string
                  description: Account address to analyze (base58, 32-44 characters)
                  pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
                  example: FnmStvzQ27Pm4U8r3M6gPD7mnk6ST6HwraPsoNmYpump
                time_range:
                  type: string
                  description: >-
                    Query mode 1: Time range (mutually exclusive with slot or
                    start_date/end_date)
                  enum:
                    - 1h
                    - 3h
                    - 6h
                    - 12h
                    - 24h
                    - 48h
                    - 72h
                  example: 24h
                slot:
                  type: integer
                  description: >-
                    Query mode 2: Specific slot number (mutually exclusive with
                    time_range or start_date/end_date)
                  minimum: 1
                  example: 370537741
                start_date:
                  type: integer
                  description: >-
                    Query mode 3: Start of custom date range - Unix timestamp in
                    seconds (requires end_date, mutually exclusive with
                    time_range or slot, max 7 days)
                  minimum: 1
                  example: 1729368000
                end_date:
                  type: integer
                  description: >-
                    Query mode 3: End of custom date range - Unix timestamp in
                    seconds (requires start_date, max 7 days range)
                  minimum: 1
                  example: 1729454400
      responses:
        '200':
          description: Account write lock analysis results
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      account:
                        type: string
                        example: FnmStvzQ27Pm4U8r3M6gPD7mnk6ST6HwraPsoNmYpump
                      query_mode:
                        type: string
                        enum:
                          - time_range
                          - slot
                          - custom_date
                        example: time_range
                      query_value:
                        type: string
                        example: 24h
                      slot_range:
                        type: object
                        properties:
                          min:
                            type: integer
                            example: 370500000
                          max:
                            type: integer
                            example: 370537741
                      summary:
                        type: object
                        properties:
                          total_write_locks:
                            type: integer
                            description: Total write lock count
                            example: 1250
                          total_conflicts:
                            type: integer
                            description: Total conflict events
                            example: 45
                          unique_signers:
                            type: integer
                            description: Number of unique wallets accessing the account
                            example: 23
                          avg_locks_per_slot:
                            type: number
                            description: Average write locks per slot
                            example: 2.5
                          hottest_slot:
                            type: integer
                            nullable: true
                            description: Slot with most write locks
                            example: 370520145
                          hottest_slot_locks:
                            type: integer
                            nullable: true
                            description: Lock count in hottest slot
                            example: 15
                          hot_score:
                            type: number
                            description: Calculated hot score (0-10)
                            example: 7.8
                      write_locks_timeline:
                        type: array
                        description: Time series of write lock counts per slot
                        items:
                          type: object
                          properties:
                            slot:
                              type: integer
                              example: 370537741
                            write_locks:
                              type: integer
                              example: 12
                            timestamp:
                              type: string
                              format: date-time
                              example: '2025-10-01T19:22:33Z'
                      conflict_timeline:
                        type: array
                        description: Time series of conflict events per slot
                        items:
                          type: object
                          properties:
                            slot:
                              type: integer
                              example: 370537741
                            conflict_events:
                              type: integer
                              example: 3
                            timestamp:
                              type: string
                              format: date-time
                              example: '2025-10-01T19:22:33Z'
                      competing_transactions:
                        type: array
                        description: Up to 100 most recent competing transactions
                        items:
                          type: object
                          properties:
                            signature:
                              type: string
                              example: >-
                                5Pj5fCupXLUePYn18JkY8SrRaWFiUctuDTRwvUy2ML9yvkENLb1QMYbcBGcBXRrSVDjp7RjUwk9a3rLC6gpvtYpZ
                            slot:
                              type: integer
                              example: 370537741
                            signer:
                              type: string
                              example: HwraPsoNmYpumpFnmStvzQ27Pm4U8r3M6gPD7mnk6ST6
                  timestamp:
                    type: string
                    format: date-time
                    example: '2025-10-02T15:30:45.123Z'
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                missing_account:
                  value:
                    error: Missing account
                    details: account field is required
                    timestamp: '2025-10-02T15:30:45.123Z'
                conflicting_params:
                  value:
                    error: Invalid parameters
                    details: >-
                      Must provide exactly one of: time_range, slot, or
                      start_date/end_date
                    timestamp: '2025-10-02T15:30:45.123Z'
                date_range_too_large:
                  value:
                    error: Invalid date range
                    details: Date range cannot exceed 7 days
                    timestamp: '2025-10-02T15:30:45.123Z'
        '401':
          $ref: 02ca5649-c9d9-4a5e-8f26-a133d5c61cc5
        '403':
          $ref: 80776eac-c595-4f19-9646-9d6dc9a6cf2c
        '429':
          $ref: cfbde83c-0b04-46b0-b46a-c3a713982079
      security:
        - SupabaseJWT: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        details:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
          description: Detailed error information
        timestamp:
          type: string
          format: date-time
          description: When the error occurred
  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).
    SupabaseJWT:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Supabase JWT authentication. Used for MEV Analysis and Write Locks
        endpoints. Requires an active subscription (trial, active, or
        grace_period status).

````