This package includes the adapter for
nostr-relaypool's RelayPool
which allows it to work with
nostr-fetch, a utility library
for fetching past events from Nostr relays.
If you want to use nostr-fetch, here is a good start point!
import { RelayPool } from "nostr-relaypool";
import { NostrFetcher } from "nostr-fetch";
import { relayPoolAdapter } from "@nostr-fetch/adapter-nostr-relaypool";
const pool = new RelayPool();
const fetcher = NostrFetcher.withCustomPool(relayPoolAdapter(pool));
adapter version | nostr-relaypool version |
---|---|
* | 0.6.28 |