Skip to content
Fourohtwo

Compare two caller-supplied storage layouts by slot, offset, and size

www.brainiac.software/api/v1/crypto-security/storage-slot-grade

Compare two caller-supplied storage layouts by slot, offset, and size. A name that moves is a shift. Different names that occupy the same bytes are a collision. The grade and the collision score come from those counts. A variable is one slice of a single slot. No chain is queried.

BaseAnswering
POSThttps://www.brainiac.software/api/v1/crypto-security/storage-slot-grade

Uptime100% of 3 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.brainiac.software/api/v1/crypto-security/storage-slot-grade", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"next":[{"name":"value","offset":0,"size":32,"slot":0},{"name":"extra","offset":0,"size":32,"slot":1},{"name":"owner","offset":0,"size":20,"slot":2}],"previous":[{"name":"value","offset":0,"size":32,"slot":0},{"name":"owner","offset":0,"size":20,"slot":1}]}),
});
console.log(await res.json());

Example input

{
  "next": [
    {
      "name": "value",
      "offset": 0,
      "size": 32,
      "slot": 0
    },
    {
      "name": "extra",
      "offset": 0,
      "size": 32,
      "slot": 1
    },
    {
      "name": "owner",
      "offset": 0,
      "size": 20,
      "slot": 2
    }
  ],
  "previous": [
    {
      "name": "value",
      "offset": 0,
      "size": 32,
      "slot": 0
    },
    {
      "name": "owner",
      "offset": 0,
      "size": 20,
      "slot": 1
    }
  ]
}

More from BRAINIAC.softwareProvider status