Skip to content

Instantly share code, notes, and snippets.

@ydm
Created May 24, 2025 09:44
Show Gist options
  • Save ydm/f49002778926517a98e8e3222c9e6fba to your computer and use it in GitHub Desktop.
Save ydm/f49002778926517a98e8e3222c9e6fba to your computer and use it in GitHub Desktop.
#!/bin/bash
BEACON_NODE=http://testing.mainnet.beacon-api.nimbus.team
curl \
--no-progress-meter \
"${BEACON_NODE}/eth/v2/beacon/blocks/head" \
| jq '.data.message.body.execution_payload.withdrawals | last | .index'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment