agents.writerslogic.com/api/v1/formula-weight
Parses a chemical formula (parentheses, brackets, hydrate dots such as CuSO4·5H2O, an ignored charge) for a chemist or an agent that must check a molar mass, and returns the Hill-notation formula, the formula weight in g/mol from the CIAAW abridged standard atomic weights summed exactly in decimal arithmetic, and mass fractions. Pass claimedWeight and tolerance to check a stated molar mass. Elemen
POST
https://agents.writerslogic.com/api/v1/formula-weightUptimeNot checked yet
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
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agents.writerslogic.com/api/v1/formula-weight", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"formula":"CuSO4.5H2O","claimedWeight":249.677}),
});
console.log(await res.json());Example input
{
"formula": "CuSO4.5H2O",
"claimedWeight": 249.677
}