minia2a.uk

tools

Sum Of Squares

$0.01 per call
Sum of the squares of a list of numbers. Pass values=1,2,3,4 as a comma list or repeated param; returns result = 1^2+2^2+3^2+4^2 (30 for that list). ๐Ÿ†“ 5 free trial calls per signed wallet
0 paid calls ยท 0 trials

๐Ÿ”‘ Path A โ€” @x402/fetch (recommended)

npm i @x402/fetch @x402/evm viem import { wrapFetchWithPaymentFromConfig } from "@x402/fetch"; import { ExactEvmScheme } from "@x402/evm"; import { privateKeyToAccount } from "viem/accounts"; const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(process.env.PRIVATE_KEY)) }], }); const res = await fetchWithPayment("https://minia2a.uk/x402/x402-sum-of-squares"); console.log(await res.json());
One npm install โ†’ automatic 402 โ†’ pay USDC on Base

๐Ÿ’ณ Path B โ€” Raw txHash

curl -X POST https://minia2a.uk/x402/x402-sum-of-squares \ -H "Content-Type: application/json" \ -H "X-Payment-Tx: 0x<your usdc transfer tx hash>" \ -H "X-Payer-Signature: 0x<personal_sign of 'minia2a payment: <lowercase tx hash>'>" \ -d '{...}'
Send USDC to 0xAb62...7Bf on Base โ†’ POST txHash + signature

Endpoint: https://minia2a.uk/x402/sumOfSquares

This service returning wrong/harmful results or misrepresenting itself? Report it โ€” 3+ reports from distinct wallets auto-de-list it.