diff --git a/rfc/0004_ws2p_v1.md b/rfc/0004_ws2p_v1.md index 9ca420537756c19bff9f364226a67944b0e52e99..f8e657beb785b4762e8f561ec034c859a41ecdde 100644 --- a/rfc/0004_ws2p_v1.md +++ b/rfc/0004_ws2p_v1.md @@ -410,14 +410,12 @@ Each type of query has a unique identifier called "name" (Realy it's an integer) ### getCurrent -name = 3 - JSON Message : { reqId: REQUESTS_UNIQUE_ID, body: { - name: 3, + name: "CURRENT", params: {} } } @@ -441,14 +439,12 @@ JSON error response : ### getBlock -name = 2 - JSON Message : { reqId: REQUESTS_UNIQUE_ID, body: { - name: 2, + name: "BLOCK_BY_NUMBER", params: { number: BLOCK_NUMBER } @@ -474,14 +470,12 @@ JSON error response : ### getBlocks -name = 1 - JSON Message : { reqId: REQUESTS_UNIQUE_ID, body: { - name: 1, + name: "BLOCKS_CHUNK", params: { count: *number of blocks requested*, fromNumber: *number of the 1st block of the requested interval* @@ -514,14 +508,12 @@ JSON error response : Requests the "requirements" of all identities that have received at least `minCert` certifications. -name = 0 - JSON Message : { reqId: REQUESTS_UNIQUE_ID, body: { - name: 0, + name: "WOT_REQUIREMENTS_OF_PENDING", params: { minCert: *integer* }