{
  "openapi": "3.1.0",
  "info": {
    "title": "Gully Chain API",
    "version": "0.1.0",
    "summary": "Etherscan-compatible read API for Gully Chain.",
    "description": "Read balances, transactions, logs, token data and published contract sources on Gully Chain Testnet (chain 485590, test funds with no real value).\n\n**Keys.** Use your Gully RPC key: the same key works on RPC and on this API. Create one at https://app.gullyrpc.xyz/dashboard/keys. Send it as `apikey=` in the query, as the `X-API-Key` header or as `Authorization: Bearer`. A revoked key stops working within 30 seconds.\n\n**Limits.** Each tier has a per-second and a per-day limit. Every answer carries the `X-RateLimit-*` headers; over the limit the answer is HTTP 429 with `Retry-After`.\n\n| Tier | Calls per second | Burst | Calls per day |\n|---|---|---|---|\n| Free | 5 | 10 | 100,000 |\n| Starter | 15 | 30 | 3,300,000 |\n| Pro | 30 | 60 | 16,000,000 |\n| Business | 100 | 200 | 50,000,000 |\n\n**Errors.** Every error has `status` \"0\" and an `error` object with a stable `code`.\n\n| Code | HTTP | Meaning |\n|---|---|---|\n| BAD_REQUEST | 200 | A parameter is missing or malformed. The HTTP status is 200 and `status` is \"0\", as on Etherscan. |\n| DAILY_LIMIT | 429 | Daily limit of the key's tier reached. Resets at 00:00 UTC. |\n| INTERNAL | 500 | Unexpected error. |\n| INVALID_KEY | 401 | The key is unknown or revoked. |\n| KEYSTORE_DOWN | 503 | Keys cannot be checked right now. Retry shortly. |\n| KEY_REQUIRED | 401 | No key was sent. |\n| METHOD | 405 | Only GET is supported. |\n| NOT_ENABLED | 503 | The API is switched off. |\n| NOT_FOUND | 404 | Unknown path. |\n| RANGE | 200 | The block range or result window is too large. Narrow it. |\n| RATE_LIMITED | 429 | Per-second limit of the key's tier reached. Wait `Retry-After` seconds. |\n| UNSUPPORTED | 200 | The action is not available on this chain yet. |\n| UPSTREAM | 502 | A data source did not answer. Retry shortly. |\n| UPSTREAM_BUSY | 503 | The service is busy. Retry shortly. |\n| UPSTREAM_TIMEOUT | 504 | A data source did not answer in time. Retry shortly. |",
    "x-generated-by": "scripts/gen-openapi.mjs"
  },
  "servers": [
    {
      "url": "https://api.gullyrpc.xyz",
      "description": "Gully Chain Testnet (485590)"
    }
  ],
  "tags": [
    {
      "name": "Etherscan-compatible"
    },
    {
      "name": "Your key"
    }
  ],
  "paths": {
    "/api": {
      "get": {
        "operationId": "etherscanCompatible",
        "tags": [
          "Etherscan-compatible"
        ],
        "summary": "Etherscan-compatible read API",
        "description": "One endpoint, chosen by `module` and `action`, in the Etherscan shape `{ status, message, result }`. Tools written for Etherscan work by changing the base URL.\n\n| module | action | parameters | what it returns |\n|---|---|---|---|\n| account | balance | address, tag | Native coin balance of one address, in wei. |\n| account | balancemulti | address, tag | Native coin balance of up to 20 addresses. |\n| account | tokenbalance | address, contractaddress, tag | ERC-20 balance of an address for one token, in the token's smallest unit. |\n| account | txlist | address, endblock, offset, page, sort, startblock | Transactions of an address, paged. Fields the index does not hold (nonce, blockHash, gas) are empty strings. |\n| account | tokentx | address, contractaddress, offset, page | ERC-20 transfers of an address, paged; optionally one token only. |\n| account | txlistinternal | none | Not available on this chain yet: Internal transactions. |\n| transaction | getstatus | txhash | Execution status of a transaction (isError 0 or 1). |\n| transaction | gettxreceiptstatus | txhash | Receipt status of a transaction (1 = success). |\n| proxy | eth_blockNumber | none | Latest block number (JSON-RPC envelope). |\n| proxy | eth_gasPrice | none | Current gas price in wei (JSON-RPC envelope). |\n| proxy | eth_getBlockByNumber | boolean, tag | A block by number or tag. |\n| proxy | eth_getTransactionByHash | txhash | A transaction by hash. |\n| proxy | eth_getTransactionReceipt | txhash | A transaction receipt by hash. |\n| proxy | eth_getTransactionCount | address, tag | Nonce of an address. |\n| proxy | eth_getCode | address, tag | Contract bytecode at an address. |\n| proxy | eth_getStorageAt | address, position, tag | A storage slot of a contract. |\n| proxy | eth_call | data, tag, to | Read-only contract call. |\n| proxy | eth_estimateGas | data, from, to | Gas estimate for a call. |\n| stats | tokensupply | contractaddress | Total supply of an ERC-20 token. |\n| stats | ethsupply | none | Not available on this chain yet: Native coin supply. |\n| stats | ethprice | none | Not available on this chain yet: Native coin price. |\n| gastracker | gasoracle | none | Current gas prices in gwei and the latest block. |\n| logs | getLogs | address, fromBlock, offset, page, toBlock, topic0, topic1, topic2, topic3 | Event logs by address and/or topics, at most 5000 blocks and 1000 rows per call. |\n| contract | getabi | address | ABI of a contract whose source is published on verify.gullychain.xyz. |\n| contract | getsourcecode | address | Source code, compiler settings and proxy details of a contract published on verify.gullychain.xyz. |\n\nmodule=proxy answers with the JSON-RPC envelope `{ jsonrpc, id, result }`, as on Etherscan. Read only: nothing here signs or sends a transaction.",
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          },
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "module",
            "in": "query",
            "required": true,
            "description": "The module.",
            "schema": {
              "type": "string",
              "enum": [
                "account",
                "transaction",
                "proxy",
                "stats",
                "gastracker",
                "logs",
                "contract"
              ]
            },
            "example": "account"
          },
          {
            "name": "action",
            "in": "query",
            "required": true,
            "description": "The action inside the module. See the table above.",
            "schema": {
              "type": "string",
              "enum": [
                "balance",
                "balancemulti",
                "tokenbalance",
                "txlist",
                "tokentx",
                "txlistinternal",
                "getstatus",
                "gettxreceiptstatus",
                "eth_blockNumber",
                "eth_gasPrice",
                "eth_getBlockByNumber",
                "eth_getTransactionByHash",
                "eth_getTransactionReceipt",
                "eth_getTransactionCount",
                "eth_getCode",
                "eth_getStorageAt",
                "eth_call",
                "eth_estimateGas",
                "tokensupply",
                "ethsupply",
                "ethprice",
                "gasoracle",
                "getLogs",
                "getabi",
                "getsourcecode"
              ]
            },
            "example": "balance"
          },
          {
            "name": "address",
            "in": "query",
            "required": false,
            "description": "Account or contract address (0x + 40 hex). For balancemulti: up to 20 addresses, comma separated.",
            "schema": {
              "type": "string"
            },
            "example": "0x1111111111111111111111111111111111111111"
          },
          {
            "name": "boolean",
            "in": "query",
            "required": false,
            "description": "true to return full transaction objects in the block.",
            "schema": {
              "type": "string"
            },
            "example": "false"
          },
          {
            "name": "contractaddress",
            "in": "query",
            "required": false,
            "description": "Token contract address.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "data",
            "in": "query",
            "required": false,
            "description": "Call data (0x hex).",
            "schema": {
              "type": "string"
            },
            "example": "0x18160ddd"
          },
          {
            "name": "endblock",
            "in": "query",
            "required": false,
            "description": "Last block to include.",
            "schema": {
              "type": "string"
            },
            "example": "99999999"
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "description": "Optional sender for the gas estimate.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromBlock",
            "in": "query",
            "required": false,
            "description": "First block of the range. At most 5000 blocks per call.",
            "schema": {
              "type": "string"
            },
            "example": "1000"
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Rows per page, 1 to 1000. page x offset must not exceed 10000.",
            "schema": {
              "type": "string"
            },
            "example": "10"
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number, from 1.",
            "schema": {
              "type": "string"
            },
            "example": "1"
          },
          {
            "name": "position",
            "in": "query",
            "required": false,
            "description": "Storage slot (0x hex).",
            "schema": {
              "type": "string"
            },
            "example": "0x0"
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "description": "asc (default) or desc.",
            "schema": {
              "type": "string"
            },
            "example": "asc"
          },
          {
            "name": "startblock",
            "in": "query",
            "required": false,
            "description": "First block to include.",
            "schema": {
              "type": "string"
            },
            "example": "0"
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "Block: latest, earliest, pending, safe, finalized, a decimal number or 0x hex. Default latest.",
            "schema": {
              "type": "string"
            },
            "example": "latest"
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "description": "Contract to call.",
            "schema": {
              "type": "string"
            },
            "example": "0x2222222222222222222222222222222222222222"
          },
          {
            "name": "toBlock",
            "in": "query",
            "required": false,
            "description": "Last block of the range, or latest.",
            "schema": {
              "type": "string"
            },
            "example": "latest"
          },
          {
            "name": "topic0",
            "in": "query",
            "required": false,
            "description": "Event signature topic (0x + 64 hex). An address or topic0 is required.",
            "schema": {
              "type": "string"
            },
            "example": "0xabababababababababababababababababababababababababababababababab"
          },
          {
            "name": "topic1",
            "in": "query",
            "required": false,
            "description": "Second topic filter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "topic2",
            "in": "query",
            "required": false,
            "description": "Third topic filter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "topic3",
            "in": "query",
            "required": false,
            "description": "Fourth topic filter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "txhash",
            "in": "query",
            "required": false,
            "description": "Transaction hash (0x + 64 hex).",
            "schema": {
              "type": "string"
            },
            "example": "0xabababababababababababababababababababababababababababababababab"
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, or an Etherscan-style error with `status` \"0\".",
            "headers": {
              "X-RateLimit-Limit": {
                "description": "Calls per second allowed on your tier.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Calls left in the current burst.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time (seconds) when the burst is full again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Tier": {
                "description": "The tier the call was counted on.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "description": "Calls per UTC day on your tier, when the tier has a daily limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "description": "Calls left today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/EtherscanResult"
                    },
                    {
                      "$ref": "#/components/schemas/JsonRpcResult"
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                },
                "examples": {
                  "balance": {
                    "summary": "account.balance",
                    "value": {
                      "status": "1",
                      "message": "OK",
                      "result": "1000000000000000000"
                    }
                  },
                  "gasoracle": {
                    "summary": "gastracker.gasoracle",
                    "value": {
                      "status": "1",
                      "message": "OK",
                      "result": {
                        "LastBlock": "19404777",
                        "SafeGasPrice": "0.1",
                        "ProposeGasPrice": "0.1",
                        "FastGasPrice": "0.1",
                        "suggestBaseFee": "0.1",
                        "gasUsedRatio": "0.1000,0.5000"
                      }
                    }
                  },
                  "blockNumber": {
                    "summary": "proxy.eth_blockNumber",
                    "value": {
                      "jsonrpc": "2.0",
                      "id": 1,
                      "result": "0x1281a69"
                    }
                  },
                  "badAddress": {
                    "summary": "A malformed address",
                    "value": {
                      "status": "0",
                      "message": "NOTOK",
                      "result": "Error! Invalid address format",
                      "error": {
                        "code": "BAD_REQUEST",
                        "message": "Error! Invalid address format"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is unknown or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "0",
                  "message": "NOTOK",
                  "result": "Invalid API Key",
                  "error": {
                    "code": "INVALID_KEY",
                    "message": "Invalid API Key"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Over the limit of your tier.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Limit": {
                "description": "Calls per second allowed on your tier.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Remaining": {
                "description": "Calls left in the current burst.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Reset": {
                "description": "Unix time (seconds) when the burst is full again.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Tier": {
                "description": "The tier the call was counted on.",
                "schema": {
                  "type": "string"
                }
              },
              "X-RateLimit-Daily-Limit": {
                "description": "Calls per UTC day on your tier, when the tier has a daily limit.",
                "schema": {
                  "type": "integer"
                }
              },
              "X-RateLimit-Daily-Remaining": {
                "description": "Calls left today.",
                "schema": {
                  "type": "integer"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "0",
                  "message": "NOTOK",
                  "result": "Max rate limit reached (5/sec on tier tier-free)",
                  "error": {
                    "code": "RATE_LIMITED",
                    "message": "Max rate limit reached (5/sec on tier tier-free)",
                    "retryAfter": 1
                  }
                }
              }
            }
          },
          "502": {
            "description": "A data source did not answer (also 504 when it timed out).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Busy or switched off. Retry shortly.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/v1/limits": {
      "get": {
        "operationId": "getLimits",
        "tags": [
          "Your key"
        ],
        "summary": "The limits of your key",
        "description": "The tier your key is on and its limits. Not counted against the limit.",
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Your tier.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Limits"
                },
                "example": {
                  "status": "1",
                  "message": "OK",
                  "result": {
                    "tier": "tier-free",
                    "rps": 5,
                    "burst": 10,
                    "daily": 100000,
                    "keyless": false,
                    "enforced": false
                  }
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is unknown or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "0",
                  "message": "NOTOK",
                  "result": "Invalid API Key",
                  "error": {
                    "code": "INVALID_KEY",
                    "message": "Invalid API Key"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "getUsage",
        "tags": [
          "Your key"
        ],
        "summary": "Recent calls of your key by endpoint",
        "description": "Counts since the service last started, by endpoint and outcome. The portal shows the full history.",
        "security": [
          {
            "apiKeyQuery": []
          },
          {
            "apiKeyHeader": []
          },
          {
            "bearer": []
          }
        ],
        "responses": {
          "200": {
            "description": "Usage rows.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Usage"
                }
              }
            }
          },
          "401": {
            "description": "No key, or a key that is unknown or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "example": {
                  "status": "0",
                  "message": "NOTOK",
                  "result": "Invalid API Key",
                  "error": {
                    "code": "INVALID_KEY",
                    "message": "Invalid API Key"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "apikey",
        "description": "Your Gully RPC key."
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "Your Gully RPC key."
      },
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Your Gully RPC key."
      }
    },
    "schemas": {
      "EtherscanResult": {
        "type": "object",
        "required": [
          "status",
          "message",
          "result"
        ],
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "0",
              "1"
            ],
            "description": "\"1\" when the call worked."
          },
          "message": {
            "type": "string"
          },
          "result": {
            "description": "A string, an object or a list, by action."
          }
        }
      },
      "JsonRpcResult": {
        "type": "object",
        "required": [
          "jsonrpc",
          "id",
          "result"
        ],
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "type": "integer"
          },
          "result": {}
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "status",
          "message",
          "result",
          "error"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "0"
          },
          "message": {
            "type": "string",
            "const": "NOTOK"
          },
          "result": {
            "type": "string",
            "description": "The reason, in plain words."
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "BAD_REQUEST",
                  "DAILY_LIMIT",
                  "INTERNAL",
                  "INVALID_KEY",
                  "KEYSTORE_DOWN",
                  "KEY_REQUIRED",
                  "METHOD",
                  "NOT_ENABLED",
                  "NOT_FOUND",
                  "RANGE",
                  "RATE_LIMITED",
                  "UNSUPPORTED",
                  "UPSTREAM",
                  "UPSTREAM_BUSY",
                  "UPSTREAM_TIMEOUT"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryAfter": {
                "type": "integer",
                "description": "Seconds to wait (429 only)."
              }
            }
          }
        }
      },
      "Limits": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "properties": {
              "tier": {
                "type": "string"
              },
              "rps": {
                "type": "integer"
              },
              "burst": {
                "type": "integer"
              },
              "daily": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "keyless": {
                "type": "boolean"
              },
              "enforced": {
                "type": "boolean",
                "description": "false while limits are measured and reported in the headers but a 429 is not sent yet."
              }
            }
          }
        }
      },
      "Usage": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "properties": {
              "note": {
                "type": "string"
              },
              "rows": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "endpoint": {
                      "type": "string",
                      "examples": [
                        "account.balance"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "ok",
                        "limited",
                        "error"
                      ]
                    },
                    "count": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-actions": [
    {
      "module": "account",
      "action": "balance",
      "summary": "Native coin balance of one address, in wei.",
      "available": true,
      "parameters": [
        "address",
        "tag"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=account&action=balance&address=0x1111111111111111111111111111111111111111&tag=latest&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "account",
      "action": "balancemulti",
      "summary": "Native coin balance of up to 20 addresses.",
      "available": true,
      "parameters": [
        "address",
        "tag"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=account&action=balancemulti&address=0x1111111111111111111111111111111111111111&tag=latest&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "account",
      "action": "tokenbalance",
      "summary": "ERC-20 balance of an address for one token, in the token's smallest unit.",
      "available": true,
      "parameters": [
        "address",
        "contractaddress",
        "tag"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=account&action=tokenbalance&address=0x1111111111111111111111111111111111111111&contractaddress=0x2222222222222222222222222222222222222222&tag=latest&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "account",
      "action": "txlist",
      "summary": "Transactions of an address, paged. Fields the index does not hold (nonce, blockHash, gas) are empty strings.",
      "available": true,
      "parameters": [
        "address",
        "endblock",
        "offset",
        "page",
        "sort",
        "startblock"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=account&action=txlist&address=0x1111111111111111111111111111111111111111&offset=10&page=1&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "account",
      "action": "tokentx",
      "summary": "ERC-20 transfers of an address, paged; optionally one token only.",
      "available": true,
      "parameters": [
        "address",
        "contractaddress",
        "offset",
        "page"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=account&action=tokentx&address=0x1111111111111111111111111111111111111111&contractaddress=0x2222222222222222222222222222222222222222&offset=10&page=1&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "account",
      "action": "txlistinternal",
      "summary": "Internal transactions.",
      "available": false,
      "parameters": [],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=account&action=txlistinternal&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "transaction",
      "action": "getstatus",
      "summary": "Execution status of a transaction (isError 0 or 1).",
      "available": true,
      "parameters": [
        "txhash"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=transaction&action=getstatus&txhash=0xabababababababababababababababababababababababababababababababab&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "transaction",
      "action": "gettxreceiptstatus",
      "summary": "Receipt status of a transaction (1 = success).",
      "available": true,
      "parameters": [
        "txhash"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=transaction&action=gettxreceiptstatus&txhash=0xabababababababababababababababababababababababababababababababab&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_blockNumber",
      "summary": "Latest block number (JSON-RPC envelope).",
      "available": true,
      "parameters": [],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_blockNumber&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_gasPrice",
      "summary": "Current gas price in wei (JSON-RPC envelope).",
      "available": true,
      "parameters": [],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_gasPrice&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_getBlockByNumber",
      "summary": "A block by number or tag.",
      "available": true,
      "parameters": [
        "boolean",
        "tag"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_getBlockByNumber&boolean=false&tag=latest&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_getTransactionByHash",
      "summary": "A transaction by hash.",
      "available": true,
      "parameters": [
        "txhash"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_getTransactionByHash&txhash=0xabababababababababababababababababababababababababababababababab&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_getTransactionReceipt",
      "summary": "A transaction receipt by hash.",
      "available": true,
      "parameters": [
        "txhash"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_getTransactionReceipt&txhash=0xabababababababababababababababababababababababababababababababab&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_getTransactionCount",
      "summary": "Nonce of an address.",
      "available": true,
      "parameters": [
        "address",
        "tag"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_getTransactionCount&address=0x1111111111111111111111111111111111111111&tag=latest&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_getCode",
      "summary": "Contract bytecode at an address.",
      "available": true,
      "parameters": [
        "address",
        "tag"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_getCode&address=0x1111111111111111111111111111111111111111&tag=latest&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_getStorageAt",
      "summary": "A storage slot of a contract.",
      "available": true,
      "parameters": [
        "address",
        "position",
        "tag"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_getStorageAt&address=0x1111111111111111111111111111111111111111&position=0x0&tag=latest&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_call",
      "summary": "Read-only contract call.",
      "available": true,
      "parameters": [
        "data",
        "tag",
        "to"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_call&data=0x18160ddd&tag=latest&to=0x2222222222222222222222222222222222222222&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "proxy",
      "action": "eth_estimateGas",
      "summary": "Gas estimate for a call.",
      "available": true,
      "parameters": [
        "data",
        "from",
        "to"
      ],
      "envelope": "json-rpc",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=proxy&action=eth_estimateGas&data=0x18160ddd&to=0x2222222222222222222222222222222222222222&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "stats",
      "action": "tokensupply",
      "summary": "Total supply of an ERC-20 token.",
      "available": true,
      "parameters": [
        "contractaddress"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=stats&action=tokensupply&contractaddress=0x2222222222222222222222222222222222222222&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "stats",
      "action": "ethsupply",
      "summary": "Native coin supply.",
      "available": false,
      "parameters": [],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=stats&action=ethsupply&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "stats",
      "action": "ethprice",
      "summary": "Native coin price.",
      "available": false,
      "parameters": [],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=stats&action=ethprice&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "gastracker",
      "action": "gasoracle",
      "summary": "Current gas prices in gwei and the latest block.",
      "available": true,
      "parameters": [],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=gastracker&action=gasoracle&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "logs",
      "action": "getLogs",
      "summary": "Event logs by address and/or topics, at most 5000 blocks and 1000 rows per call.",
      "available": true,
      "parameters": [
        "address",
        "fromBlock",
        "offset",
        "page",
        "toBlock",
        "topic0",
        "topic1",
        "topic2",
        "topic3"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=logs&action=getLogs&address=0x1111111111111111111111111111111111111111&fromBlock=1000&offset=10&page=1&toBlock=latest&topic0=0xabababababababababababababababababababababababababababababababab&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "contract",
      "action": "getabi",
      "summary": "ABI of a contract whose source is published on verify.gullychain.xyz.",
      "available": true,
      "parameters": [
        "address"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=contract&action=getabi&address=0x1111111111111111111111111111111111111111&apikey=YOUR_GULLY_RPC_KEY\""
    },
    {
      "module": "contract",
      "action": "getsourcecode",
      "summary": "Source code, compiler settings and proxy details of a contract published on verify.gullychain.xyz.",
      "available": true,
      "parameters": [
        "address"
      ],
      "envelope": "etherscan",
      "example": "curl \"https://api.gullyrpc.xyz/api?module=contract&action=getsourcecode&address=0x1111111111111111111111111111111111111111&apikey=YOUR_GULLY_RPC_KEY\""
    }
  ],
  "x-rate-limit": {
    "headers": [
      "X-RateLimit-Limit",
      "X-RateLimit-Remaining",
      "X-RateLimit-Reset",
      "X-RateLimit-Tier",
      "X-RateLimit-Daily-Limit",
      "X-RateLimit-Daily-Remaining"
    ],
    "tiers": [
      {
        "id": "tier-free",
        "name": "Free",
        "perSecond": 5,
        "burst": 10,
        "perDay": 100000
      },
      {
        "id": "tier-starter",
        "name": "Starter",
        "perSecond": 15,
        "burst": 30,
        "perDay": 3300000
      },
      {
        "id": "tier-pro",
        "name": "Pro",
        "perSecond": 30,
        "burst": 60,
        "perDay": 16000000
      },
      {
        "id": "tier-enterprise",
        "name": "Business",
        "perSecond": 100,
        "burst": 200,
        "perDay": 50000000
      }
    ]
  },
  "x-errors": [
    {
      "code": "BAD_REQUEST",
      "http": 200,
      "meaning": "A parameter is missing or malformed. The HTTP status is 200 and `status` is \"0\", as on Etherscan."
    },
    {
      "code": "DAILY_LIMIT",
      "http": 429,
      "meaning": "Daily limit of the key's tier reached. Resets at 00:00 UTC."
    },
    {
      "code": "INTERNAL",
      "http": 500,
      "meaning": "Unexpected error."
    },
    {
      "code": "INVALID_KEY",
      "http": 401,
      "meaning": "The key is unknown or revoked."
    },
    {
      "code": "KEYSTORE_DOWN",
      "http": 503,
      "meaning": "Keys cannot be checked right now. Retry shortly."
    },
    {
      "code": "KEY_REQUIRED",
      "http": 401,
      "meaning": "No key was sent."
    },
    {
      "code": "METHOD",
      "http": 405,
      "meaning": "Only GET is supported."
    },
    {
      "code": "NOT_ENABLED",
      "http": 503,
      "meaning": "The API is switched off."
    },
    {
      "code": "NOT_FOUND",
      "http": 404,
      "meaning": "Unknown path."
    },
    {
      "code": "RANGE",
      "http": 200,
      "meaning": "The block range or result window is too large. Narrow it."
    },
    {
      "code": "RATE_LIMITED",
      "http": 429,
      "meaning": "Per-second limit of the key's tier reached. Wait `Retry-After` seconds."
    },
    {
      "code": "UNSUPPORTED",
      "http": 200,
      "meaning": "The action is not available on this chain yet."
    },
    {
      "code": "UPSTREAM",
      "http": 502,
      "meaning": "A data source did not answer. Retry shortly."
    },
    {
      "code": "UPSTREAM_BUSY",
      "http": 503,
      "meaning": "The service is busy. Retry shortly."
    },
    {
      "code": "UPSTREAM_TIMEOUT",
      "http": 504,
      "meaning": "A data source did not answer in time. Retry shortly."
    }
  ],
  "x-try-it": {
    "keyless": false,
    "note": "This API needs a key, so the hub shows curl with a placeholder."
  }
}
