{
  "x402Version": 2,
  "id": 35421,
  "slug": "35421",
  "resource": "https://agentstoolshub.com/api/v1/crypto/wei-eth-converter",
  "description": "Convert between wei, kwei, mwei, gwei, microether, milliether and ether with exact BigInt arithmetic. Decimal strings of any magnitude convert without floating-point error. Use this when an agent needs to exact Ethereum unit conversion — no float errors.",
  "type": "http",
  "serviceName": "AgentTools",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "analytics": {},
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "from": "gwei",
            "to": "eth",
            "value": "21000"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "result": {
              "answer": "0.000021000000000000 ETH",
              "answerLabel": "21000 Gwei = ? Ether",
              "details": [
                {
                  "label": "Exact result",
                  "value": "0.000021000000000000"
                },
                {
                  "label": "In wei",
                  "value": "21000000000000"
                },
                {
                  "label": "In gwei",
                  "value": "21000"
                },
                {
                  "label": "In ETH",
                  "value": "0.000021000000000000"
                }
              ],
              "steps": [
                "Scale to wei: 21000 Gwei = 21000000000000 wei (exact BigInt)",
                "Render in Ether: 0.000021000000000000"
              ],
              "value": null
            },
            "tool": "wei-eth-converter"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "from": {
                    "description": "From",
                    "enum": [
                      "wei",
                      "kwei",
                      "mwei",
                      "gwei",
                      "microeth",
                      "millieth",
                      "eth"
                    ],
                    "type": "string"
                  },
                  "to": {
                    "description": "To",
                    "enum": [
                      "wei",
                      "kwei",
                      "mwei",
                      "gwei",
                      "microeth",
                      "millieth",
                      "eth"
                    ],
                    "type": "string"
                  },
                  "value": {
                    "description": "Decimal string for exact precision",
                    "type": "string"
                  }
                },
                "required": [
                  "value"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "crypto",
    "crypto-dev",
    "analytics",
    "bazaar"
  ],
  "sourceHost": "agentstoolshub.com",
  "lastUpdated": "2026-10-11T22:59:20.439Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T22:59:20.298Z"
  },
  "metadata": {
    "serviceName": "AgentTools",
    "extensions": {
      "analytics": {},
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "from": "gwei",
              "to": "eth",
              "value": "21000"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "result": {
                "answer": "0.000021000000000000 ETH",
                "answerLabel": "21000 Gwei = ? Ether",
                "details": [
                  {
                    "label": "Exact result",
                    "value": "0.000021000000000000"
                  },
                  {
                    "label": "In wei",
                    "value": "21000000000000"
                  },
                  {
                    "label": "In gwei",
                    "value": "21000"
                  },
                  {
                    "label": "In ETH",
                    "value": "0.000021000000000000"
                  }
                ],
                "steps": [
                  "Scale to wei: 21000 Gwei = 21000000000000 wei (exact BigInt)",
                  "Render in Ether: 0.000021000000000000"
                ],
                "value": null
              },
              "tool": "wei-eth-converter"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "from": {
                      "description": "From",
                      "enum": [
                        "wei",
                        "kwei",
                        "mwei",
                        "gwei",
                        "microeth",
                        "millieth",
                        "eth"
                      ],
                      "type": "string"
                    },
                    "to": {
                      "description": "To",
                      "enum": [
                        "wei",
                        "kwei",
                        "mwei",
                        "gwei",
                        "microeth",
                        "millieth",
                        "eth"
                      ],
                      "type": "string"
                    },
                    "value": {
                      "description": "Decimal string for exact precision",
                      "type": "string"
                    }
                  },
                  "required": [
                    "value"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentstoolshub.com",
    "manifest_name": "agentstoolshub.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"
  }
}