ToolAssay

Pre-trade context bundle for autonomous crypto agents

Pre-trade context bundle for autonomous crypto agents: wallet balances, ERC-20 allowance to a spender, current gas/base fee, realtime price, 24h statistics and best bid/ask spread. Use immediately before swaps, recurring payments or automated execution. This endpoint provides data only and never submits a trade.

Not tested: has real-world effectsour last check, 2026-10-04
0 of 0checks answered this week
n/amedian answer time
$0.01listed price per call
n/aprice it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://x402-gateway-production-1f21.up.railway.app/agent/pretrade

CategoryCode and developer
Provider hostx402-gateway-production-1f21.up.railway.app
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

We never call tools that send, buy, move money or file anything, not even without paying.

Example input (from the provider)

{
  "body": {
    "address": "0x0000000000000000000000000000000000000000",
    "network": "base",
    "product_id": "BTC-USD",
    "spender": "0x0000000000000000000000000000000000000000",
    "token_contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "address": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "balance_tokens": {
              "items": {
                "pattern": "^0x[a-fA-F0-9]{40}$",
                "type": "string"
              },
              "maxItems": 20,
              "type": "array"
            },
            "network": {
              "default": "base",
              "enum": [
                "base",
                "ethereum"
              ],
              "type": "string"
            },
            "product_id": {
              "pattern": "^[A-Za-z0-9]{2,15}-[A-Za-z0-9]{2,15}$",
              "type": "string"
            },
            "spender": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            },
            "token_contract": {
              "pattern": "^0x[a-fA-F0-9]{40}$",
              "type": "string"
            }
          },
          "required": [
            "address",
            "spender",
            "token_contract",
            "product_id"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON