From 8ce881e8c4c6798528396d32c5ca39807ff5dc8e Mon Sep 17 00:00:00 2001 From: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com> Date: Fri, 21 May 2021 10:35:43 -0700 Subject: [PATCH] Adds time-based query parameters to the store rpc api (#376) * adds time window * clarifies the sub-second precision of time values * minor correction --- content/docs/rfcs/16/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/docs/rfcs/16/README.md b/content/docs/rfcs/16/README.md index 500c9de0..d459769a 100644 --- a/content/docs/rfcs/16/README.md +++ b/content/docs/rfcs/16/README.md @@ -51,6 +51,7 @@ Refer to [`Waku Message` specification](https://github.com/vacp2p/specs/blob/mas | `payload` | `String` | mandatory | The message payload as a hex encoded data string | | `contentTopic` | `String` | optional | Message content topic for optional content-based filtering | | `version` | `Number` | optional | Message version. Used to indicate type of payload encryption. Default version is 0 (no payload encryption). | +| `timestamp` | `Number` | optional | The time at which the message is generated by its sender. This field holds the Unix epoch time in seconds as a 64-bits float value. The fractional part represents sub-seconds. | ## Method naming @@ -220,6 +221,8 @@ The `get_waku_v2_store_v1_messages` method retrieves historical messages on spec | ----: | :---: | :---: |----------- | | `pubsubTopic` | `String` | optional | The pubsub topic on which a [`WakuMessage`](#WakuMessage) is published | | `contentFilters` | `Array`[[`ContentFilter`](#contentfilter)] | optional | Array of content filters to query for historical messages | +| `startTime` | `Number`| optional | The inclusive lower bound on the [`timestamp`](/spec/14#Payloads) of queried [`WakuMessage`s](#WakuMessage). This parameter holds the Unix epoch time in seconds as a 64-bits float value. The fractional part represents sub-seconds. | +| `endTime` | `Number` | optional | The inclusive upper bound on the [`timestamp`](/spec/14#Payloads) of queried [`WakuMessage`s](#WakuMessage). This parameter holds the Unix epoch time in seconds as a 64-bits float value. The fractional part represents sub-seconds. | | `pagingOptions` | [`PagingOptions`](#PagingOptions) | optional | Pagination information | #### Response