AgentBIT
← all tools

Utility Transform

Hashing, HMAC, JWT decode, base64, UUID, JSON/CSV/XML conversion, URL parsing, semver comparison.

$0.001
USDC per call · x402
Endpoint
POST /v1/util/transform
MCP name
agentbit.util_transform
Status
active
Latency / uptime (7d)
— ms · 100%

Call with x402

1. Send the request. 2. Receive 402 with accepts[]. 3. Sign the payment and retry with the X-PAYMENT header.

curl -X POST https://agentbit.app/v1/util/transform \
  -H 'Content-Type: application/json' \
  -d '{"operation":"sha256","input":"agentbit"}'

Input schema

{
    "type": "object",
    "properties": {
        "operation": {
            "type": "string"
        },
        "input": {
            "type": "string"
        },
        "key": {
            "type": "string"
        },
        "algorithm": {
            "type": "string"
        },
        "a": {
            "type": "string"
        },
        "b": {
            "type": "string"
        }
    },
    "required": [
        "operation"
    ]
}

Output schema

{
    "type": "object",
    "properties": {
        "operation": {
            "type": "string"
        },
        "result": []
    },
    "required": []
}

Code examples

// JavaScript (x402-fetch)
import { wrapFetchWithPayment } from "x402-fetch";
const fetchWithPay = wrapFetchWithPayment(fetch, wallet);
const r = await fetchWithPay("https://agentbit.app/v1/util/transform", {
  method: "POST",
  headers: {"Content-Type": "application/json"},
  body: JSON.stringify({"operation":"sha256","input":"agentbit"})
});
console.log(await r.json());
# Python (x402 client)
from x402.clients.requests import x402_requests
s = x402_requests(account)
r = s.post("https://agentbit.app/v1/util/transform",
  json={"operation":"sha256","input":"agentbit"})
print(r.json())
// PHP
$r = Http::withHeaders(['X-PAYMENT' => $signedPayment])
  ->post('https://agentbit.app/v1/util/transform',
    array (
  'operation' => 'sha256',
  'input' => 'agentbit',
));
$data = $r->json();