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

# getPriorityFeeEstimate

> 최근 네트워크 활동과 계정 잠금을 기반으로 솔라나 트랜잭션의 포함 및 비용 최적화를 위한 우선 수수료 견적 추천을 받습니다.

## 요청 매개변수

<ParamField body="transaction" type="string">
  최적의 우선 수수료를 견적하기 위한 Base58 또는 Base64로 인코딩된 솔라나 트랜잭션입니다. API는 이 트랜잭션의 특정 명령어와 계정을 분석하여 현재 네트워크 조건과 계산 복잡성을 기반으로 정확한 수수료 견적을 제공합니다.
</ParamField>

<ParamField body="accountKeys" type="array">
  우선 수수료를 견적하기 위한 솔라나 계정 공개 키 배열 (트랜잭션을 제공하는 대안)
</ParamField>

<ParamField body="options" type="object">
  네트워크 조건에 기반한 솔라나 우선 수수료 견적을 사용자 맞춤 설정하기 위한 고급 옵션
</ParamField>

<ParamField body="options.transactionEncoding" type="string">
  제공된 솔라나 트랜잭션의 인코딩 형식

  * `Base58`
  * `Base64`
</ParamField>

<ParamField body="options.priorityLevel" type="string">
  현재 솔라나 네트워크 혼잡도를 기반으로 수수료를 견적할 특정 우선 수준

  * `Min`
  * `Low`
  * `Medium`
  * `High`
  * `VeryHigh`
  * `UnsafeMax`
</ParamField>

<ParamField body="options.includeAllPriorityFeeLevels" type="boolean">
  true일 경우, 최소에서 최대까지 모든 우선 수준의 포괄적인 견적을 반환합니다.
</ParamField>

<ParamField body="options.lookbackSlots" type="number">
  정확한 수수료 견적을 위한 최근 솔라나 블록체인 슬롯 수 (1-150)
</ParamField>

<ParamField body="options.includeVote" type="boolean">
  true일 경우, 보다 포괄적인 분석을 위해 투표 트랜잭션을 수수료 계산에 포함합니다.
</ParamField>

<ParamField body="options.recommended" type="boolean">
  true일 경우, 현재 솔라나 네트워크 조건에 기반한 추천 최적 수수료를 반환합니다.
</ParamField>

<ParamField body="options.evaluateEmptySlotAsZero" type="boolean">
  true일 경우, 트랜잭션이 없는 슬롯을 계산에서 수수료가 없는 슬롯으로 계산합니다.
</ParamField>


## OpenAPI

````yaml ko/openapi/priority-fee-api/getPriorityFeeEstimate.yaml POST /
openapi: 3.1.0
info:
  title: Solana 우선 수수료 최적화 API
  version: 1.0.0
  description: >
    Solana 블록체인에서 거래 확인 시간과 비용을 최적화하기 위한 고급 Solana 우선 수수료 추정 API.

    이 특수화된 API는 다중 우선 순위 레벨에서 실시간 데이터 기반의 수수료 추천을 제공하여 네트워크 혼잡 시 거래 처리량을 극대화하는 데
    도움이 됩니다. 지갑, DeFi 애플리케이션, NFT 플랫폼 및 최적화된 비용으로 신뢰할 수 있는 거래 처리가 필요한 모든 Solana
    프로젝트에 이상적입니다.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://mainnet.helius-rpc.com
    description: Mainnet RPC 엔드포인트
  - url: https://devnet.helius-rpc.com
    description: Devnet RPC 엔드포인트
security: []
paths:
  /:
    post:
      summary: Solana 우선 수수료 견적 받기
      description: >
        실시간 네트워크 조건에 따라 Solana 거래의 최적의 우선 수수료 권장 사항을 계산합니다. 이 고급 API는 역사적인 수수료
        데이터를 분석하고 현재 혼잡 수준을 분석하여 다양한 우선 순위 레벨에 대한 정확한 수수료 추정을 제공합니다.
      operationId: getPriorityFeeEstimate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PriorityFeeEstimateRequest'
      responses:
        '200':
          description: Solana 우선 수수료 견적을 성공적으로 검색했습니다.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriorityFeeEstimateResponse'
              examples:
                singleEstimateResponse:
                  value:
                    jsonrpc: '2.0'
                    result:
                      priorityFeeEstimate: 120000
                    id: '1'
                allLevelsResponse:
                  value:
                    jsonrpc: '2.0'
                    result:
                      priorityFeeLevels:
                        min: 0
                        low: 2
                        medium: 10082
                        high: 100000
                        veryHigh: 1000000
                        unsafeMax: 50000000
                    id: '1'
        '400':
          description: 잘못된 요청
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                    description: JSON-RPC version identifier
                  error:
                    type: object
                    description: 오류 정보
                    properties:
                      code:
                        type: integer
                        example: -32602
                        description: 오류 코드
                      message:
                        type: string
                        example: Invalid params
                        description: 오류 메시지
                  id:
                    type: string
                    description: 요청과 일치하는 클라이언트 생성 식별자
        '401':
          description: 권한 없음 — API 키 누락 또는 잘못됨.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32001
                      message:
                        type: string
                        example: Unauthorized
                  id:
                    type: string
        '429':
          description: 요청이 너무 많습니다 — 속도 제한 초과.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32005
                      message:
                        type: string
                        example: Too many requests
                  id:
                    type: string
        '500':
          description: 내부 서버 오류입니다. 지수 백오프를 사용하여 재시도할 수 있습니다.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  error:
                    type: object
                    properties:
                      code:
                        type: integer
                        example: -32603
                      message:
                        type: string
                        example: Internal error
                  id:
                    type: string
      security:
        - ApiKeyQuery: []
components:
  schemas:
    PriorityFeeEstimateRequest:
      type: object
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
          default: '2.0'
          description: Solana RPC API 요청을 위한 JSON-RPC 버전 식별자, "2.0"이어야 합니다.
        id:
          type: string
          default: '1'
          description: 요청에 대한 클라이언트 생성 식별자
        method:
          type: string
          enum:
            - getPriorityFeeEstimate
          default: getPriorityFeeEstimate
          description: RPC 메서드 이름
        params:
          type: array
          description: 메서드 호출에 대한 매개변수
          default:
            - transaction: >-
                LxzhDW7TapzziJVHEGPh1QjmZB6kjNqmvuJ9gmihBGEkzw2N8ospDq32UZdVmKWzRZqKuyvhp7xmLvsmmHa3MfxVKpYoLV9cPkw5isHnHgDUwLSMsDaZ4dLEULexXAvuV9k6fLD2LMhFKM6gqH6j69GQLAm1g4e3z5ZVZN6pmJdSmZ4PqKcwNn4sS7E3Abp1hV59uBJB9i4jEdEAh28rZ8WCeNizzEmrJZFhatFFFGSDsk23jDPEjbkMcoRWXKf1WthFScC2S6Wz284Dtjqp7kW8eybV3DpmN9DtBbcfFNQPtUwmiBZCKszdYym5AjJvRHiUKUdMwFpC3toPnMvTmKZ9iHQtzZRkg5xBufRtUN5eVYJfdw2DxzH6RfqhC2rAjfSbfJA4wmaq9f5eUe2iEjmqvne6r85PPcHBJzyqkVtAyUFtTc9DfU8UiM9rFhQ2UB71M6m5UCsC6EwowMw5k8iF8rL7iPCLdubVdy8S58DPLNG4E4rdosev1T63YdRWSgEwBZh7iX4zGBA9AKAm3B9itCSxLSL46Y6uZgVku9UXsMcWWz3URoa6hRbo55CYPLhrVeqjqX5DsXpaG6QkngbEaESQUnkakE1AFkYXmNXEd2m3sLRTYB2o5UTkwkJS2u5sJHyYqAvXr3vFZr7qAYFLD3LwS5tsdb45ZQVQwsbnNddMHgkpmSqLHS6Fv1epxqHbzpRCU1tgMsriApVWC3pj2LLD41HxkV8aKvkVyHgJFACUtbvRBZAasHf1F71Gz3qZNTdh3efWsZJRXnfxKPbATU7NTMaMUL8JjknfoVwp3
          items:
            type: object
            properties:
              transaction:
                type: string
                description: >
                  최적의 우선 수수료를 추정하기 위한 Base58 또는 Base64로 인코딩된 Solana 거래.

                  API는 이 거래의 특정 지시 사항과 계정을 분석하여 현재 네트워크 조건 및 계산 복잡성을 기반으로 정확한
                  수수료를 추정합니다.
              accountKeys:
                type: array
                description: 우선 수수료를 추정할 Solana 계정 공개 키 배열 (거래 제공의 대안)
                items:
                  type: string
                  description: Base58로 인코딩된 Solana 계정의 공개 키
              options:
                $ref: '#/components/schemas/PriorityFeeOptions'
    PriorityFeeEstimateResponse:
      type: object
      properties:
        jsonrpc:
          type: string
          enum:
            - '2.0'
          description: JSON-RPC 버전 식별자
        id:
          type: string
          description: 요청과 일치하는 클라이언트 생성 식별자
        result:
          type: object
          description: 포괄적인 Solana 우선 수수료 추정을 포함하는 결과 객체
          properties:
            priorityFeeEstimate:
              type: number
              format: float
              description: >
                최근 블록체인 활동 및 계산 요구 사항을 기반으로 계산된 요구된 Solana 거래에 대한 최적의 우선 수수료
                추정치(마이크로라포트).
            priorityFeeLevels:
              type: object
              description: |
                Solana 블록체인에서 다양한 우선 순위 레벨에 대한 세부 수수료 추정치(마이크로라포트),
                개발자가 비용과 확인 속도 간의 최적의 균형을 선택할 수 있도록 지원합니다.
              properties:
                min:
                  type: number
                  format: float
                  description: |
                    Solana 거래에 대한 최소 실행 수수료 - 낮은 혼잡 기간에 비긴급 거래에 적합
                    (네트워크 혼잡 시 거래 실패 가능)
                low:
                  type: number
                  format: float
                  description: |
                    Solana 거래에 대한 낮은 우선 수수료 - 시간이 절대적으로 민감하지 않은 거래를 위한 경제적인 옵션
                    (긴 확인 시간, 낮은 비용)
                medium:
                  type: number
                  format: float
                  description: |
                    Solana 거래에 대한 중간 우선 수수료 - 대부분의 표준 거래에 대한 균형 잡힌 옵션
                    (적절한 확인 시간과 중간 비용)
                high:
                  type: number
                  format: float
                  description: |
                    Solana 거래에 대한 높은 우선 수수료 - 시간에 민감한 작업을 위한 우선 처리
                    예: DeFi 거래 또는 NFT 민팅 (빠른 확인, 높은 비용)
                veryHigh:
                  type: number
                  format: float
                  description: |
                    Solana 거래에 대한 매우 높은 우선 수수료 - 즉각적인 확인이 필요한 중요 거래에 대한 프리미엄 옵션
                    (매우 빠른 확인, 프리미엄 비용)
                unsafeMax:
                  type: number
                  format: float
                  description: |
                    Solana에서 관찰된 최대 수수료 - 분석 창에서 관찰된 가장 높은 수수료로
                    극한 혼잡 시 상한을 나타내며 (가능한 가장 빠른 확인, 그러나 불필요하게 높은 가능성도 있음)
    PriorityFeeOptions:
      type: object
      description: 네트워크 조건에 따라 Solana 우선 수수료 추정을 사용자 정의하기 위한 고급 옵션
      properties:
        transactionEncoding:
          type: string
          enum:
            - Base58
            - Base64
          description: 제공된 Solana 거래의 인코딩 형식
        priorityLevel:
          type: string
          enum:
            - Min
            - Low
            - Medium
            - High
            - VeryHigh
            - UnsafeMax
          description: 현재 Solana 네트워크 혼잡에 기반하여 수수료를 추정할 특정 우선 순위 레벨
        includeAllPriorityFeeLevels:
          type: boolean
          description: true일 경우 최소에서 최대까지의 모든 우선 순위 레벨에 대한 포괄적인 추정치 반환
        lookbackSlots:
          type: integer
          minimum: 1
          maximum: 150
          description: 정확한 수수료 추정을 위한 최근 Solana 블록체인 슬롯 수 (1-150)
        includeVote:
          type: boolean
          description: true일 경우, 수수료 계산에 투표 거래를 포함하여 보다 포괄적인 분석 제공
        recommended:
          type: boolean
          description: true일 경우, 현재 Solana 네트워크 조건에 기반한 최적의 추천 수수료 반환
        evaluateEmptySlotAsZero:
          type: boolean
          description: true일 경우, 거래가 없는 슬롯을 수수료가 없는 슬롯으로 계산에 포함
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api-key
      description: >-
        Helius API 키입니다. [대시보드](https://dashboard.helius.dev/api-keys)에서 무료로 받을
        수 있습니다.

````