Class Nip01
java.lang.Object
org.ngengine.nostr4j.nip01.Nip01
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, NostrPublicKey pubkey) static org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, NostrPublicKey pubkey, Duration timeout) static org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, Nip01UserMetadataFilter filter) Fetches the user metadata for a given filterstatic org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, Nip01UserMetadataFilter filter, Duration timeout) Fetches the user metadata for a given filter.static Nip01UserMetadatafrom(NostrEvent event) static org.ngengine.platform.AsyncTask<List<org.ngengine.platform.AsyncTask<NostrMessageAck>>> update(NostrPool pool, NostrSigner signer, Nip01UserMetadata newMetadata)
-
Constructor Details
-
Nip01
public Nip01()
-
-
Method Details
-
from
-
fetch
public static org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, NostrPublicKey pubkey) -
fetch
public static org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, NostrPublicKey pubkey, Duration timeout) -
fetch
public static org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, Nip01UserMetadataFilter filter) Fetches the user metadata for a given filter- Parameters:
pool- the NostrPool to use for fetching the metadata.filter- the filter to use for fetching the metadata.- Returns:
- an AsyncTask that resolves to the Nip01UserMetadata, or null if no metadata is found.
-
fetch
public static org.ngengine.platform.AsyncTask<Nip01UserMetadata> fetch(NostrPool pool, Nip01UserMetadataFilter filter, Duration timeout) Fetches the user metadata for a given filter.- Parameters:
pool- the NostrPool to use for fetching the metadata.filter- the filter to use for fetching the metadata.timeout- the maximum time to wait for the metadata to be fetched.- Returns:
- an AsyncTask that resolves to the Nip01UserMetadata, or null if no metadata is found.
-
update
public static org.ngengine.platform.AsyncTask<List<org.ngengine.platform.AsyncTask<NostrMessageAck>>> update(NostrPool pool, NostrSigner signer, Nip01UserMetadata newMetadata)
-