Skip to content

Instantly share code, notes, and snippets.

View apache3333's full-sized avatar

apache3333 apache3333

View GitHub Profile
@pietjepuk2
pietjepuk2 / get_validator_duties.py
Last active August 6, 2023 16:21
Get validator duties (find largest gap in which to update for that $0.04 it will save/benefit you)
import json
import math
from datetime import datetime, timedelta
import requests
SLOTS_PER_EPOCH = 32
SECONDS_PER_SLOT = 12