Ether Tracker

Ether Tracker · GPT-Aktionen

Ethereum Transaction Value Fetcher

This API enables the GPT to retrieve transaction values from the Ethereum Blockchain using transaction hashes.

  • GET /transaction/{hash}Fetches the value of an Ethereum transaction
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Ethereum Transaction Value Fetcher",
    "version": "1.0.0",
    "description": "This API enables the GPT to retrieve transaction values from the Ethereum Blockchain using transaction hashes."
  },
  "servers": [
    {
      "url": "https://gpttransaction-45e989ce5e41.herokuapp.com",
      "description": "App deployed through Heroku"
    }
  ],
  "paths": {
    "/transaction/{hash}": {
      "get": {
        "operationId": "transactionValue",
        "summary": "Fetches the value of an Ethereum transaction",
        "parameters": [
          {
            "name": "hash",
            "in": "path",
            "required": true,
            "description": "The hash of the Ethereum transaction",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with the transaction value",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "value": {
                      "type": "string",
                      "description": "The value of the transaction in Ether"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "Error message"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}