{
  "openapi": "3.0.0",
  "info": {
    "title": "Solana Priority Fee API API",
    "description": "Estimate Solana fees in real-time with priority fee averages based on recent fee data, all in an ergonomic, easy-to-use API.",
    "version": "1.0.0",
    "contact": {
      "email": "support@quicknode.com",
      "url": "https://support.quicknode.com/"
    }
  },
  "servers": [
    {
      "url": "https://{quicknode_endpoint}",
      "description": "Your Quicknode endpoint",
      "variables": {
        "quicknode_endpoint": {
          "default": "your-endpoint.quiknode.pro",
          "description": "Your Quicknode endpoint URL"
        }
      }
    }
  ],
  "tags": [
    {
      "name": "JSON-RPC",
      "description": "See request body examples for the available methods you can call on this add-on"
    }
  ],
  "paths": {
    "/solana-priority-fee/jsonrpc": {
      "post": {
        "summary": "JSON-RPC methods for https://api.quicknode.com/solana-priority-fee/jsonrpc",
        "description": "qn_estimatePriorityFees: Get fee averages and estimates based on recent fee data",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "qn_estimatePriorityFees"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "object",
                        "description": "Named parameters",
                        "example": {
                          "last_n_blocks": 100,
                          "api_version": 2
                        }
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  }
                ],
                "discriminator": {
                  "propertyName": "method"
                }
              },
              "examples": {
                "qn_estimatePriorityFees": {
                  "summary": "Get fee averages and estimates based on recent fee data",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "qn_estimatePriorityFees",
                    "id": 1,
                    "params": {
                      "last_n_blocks": 100,
                      "api_version": 2
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jsonrpc": {
                      "type": "string",
                      "enum": [
                        "2.0"
                      ]
                    },
                    "id": {
                      "type": "integer"
                    },
                    "result": {
                      "description": "Method result"
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "integer"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "description": "Additional error data"
                        }
                      }
                    }
                  },
                  "required": [
                    "jsonrpc",
                    "id"
                  ]
                }
              }
            }
          }
        },
        "externalDocs": {
          "url": "https://www.quicknode.com/docs/solana/qn_estimatePriorityFees",
          "description": "Documentation for qn_estimatePriorityFees"
        },
        "tags": [
          "JSON-RPC"
        ]
      }
    }
  },
  "externalDocs": {
    "description": "Support Documentation",
    "url": "https://support.quicknode.com/"
  }
}