-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
--- | ||
icon: list-unordered | ||
--- | ||
--- | ||
|
||
[!badge variant="primary" text="high level"] | ||
|
||
## Example | ||
|
||
```dart | ||
final myset = await ndk.lists.getSinglePublicNip51RelaySet( | ||
name: "myset", | ||
publicKey: | ||
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d", | ||
); | ||
if (myset == null) { | ||
print("set not found"); | ||
return; | ||
} | ||
print("recived a set with ${myset.elements.length} elements"); | ||
``` | ||
|
||
## How to use | ||
|
||
We destinguish between public and private lists/sets. \ | ||
The methods are prefixed with public or private. \ | ||
Editing lists schould be done via the provided broadcast methods. |