82trust / 100

Cross Game Bridge

by gaming.halowerk.com in Weather & location

x402 APIPassing, checked 2 h ago

Applies caller-supplied rename and numeric scale/offset rules to scalar attributes, optionally retaining unmapped fields, then hashes the canonical mapped payload. It does not transfer ownership, call a chain, validate either game, preserve semantics, or authorize asset use.

POST https://gaming.halowerk.com/v1/cross-game-bridge

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
115 ms typical, 115 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://gaming.halowerk.com/v1/cross-game-bridge" \
  -H "content-type: application/json" \
  -d '{"asset_id":"blade-42","attributes":[{"key":"damage","value":80},{"key":"element","value":"water"},{"key":"rarity","value":"rare"}],"mappings":[{"numeric_offset":5,"numeric_scale":0.5,"source_key":"damage","target_key":"power"},{"source_key":"element","target_key":"affinity"}],"retain_unmapped":false,"source_game":"HarborQuest","target_game":"SkyFrontier"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgaming.halowerk.com%2Fv1%2Fcross-game-bridge
const res = await pay("https://gaming.halowerk.com/v1/cross-game-bridge", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"asset_id":"blade-42","attributes":[{"key":"damage","value":80},{"key":"element","value":"water"},{"key":"rarity","value":"rare"}],"mappings":[{"numeric_offset":5,"numeric_scale":0.5,"source_key":"damage","target_key":"power"},{"source_key":"element","target_key":"affinity"}],"retain_unmapped":false,"source_game":"HarborQuest","target_game":"SkyFrontier"}),
});
console.log(await res.json());

Example input

{
  "asset_id": "blade-42",
  "attributes": [
    {
      "key": "damage",
      "value": 80
    },
    {
      "key": "element",
      "value": "water"
    },
    {
      "key": "rarity",
      "value": "rare"
    }
  ],
  "mappings": [
    {
      "numeric_offset": 5,
      "numeric_scale": 0.5,
      "source_key": "damage",
      "target_key": "power"
    },
    {
      "source_key": "element",
      "target_key": "affinity"
    }
  ],
  "retain_unmapped": false,
  "source_game": "HarborQuest",
  "target_game": "SkyFrontier"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402115 ms$0.004
7 h agoPassed402116 ms$0.004