generated from mintlify/starter
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
236 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: Cancel Transaction | ||
openapi: post /v1/debug/cancel_transaction/{txHash} | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title : Pending Transactions | ||
openapi: get /v1/debug/pending_transactions | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: Topology | ||
openapi: get /v1/debug/topology | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
{ | ||
"openapi" : "3.0.0", | ||
"info" : { | ||
"title" : "Debug API", | ||
"version" : "1.0.0", | ||
"license" : { | ||
"name" : "Business Source License 1.1", | ||
"url" : "https://github.com/primev/mev-commit/blob/main/LICENSE" | ||
} | ||
}, | ||
"paths" : { | ||
"/v1/debug/cancel_transaction/{txHash}" : { | ||
"post" : { | ||
"summary" : "CancelTransaction", | ||
"description" : "CancelTransaction is called by the provider to cancel a transaction sent from this wallet.", | ||
"operationId" : "DebugService_CancelTransaction", | ||
"responses" : { | ||
"200" : { | ||
"description" : "A successful response.", | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/v1CancelTransactionResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"default" : { | ||
"description" : "An unexpected error response.", | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/googlerpcStatus" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"parameters" : [ { | ||
"name" : "txHash", | ||
"description" : "Hex string encoding of the hash of the transaction that the bidder wants to cancel.", | ||
"in" : "path", | ||
"required" : true, | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} ] | ||
} | ||
}, | ||
"/v1/debug/pending_transactions" : { | ||
"get" : { | ||
"summary" : "GetPendingTransactions", | ||
"description" : "GetPendingTransactions is called by the provider to get the pending transactions for the wallet.", | ||
"operationId" : "DebugService_GetPendingTransactions", | ||
"responses" : { | ||
"200" : { | ||
"description" : "A successful response.", | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/v1PendingTransactionsResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"default" : { | ||
"description" : "An unexpected error response.", | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/googlerpcStatus" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"/v1/debug/topology" : { | ||
"get" : { | ||
"summary" : "GetTopology", | ||
"description" : "GetTopology is called by the user to get the topology of the node. The topology\nincludes connectivity information about the node.", | ||
"operationId" : "DebugService_GetTopology", | ||
"responses" : { | ||
"200" : { | ||
"description" : "A successful response.", | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/v1TopologyResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"default" : { | ||
"description" : "An unexpected error response.", | ||
"content" : { | ||
"application/json" : { | ||
"schema" : { | ||
"$ref" : "#/components/schemas/googlerpcStatus" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components" : { | ||
"schemas" : { | ||
"googlerpcStatus" : { | ||
"type" : "object", | ||
"properties" : { | ||
"code" : { | ||
"type" : "integer", | ||
"format" : "int32" | ||
}, | ||
"message" : { | ||
"type" : "string" | ||
}, | ||
"details" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/protobufAny" | ||
} | ||
} | ||
} | ||
}, | ||
"protobufAny" : { | ||
"type" : "object", | ||
"properties" : { | ||
"@type" : { | ||
"type" : "string" | ||
} | ||
}, | ||
"additionalProperties" : { } | ||
}, | ||
"protobufNullValue" : { | ||
"type" : "string", | ||
"description" : "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\nThe JSON representation for `NullValue` is JSON `null`." | ||
}, | ||
"v1CancelTransactionResponse" : { | ||
"type" : "object", | ||
"example" : { | ||
"txHash" : "71c1348f2d7ff7e814f9c3617983703435ea7446de420aeac488bf1de35737e8" | ||
}, | ||
"properties" : { | ||
"txHash" : { | ||
"type" : "string", | ||
"description" : "Hex string encoding of the hash of the transaction that the bidder wants to cancel.", | ||
"pattern" : "[a-fA-F0-9]{64}" | ||
} | ||
}, | ||
"description" : "Hash of the cancellation transaction request.", | ||
"title" : "Cancel response", | ||
"required" : [ "txHash" ] | ||
}, | ||
"v1PendingTransactionsResponse" : { | ||
"type" : "object", | ||
"properties" : { | ||
"pendingTransactions" : { | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/v1TransactionInfo" | ||
}, | ||
"description" : "List of pending transactions in the provider provider_registry." | ||
} | ||
}, | ||
"description" : "Transaction info returned by the provider.", | ||
"title" : "Pending transactions list", | ||
"required" : [ "pendingTransactions" ] | ||
}, | ||
"v1TopologyResponse" : { | ||
"type" : "object", | ||
"properties" : { | ||
"topology" : { | ||
"type" : "object", | ||
"description" : "Topology of the node." | ||
} | ||
}, | ||
"description" : "Topology of the node.", | ||
"title" : "Topology", | ||
"required" : [ "topology" ] | ||
}, | ||
"v1TransactionInfo" : { | ||
"type" : "object", | ||
"example" : { | ||
"created" : "2009-11-10 23:00:00 +0000 UTC m=+0.000000001", | ||
"nonce" : 1234, | ||
"txHash" : "71c1348f2d7ff7e814f9c3617983703435ea7446de420aeac488bf1de35737e8" | ||
}, | ||
"properties" : { | ||
"txHash" : { | ||
"type" : "string", | ||
"description" : "Hex string encoding of the hash of the transaction that the bidder wants to include in the block.", | ||
"pattern" : "[a-fA-F0-9]{64}" | ||
}, | ||
"nonce" : { | ||
"type" : "string", | ||
"format" : "int64", | ||
"description" : "Nonce used for the transaction." | ||
}, | ||
"created" : { | ||
"type" : "string", | ||
"description" : "Time when the transaction was created." | ||
} | ||
}, | ||
"description" : "Transaction info returned by the provider.", | ||
"title" : "Transaction info", | ||
"required" : [ "txHash", "nonce", "created" ] | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters