{
  "x402Version": 2,
  "id": 38077,
  "slug": "38077",
  "resource": "https://87-106-119-237.sslip.io/api/convert-weight",
  "description": "Convert a non-negative weight or mass value between common units. Use this deterministic endpoint when an agent needs a precise unit conversion.",
  "type": "http",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb847fe425f54cbc586f8e735ae4270b82119771e",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "from_unit": {
            "type": "string"
          },
          "result": {
            "type": "string"
          },
          "to_unit": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "value",
          "from_unit",
          "to_unit",
          "result"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "from_unit": "kg",
            "to_unit": "lb",
            "value": "1"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "from_unit": "kg",
            "result": "2.204622621848775807229738013",
            "to_unit": "lb",
            "value": "1"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "from_unit": {
                    "description": "Input unit.",
                    "enum": [
                      "carat",
                      "g",
                      "kg",
                      "lb",
                      "long_ton",
                      "mg",
                      "oz",
                      "short_ton",
                      "st",
                      "tonne",
                      "ug"
                    ],
                    "type": "string"
                  },
                  "to_unit": {
                    "description": "Output unit.",
                    "enum": [
                      "carat",
                      "g",
                      "kg",
                      "lb",
                      "long_ton",
                      "mg",
                      "oz",
                      "short_ton",
                      "st",
                      "tonne",
                      "ug"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "description": "Non-negative decimal weight or mass value.",
                    "type": "string"
                  }
                },
                "required": [
                  "value",
                  "from_unit",
                  "to_unit"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "from_unit": {
                    "type": "string"
                  },
                  "result": {
                    "type": "string"
                  },
                  "to_unit": {
                    "type": "string"
                  },
                  "value": {
                    "type": "string"
                  }
                },
                "required": [
                  "value",
                  "from_unit",
                  "to_unit",
                  "result"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "87-106-119-237.sslip.io",
  "lastUpdated": "2026-10-11T08:52:52.668Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 5,
    "lastCalledAt": "2026-10-11T08:52:51.736Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "from_unit": "kg",
              "to_unit": "lb",
              "value": "1"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "from_unit": "kg",
              "result": "2.204622621848775807229738013",
              "to_unit": "lb",
              "value": "1"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "from_unit": {
                      "description": "Input unit.",
                      "enum": [
                        "carat",
                        "g",
                        "kg",
                        "lb",
                        "long_ton",
                        "mg",
                        "oz",
                        "short_ton",
                        "st",
                        "tonne",
                        "ug"
                      ],
                      "type": "string"
                    },
                    "to_unit": {
                      "description": "Output unit.",
                      "enum": [
                        "carat",
                        "g",
                        "kg",
                        "lb",
                        "long_ton",
                        "mg",
                        "oz",
                        "short_ton",
                        "st",
                        "tonne",
                        "ug"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "description": "Non-negative decimal weight or mass value.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "value",
                    "from_unit",
                    "to_unit"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "from_unit": {
                      "type": "string"
                    },
                    "result": {
                      "type": "string"
                    },
                    "to_unit": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "value",
                    "from_unit",
                    "to_unit",
                    "result"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "87-106-119-237.sslip.io",
    "manifest_name": "87-106-119-237.sslip.io",
    "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": {
      "from_unit": "string",
      "result": "string",
      "to_unit": "string",
      "value": "string"
    },
    "type": "string"
  }
}