{
  "x402Version": 2,
  "id": 30669,
  "slug": "30669",
  "resource": "https://preflight402.com/v1/deps/version-check",
  "description": "Call before pinning or installing a specific package version in npm, PyPI or crates.io. Returns whether that exact version exists in the official registry, its publication timestamp, whether it is deprecated or yanked, its published artifact hashes, and whether an expected SRI/hex digest matches. Compares registry metadata only and never returns a safety verdict.",
  "type": "http",
  "serviceName": "Preflight",
  "resourceType": "Travel",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xB9Db3966C7F18283624C97E860a84CEf7f9ba607",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "ecosystem": "npm",
            "name": "left-pad",
            "version": "1.3.0"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "artifacts": [
              {
                "filename": "left-pad-1.3.0.tgz",
                "sha1_hex": "55a127c92328641b522d9fbc94ffeb0d8a4783fa",
                "sha256_hex": null,
                "sha512_sri": "sha512-Y+/G5bu3F3z8GheVf/2wQ6QJ5u8n4vK3EwM3r+c8w==",
                "yanked": null
              }
            ],
            "checked_at": "2026-09-28T12:00:00Z",
            "ecosystem": "npm",
            "exists": true,
            "integrity_match": null,
            "name": "left-pad",
            "official_url": "https://www.npmjs.com/package/left-pad/v/1.3.0",
            "publication_time": "2018-04-10T12:00:00.000Z",
            "registry_status": "deprecated",
            "status_message": "use String.prototype.padStart()",
            "version": "1.3.0"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "ecosystem": {
                    "enum": [
                      "npm",
                      "pypi",
                      "crates"
                    ],
                    "type": "string"
                  },
                  "expected_integrity": {
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  "filename": {
                    "maxLength": 255,
                    "minLength": 1,
                    "type": "string"
                  },
                  "name": {
                    "maxLength": 214,
                    "minLength": 1,
                    "type": "string"
                  },
                  "version": {
                    "maxLength": 128,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "ecosystem",
                  "name",
                  "version"
                ],
                "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": {
        "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": [
    "security",
    "dependencies",
    "supply-chain",
    "npm",
    "pypi",
    "bazaar",
    "builder-code",
    "eip2612GasSponsoring",
    "erc20ApprovalGasSponsoring"
  ],
  "sourceHost": "preflight402.com",
  "lastUpdated": "2026-09-28T10:58:35.019Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-28T10:58:34.44Z"
  },
  "metadata": {
    "serviceName": "Preflight",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "ecosystem": "npm",
              "name": "left-pad",
              "version": "1.3.0"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "artifacts": [
                {
                  "filename": "left-pad-1.3.0.tgz",
                  "sha1_hex": "55a127c92328641b522d9fbc94ffeb0d8a4783fa",
                  "sha256_hex": null,
                  "sha512_sri": "sha512-Y+/G5bu3F3z8GheVf/2wQ6QJ5u8n4vK3EwM3r+c8w==",
                  "yanked": null
                }
              ],
              "checked_at": "2026-09-28T12:00:00Z",
              "ecosystem": "npm",
              "exists": true,
              "integrity_match": null,
              "name": "left-pad",
              "official_url": "https://www.npmjs.com/package/left-pad/v/1.3.0",
              "publication_time": "2018-04-10T12:00:00.000Z",
              "registry_status": "deprecated",
              "status_message": "use String.prototype.padStart()",
              "version": "1.3.0"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "ecosystem": {
                      "enum": [
                        "npm",
                        "pypi",
                        "crates"
                      ],
                      "type": "string"
                    },
                    "expected_integrity": {
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "filename": {
                      "maxLength": 255,
                      "minLength": 1,
                      "type": "string"
                    },
                    "name": {
                      "maxLength": 214,
                      "minLength": 1,
                      "type": "string"
                    },
                    "version": {
                      "maxLength": 128,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "ecosystem",
                    "name",
                    "version"
                  ],
                  "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": {
          "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": {}
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "preflight402.com",
    "manifest_name": "preflight402.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}