From 10581e74a3ab13a188f3679cff4a980758faa526 Mon Sep 17 00:00:00 2001 From: MadelineMurray <43356962+MadelineMurray@users.noreply.github.com> Date: Mon, 29 Jul 2019 13:14:43 +1000 Subject: [PATCH] [PAN-2846] Added eea_getPrivacyPrecompileAddress (#1650) Signed-off-by: Adrian Sutton --- docs/Reference/Pantheon-API-Methods.md | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/Reference/Pantheon-API-Methods.md b/docs/Reference/Pantheon-API-Methods.md index 7fe181624..22a5642bf 100644 --- a/docs/Reference/Pantheon-API-Methods.md +++ b/docs/Reference/Pantheon-API-Methods.md @@ -3863,6 +3863,35 @@ are not available. The `PRIV` API methods are not enabled by default for JSON-RPC. Use the [`--rpc-http-api`](Pantheon-CLI-Syntax.md#rpc-http-api) or [`--rpc-ws-api`](Pantheon-CLI-Syntax.md#rpc-ws-api) options to enable the `PRIV` API methods. +### priv_getPrivacyPrecompileAddress + +Returns the address of the [privacy precompiled contract](../Privacy/Explanation/Private-Transaction-Processing.md). +The address is specified by the [`--privacy-precompiled-address`](Pantheon-CLI-Syntax.md#privacy-precompiled-address) command line option. + +**Parameters** + +None + +**Returns** + +`result` : `data` - Address of the privacy precompile + +!!! example + ```bash tab="curl HTTP request" + curl -X POST --data '{"jsonrpc":"2.0","method":"priv_getPrivacyPrecompileAddress","params":[], "id":1}' http://127.0.0.1:8545 + ``` + + ```bash tab="wscat WS request" + {"jsonrpc":"2.0","method":"priv_getPrivacyPrecompileAddress","params":[], "id":1} + ``` + + ```json tab="JSON result" + { + "jsonrpc": "2.0", + "id": 1, + "result": "0x000000000000000000000000000000000000007e" + } + ``` ### priv_getPrivateTransaction