T

Toolshed · Convert Json Toml

by Toolshed

POSTBaseSolana

$0.004

per call · USD Coin on Base

JSON to TOML. POST a JSON object; the response is a TOML document. The root must be an object, because TOML's root is a table, and a null anywhere in the document is refused — TOML has no spelling for one. Both are errors rather than a file that quietly parses to something you did not write.

Endpoint

POST https://toolshed.lemon-agent.dev/convert/json-toml

1

Calls / 30d

1

Unique payers / 30d

Sep 2

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://toolshed.lemon-agent.dev/convert/json-toml", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify("{\"title\":\"toolshed\",\"owner\":{\"name\":\"lemon\"}}"),
});
const data = await res.json();
cURL
curl -X POST \
  "https://toolshed.lemon-agent.dev/convert/json-toml" \
  -H "Content-Type: application/json" \
  -d '"{\"title\":\"toolshed\",\"owner\":{\"name\":\"lemon\"}}"' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

"title = \"toolshed\"\n\n[owner]\nname = \"lemon\"\n\n"

Payment details

Pay to0x0adc7adac7bbaffffbd73505711e42378c4f9f9e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from Toolshed & similar services