{
  "x402Version": 2,
  "id": 8388,
  "slug": "8388",
  "resource": "https://x402.outpimp.com/teslaSavingsCalculator",
  "description": "Tesla savings calculator. Compares annual electricity cost for a Tesla against annual gas cost for a comparable gas vehicle, accounting for free-charging usage, and computes break-even years, cost per full charge, and gas-price-equivalent effective MPG.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x548eFd4f4d4A5C3669dbb4CBB2B1A637FeeEc5F6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "APer2AbhckyMWyJanW2MZ2eRLcpL9Lmhks8rkmXfqjRG",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "electricVehicle": {
              "batteryCapacityKwh": 75,
              "electricityRatePerKwh": 0.15,
              "freeChargingPercent": 0.2,
              "purchasePrice": 42000,
              "rangeMiles": 300
            },
            "gasPricePerGallon": 3.8,
            "gasVehicle": {
              "mpg": 28,
              "purchasePrice": 28000
            },
            "milesPerYear": 15000
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "annualElectricityCost": 450,
              "annualGasCost": 2035.7142857142853,
              "annualSavings": 1585.7142857142853,
              "breakEvenYears": 8.828828828828831,
              "costPerCharge": 9,
              "effectiveMPG": 126.66666666666667,
              "params": {
                "electricVehicle": {
                  "batteryCapacityKwh": 75,
                  "electricityRatePerKwh": 0.15,
                  "freeChargingPercent": 0.2,
                  "purchasePrice": 42000,
                  "rangeMiles": 300
                },
                "gasPricePerGallon": 3.8,
                "gasVehicle": {
                  "mpg": 28,
                  "purchasePrice": 28000
                },
                "milesPerYear": 15000
              }
            },
            "ok": true
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "electricVehicle": {
                    "properties": {
                      "batteryCapacityKwh": {
                        "type": "number"
                      },
                      "electricityRatePerKwh": {
                        "type": "number"
                      },
                      "freeChargingPercent": {
                        "default": 0,
                        "description": "Fraction of charging that is free (0-1). Default 0.",
                        "type": "number"
                      },
                      "purchasePrice": {
                        "type": "number"
                      },
                      "rangeMiles": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "gasPricePerGallon": {
                    "description": "Local gas price per gallon.",
                    "type": "number"
                  },
                  "gasVehicle": {
                    "properties": {
                      "mpg": {
                        "type": "number"
                      },
                      "purchasePrice": {
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "milesPerYear": {
                    "description": "Expected annual miles driven.",
                    "type": "number"
                  }
                },
                "required": [
                  "milesPerYear",
                  "gasPricePerGallon",
                  "gasVehicle",
                  "electricVehicle"
                ],
                "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"
      }
    },
    "builder-code": {
      "info": {
        "a": "x402_api_vendor",
        "s": [
          "cdp_sdk_server"
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "a": {
            "description": "App builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          },
          "s": {
            "description": "Service builder codes",
            "items": {
              "pattern": "^[a-z0-9_]{1,32}$",
              "type": "string"
            },
            "maxItems": 11,
            "type": "array"
          },
          "w": {
            "description": "Wallet builder code",
            "pattern": "^[a-z0-9_]{1,32}$",
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "eip2612GasSponsoring": {},
    "erc20ApprovalGasSponsoring": {}
  },
  "tags": [
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "x402.outpimp.com",
  "lastUpdated": "2026-08-30T22:18:16.25Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-30T22:18:16.11Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.outpimp.com",
    "manifest_name": "x402.outpimp.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}