ENS Code Navigator
ENS Code Navigator · GPT Actions
Infura Ethereum ERC-20 API
API for interacting with ERC-20 tokens on the Ethereum blockchain via Infura.
POST /Observe logs of mined ERC-20 transactionsUse eth_getLogs to observe event logs of mined ERC-20 transactions.
原始 API 定义
{
"openapi": "3.0.0",
"info": {
"title": "Infura Ethereum ERC-20 API",
"description": "API for interacting with ERC-20 tokens on the Ethereum blockchain via Infura.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://mainnet.infura.io/v3/{API-KEY}",
"description": "Infura Ethereum Mainnet",
"variables": {
"API-KEY": {
"default": "c1da96565bc6473d9e6b7cd6841ce149",
"description": "Your Infura API key"
}
}
}
],
"paths": {
"/": {
"post": {
"operationId": "getErc20EventLogs",
"summary": "Observe logs of mined ERC-20 transactions",
"description": "Use eth_getLogs to observe event logs of mined ERC-20 transactions.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"jsonrpc": {
"type": "string",
"example": "2.0"
},
"method": {
"type": "string",
"example": "eth_getLogs"
},
"params": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fromBlock": {
"type": "string"
},
"toBlock": {
"type": "string"
},
"topics": {
"type": "array",
"items": {
"type": "string"
}
},
"address": {
"type": "string"
}
}
}
},
"id": {
"type": "integer",
"example": 1
}
}
}
}
}
},
"responses": {
"200": {
"description": "Event logs retrieved successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"result": {
"type": "array",
"items": {
"type": "object"
}
},
"error": {
"type": "object"
},
"id": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}