material.halowerk.com/scrap-margin
Takes the gross lot weight, the purchase price paid per kilogram of gross weight and the sales price per kilogram of recovered metal, then applies recovery yield and melting loss for the scrap grade. Yield and loss default to practice values per grade and can be overridden. Handling, transport and disposal cost are optional flat amounts. The endpoint applies no market price and fetches none: sales
POST
https://material.halowerk.com/scrap-marginUptime100% 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://material.halowerk.com/scrap-margin", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"disposal_cost_eur_per_kg":0.15,"grade":"cable_scrap_high","gross_weight_kg":500,"processing_cost_eur":120,"purchase_price_eur_per_kg":3.8,"sales_price_eur_per_kg":8.6,"transport_cost_eur":80}),
});
console.log(await res.json());Example input
{
"disposal_cost_eur_per_kg": 0.15,
"grade": "cable_scrap_high",
"gross_weight_kg": 500,
"processing_cost_eur": 120,
"purchase_price_eur_per_kg": 3.8,
"sales_price_eur_per_kg": 8.6,
"transport_cost_eur": 80
}