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

# getPriorityFeeEstimate

> Provides fee recommendations based on historical data, considering both global and local fee markets. Available on all Shared RPC plans and Dedicated Nodes.



## OpenAPI

````yaml getpriorityfeeestimate post /
openapi: 3.1.0
info:
  title: Solana Priority Fee API
  version: 1.0.0
  description: >-
    Automatic priority fee calculation for Solana transactions based on
    historical data and network conditions
servers:
  - url: https://rpc-mainnet.solanatracker.io
security: []
paths:
  /:
    post:
      summary: Get priority fee estimates for Solana transactions
      description: >-
        Provides fee recommendations based on historical data, considering both
        global and local fee markets. Available on all Shared RPC plans and
        Dedicated Nodes.
      operationId: getPriorityFeeEstimate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetPriorityFeeEstimateRequest'
            examples:
              withTransaction:
                summary: Request with serialized transaction
                value:
                  jsonrpc: '2.0'
                  id: '1'
                  method: getPriorityFeeEstimate
                  params:
                    - transaction: >-
                        AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArczbMia1tLmq7zz4DinMNN0pJ1JtLdqIJPUw3YrGCzYAMHBsgN27lcgB6H2WQvFgyZuJYHa46puOQo9yQ8CVQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV+/wCp20C7Wj2aiuk5TReAXo+VTVg8QTHjs0UjNMMKCvpzZ+ABAgEBARU=
                      options:
                        recommended: true
              withAccountKeys:
                summary: Request with account keys
                value:
                  jsonrpc: '2.0'
                  id: '1'
                  method: getPriorityFeeEstimate
                  params:
                    - accountKeys:
                        - JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
                        - TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
                      options:
                        recommended: true
              withEmptySlotEvaluation:
                summary: Request with empty slot evaluation
                value:
                  jsonrpc: '2.0'
                  id: '1'
                  method: getPriorityFeeEstimate
                  params:
                    - accountKeys:
                        - JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
                      options:
                        recommended: true
                        evaluateEmptySlotAsZero: true
              withAllPriorityLevels:
                summary: Request with all priority fee levels
                value:
                  jsonrpc: '2.0'
                  id: '1'
                  method: getPriorityFeeEstimate
                  params:
                    - accountKeys:
                        - JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
                      options:
                        includeAllPriorityFeeLevels: true
              withPriorityLevel:
                summary: Request with specific priority level
                value:
                  jsonrpc: '2.0'
                  id: '1'
                  method: getPriorityFeeEstimate
                  params:
                    - accountKeys:
                        - JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
                      options:
                        priorityLevel: High
              withLookbackSlots:
                summary: Request with custom lookback slots
                value:
                  jsonrpc: '2.0'
                  id: '1'
                  method: getPriorityFeeEstimate
                  params:
                    - accountKeys:
                        - JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4
                      options:
                        recommended: true
                        lookbackSlots: 100
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPriorityFeeEstimateResponse'
              examples:
                recommended:
                  summary: Recommended priority fee
                  value:
                    jsonrpc: '2.0'
                    result:
                      priorityFeeEstimate: 10000
                    id: '1'
                allPriorityLevels:
                  summary: All priority fee levels
                  value:
                    jsonrpc: '2.0'
                    result:
                      priorityFeeLevels:
                        min: 0
                        low: 5000
                        medium: 10000
                        high: 50000
                        veryHigh: 100000
                        unsafeMax: 500000
                    id: '1'
                withEmptySlots:
                  summary: Response with empty slot evaluation
                  value:
                    jsonrpc: '2.0'
                    result:
                      priorityFeeEstimate: 8500
                    id: '1'
      security:
        - ApiKeyQuery: []
components:
  schemas:
    GetPriorityFeeEstimateRequest:
      type: object
      required:
        - jsonrpc
        - id
        - method
        - params
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        id:
          type:
            - integer
            - string
          description: Request identifier
        method:
          type: string
          enum:
            - getPriorityFeeEstimate
        params:
          type: array
          minItems: 1
          maxItems: 1
          items:
            type: object
            properties:
              transaction:
                type: string
                description: >-
                  Base58 or Base64 encoded serialized transaction. Either
                  transaction or accountKeys must be provided.
              accountKeys:
                type: array
                description: >-
                  Array of account public keys as base-58 encoded strings.
                  Either transaction or accountKeys must be provided.
                items:
                  type: string
              options:
                type: object
                description: Configuration options for fee estimation
                properties:
                  recommended:
                    type: boolean
                    description: >-
                      Return a single recommended priority fee (typically 50th
                      percentile). Cannot be used with priorityLevel or
                      includeAllPriorityFeeLevels.
                    default: false
                  priorityLevel:
                    type: string
                    enum:
                      - Min
                      - Low
                      - Medium
                      - High
                      - VeryHigh
                      - UnsafeMax
                    description: >-
                      Priority level to estimate fee for. Min=0th, Low=25th,
                      Medium=50th, High=75th, VeryHigh=95th, UnsafeMax=100th
                      percentile.
                  includeAllPriorityFeeLevels:
                    type: boolean
                    description: >-
                      Return all priority fee levels (Min, Low, Medium, High,
                      VeryHigh, UnsafeMax)
                    default: false
                  lookbackSlots:
                    type: integer
                    description: >-
                      Number of slots to look back for fee estimation. Default
                      is 150.
                    minimum: 1
                    maximum: 300
                    default: 150
                  evaluateEmptySlotAsZero:
                    type: boolean
                    description: >-
                      Treat slots with no transactions as having zero fees.
                      Useful for accounts with sparse transaction history.
                    default: false
                  includeVote:
                    type: boolean
                    description: Include vote transactions in fee estimation
                    default: false
            oneOf:
              - required:
                  - transaction
              - required:
                  - accountKeys
    GetPriorityFeeEstimateResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
        result:
          type: object
          description: Priority fee estimation result
          properties:
            priorityFeeEstimate:
              type: number
              description: >-
                Estimated priority fee in micro-lamports per compute unit
                (returned when using recommended or priorityLevel options)
            priorityFeeLevels:
              type: object
              description: >-
                Priority fee estimates for all levels (returned when using
                includeAllPriorityFeeLevels option)
              properties:
                min:
                  type: number
                  description: Minimum priority fee (0th percentile) in micro-lamports
                low:
                  type: number
                  description: Low priority fee (25th percentile) in micro-lamports
                medium:
                  type: number
                  description: Medium priority fee (50th percentile) in micro-lamports
                high:
                  type: number
                  description: High priority fee (75th percentile) in micro-lamports
                veryHigh:
                  type: number
                  description: Very high priority fee (95th percentile) in micro-lamports
                unsafeMax:
                  type: number
                  description: Maximum priority fee (100th percentile) in micro-lamports
        id:
          type:
            - integer
            - string
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key

````