mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-10 06:09:08 -05:00
Update 26.md
This commit is contained in:
parent
a8e083d6d8
commit
f93b55071b
4
26.md
4
26.md
|
@ -44,7 +44,7 @@ The following fields and operators are supported in the above query string:
|
|||
- `<${TIMESTAMP}` - delegatee may only sign events created ***before*** the specified timestamp
|
||||
- `>${TIMESTAMP}` - delegatee may only sign events created ***after*** the specified timestamp
|
||||
|
||||
In order to create a single condition, you must use a supported field and operator. Multiple conditions can be used in a single query string, including on the same field. Conditions must be combined with `&`.
|
||||
In order to create a single condition, you must use a supported field and operator. Multiple conditions can be used in a single query string. Conditions can be combined with `&`. Multiple `kind=` conditions mean that the delegation token can be used to sign any of the specified event kinds. Multiple `created_at>` or `created_at<` conditions should not be combined.
|
||||
|
||||
For example, the following condition strings are valid:
|
||||
|
||||
|
@ -52,7 +52,7 @@ For example, the following condition strings are valid:
|
|||
- `kind=0&kind=1&created_at>1675721813`
|
||||
- `kind=1&created_at>1674777689&created_at<1675721813`
|
||||
|
||||
For the vast majority of use-cases, it is advisable that query strings should include a `created_at` ***after*** condition reflecting the current time, to prevent the delegatee from publishing historic notes on the delegator's behalf.
|
||||
For the vast majority of use-cases, it is advisable that query strings should include a `created_at>` condition reflecting the current time, to prevent the delegatee from publishing historic notes on the delegator's behalf.
|
||||
|
||||
#### Example
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user