S

Sslip · Convert Weight

by Sslip

GETBase

$0.002

per call · USD Coin on Base

Convert a non-negative weight or mass value between common units. Use this deterministic endpoint when an agent needs a precise unit conversion.

Endpoint

GET https://87-106-119-237.sslip.io/api/convert-weight

4

Calls / 30d

3

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://87-106-119-237.sslip.io/api/convert-weight", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://87-106-119-237.sslip.io/api/convert-weight?from_unit=kg&to_unit=lb&value=1" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "from_unit": "kg",
  "result": "2.204622621848775807229738013",
  "to_unit": "lb",
  "value": "1"
}

Payment details

Pay to0xb847fe425f54cbc586f8e735ae4270b82119771e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from Sslip & similar services