Nip20 class
When submitting events to relays, clients currently have no way to know if an event was successfully committed to the database. This NIP introduces the concept of command results which are like NOTICE's except provide more information about if an event was accepted or rejected.
Event successfully written to the database:
"OK", "b1a649ebe8b435ec71d3784793f3bbf4b93e64e17568a741aecd4c7ddeafce30", true, ""
Event successfully written to the database because of a reason:
"OK", "b1a649ebe8b435ec71d3784793f3bbf4b93e64e17568a741aecd4c7ddeafce30", true, "pow: difficulty 25>=24"
Event blocked due to ip filter:
"OK", "b1a649ebe8...", false, "blocked: tor exit nodes not allowed"
…
Constructors
- Nip20(String eventId, bool status, String message)
- Default constructor
- Nip20.deserialize(dynamic input)
- Deserialize a nostr close message
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → String - Serialize to nostr close message
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited