{
  "openapi": "3.0.0",
  "info": {
    "title": "MEV Protection & Gas Recovery API",
    "description": "Protect your transactions and get cashback on transaction fees.",
    "version": "1.0.0",
    "contact": {
      "email": "contact@blinklabs.xyz",
      "url": "https://docs.blinklabs.xyz"
    }
  },
  "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": {
    "/rpc": {
      "post": {
        "summary": "JSON-RPC methods for https://ethquicknode.blinklabs.xyz",
        "description": "Available methods:\n• eth_sendRawTransaction: eth_sendRawTransaction sends a single transaction to Blink, Blink is able to recover MEV value and return it to the user while ensuring frontrunning protection.\n• eth_getTransactionByHash: A method with positional arguments",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "eth_sendRawTransaction"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "EXAMPLE"
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "jsonrpc": {
                        "type": "string",
                        "enum": [
                          "2.0"
                        ]
                      },
                      "method": {
                        "type": "string",
                        "enum": [
                          "eth_getTransactionByHash"
                        ]
                      },
                      "id": {
                        "type": "integer",
                        "example": 1
                      },
                      "params": {
                        "type": "array",
                        "description": "Positional parameters",
                        "items": {
                          "description": "Parameter value (can be string, number, boolean, object, etc.)"
                        },
                        "example": [
                          "EXAMPLE"
                        ]
                      }
                    },
                    "required": [
                      "jsonrpc",
                      "method",
                      "id",
                      "params"
                    ]
                  }
                ],
                "discriminator": {
                  "propertyName": "method"
                }
              },
              "examples": {
                "eth_sendRawTransaction": {
                  "summary": "eth_sendRawTransaction sends a single transaction to Blink, Blink is able to recover MEV value and return it to the user while ensuring frontrunning protection.",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "eth_sendRawTransaction",
                    "id": 1,
                    "params": [
                      "EXAMPLE"
                    ]
                  }
                },
                "eth_getTransactionByHash": {
                  "summary": "",
                  "value": {
                    "jsonrpc": "2.0",
                    "method": "eth_getTransactionByHash",
                    "id": 1,
                    "params": [
                      "EXAMPLE"
                    ]
                  }
                }
              }
            }
          }
        },
        "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://docs.blinklabs.xyz/blink/get-started/api-reference/eth_sendrawtransaction",
          "description": "Documentation: eth_sendRawTransaction: https://docs.blinklabs.xyz/blink/get-started/api-reference/eth_sendrawtransaction, eth_getTransactionByHash: https://docs.blinklabs.xyz/blink/get-started/api-reference/eth_gettransactionbyhash"
        },
        "tags": [
          "JSON-RPC"
        ]
      }
    }
  },
  "externalDocs": {
    "description": "Support Documentation",
    "url": "https://docs.blinklabs.xyz"
  }
}