Skip to content

Instantly share code, notes, and snippets.

@0xfoobar
0xfoobar / detect-push0-support.js
Created June 25, 2025 17:59 — forked from 0xngmi/detect-push0-support.js
Detect chains that dont support PUSH0
async function detectPush0Support(rpcs) {
return (await Promise.all(rpcs.map(async rpc => {
try {
const res = await fetch(rpc, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"method": "eth_call",