{
  "openrpc": "1.2.6",
  "info": {
    "title": "Ethereum Flashbots Protect",
    "description": "Quicknode Ethereum Flashbots Protect reference",
    "version": "1.0.0"
  },
  "methods": [
    {
      "name": "eth_cancelPrivateTransaction",
      "summary": "Stops the private transactions from being submitted for the future blocks.",
      "description": "Stops the private transactions from being submitted for the future blocks.",
      "params": [
        {
          "name": "object",
          "description": "The private transaction cancellation request object with the following fields:",
          "required": true,
          "schema": {
            "type": "object",
            "properties": {
              "txHash": {
                "type": "string",
                "description": "The transaction hash for the private transaction to be canceled. A transaction can only be requested to be canceled if the request is made from the same endpoint the eth_sendPrivateTransaction call was made from"
              }
            }
          }
        }
      ],
      "result": {
        "name": "result",
        "description": "It is true if the transaction is successfully canceled, otherwise false",
        "schema": {
          "type": "string"
        }
      },
      "tags": [
        {
          "name": "eth"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/ethereum/eth_cancelPrivateTransaction"
      },
      "examples": [
        {
          "name": "eth_cancelPrivateTransaction example",
          "params": [
            {
              "name": "object",
              "value": {
                "txHash": "PRIVATE_TX_HASH"
              }
            }
          ],
          "result": {
            "name": "eth_cancelPrivateTransaction result",
            "value": "true"
          }
        }
      ]
    },
    {
      "name": "eth_sendPrivateTransaction",
      "summary": "Sends a single transaction to Flashbots for frontrunning and revert protection without the complexity of sending it as a",
      "description": "Sends a single transaction to Flashbots for frontrunning and revert protection without the complexity of sending it as a bundle.",
      "params": [
        {
          "name": "tx",
          "description": "The raw signed transaction",
          "required": true,
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "maxBlockNumber",
          "description": "The highest block number encoded in hexadecimal value in which the transaction should be included",
          "schema": {
            "type": "string"
          }
        },
        {
          "name": "preferences",
          "description": "The preferences object",
          "schema": {
            "type": "object",
            "properties": {
              "fast": {
                "type": "boolean",
                "description": "It sends the transaction with fast mode when true"
              }
            }
          }
        }
      ],
      "result": {
        "name": "result",
        "description": "It is true if the transaction is successfully canceled, otherwise false",
        "schema": {
          "type": "string"
        }
      },
      "tags": [
        {
          "name": "eth"
        }
      ],
      "externalDocs": {
        "description": "Quicknode docs",
        "url": "https://www.quicknode.com/docs/ethereum/eth_sendPrivateTransaction"
      },
      "examples": [
        {
          "name": "eth_sendPrivateTransaction example",
          "params": [
            {
              "name": "tx",
              "value": "RAW_SIGNED_TX"
            }
          ],
          "result": {
            "name": "eth_sendPrivateTransaction result",
            "value": "0x45df1bc3de765927b053ec029fc9d15d6321945b23cac0614eb0b5e61f3a2f2a"
          }
        }
      ]
    }
  ],
  "servers": [
    {
      "name": "Flashbots Protect",
      "url": "https://docs-demo.quiknode.pro"
    }
  ]
}