DeFi University
Skip to lesson

Exercise 5

nostr-tools & NDK

About 14 min

Your task

You'll play the relay. Given six events and a handful of filters, you'll predict exactly which events come back, before and after EOSE, by applying NIP-01's AND, OR, time-range and limit rules by hand. By the end you can write a filter and know what it will return before you run it.

Time
15 to 25 minutes
You'll need
paper or a notes app
Builds on
Lesson 5

Warm-up

Check yourself

A filter has `"since": 500` and `"until": 800`. Does an event with `created_at` 800 match the time range?

Check yourself

A subscription's filter has `"limit": 5`. After EOSE, eight new matching events are published. How many does the app receive?

Members only

This course is for members.

The DeFi University membership on Skool opens all 31 courses here, plus the live calls and community. Private coaching clients have access too. Already a member? Sign in with your Skool email.