From 5a1b5bc05babf19b86b571acfc37be14dbc68e6e Mon Sep 17 00:00:00 2001 From: Tatiana Nesterenko Date: Sun, 27 Aug 2023 20:15:00 +0100 Subject: [PATCH] docs: add getrawnotarypool, getrawnotarytransaction Signed-off-by: Tatiana Nesterenko --- docs/rpc.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/rpc.md b/docs/rpc.md index 2fd0777a64..7dd3f3b161 100644 --- a/docs/rpc.md +++ b/docs/rpc.md @@ -284,7 +284,27 @@ state has all its values got from MPT with the specified stateroot. This allows to track the contract storage scheme using the specified past chain state. These methods may be useful for debugging purposes. -#### `submitnotaryrequest` call +#### P2PNotary extensions + +The following P2PNotary extensions can be used on P2P Notary enabled networks +only. + +##### `getrawnotarypool` call + +`getrawnotarypool` method provide the ability to retrieve the content of the RPC +node's notary pool (a map from main transaction hashes to the corresponding +fallback transaction hashes for currently processing P2PNotaryRequest payloads). +You can use the `getrawnotarytransaction` method to iterate through +the results of `getrawnotarypool`, retrieve main/fallback transactions, +check their contents and act accordingly. + +##### `getrawnotarytransaction` call + +The `getrawnotarytransaction` method takes a transaction hash and aims to locate +the corresponding transaction in the P2PNotaryRequest pool. It performs +this search across all the verified main and fallback transactions. + +##### `submitnotaryrequest` call This method can be used on P2P Notary enabled networks to submit new notary payloads to be relayed from RPC to P2P.