Giwater Scan GIWA Sepolia

Etherscan-compatible API

The same module and action calls as Etherscan, for GIWA Sepolia (chain id 91342). Read-only, free.

Base URLs

  • https://scan.giwater.finance/api
  • https://scan.giwater.finance/v2/api, the same calls; a chainid parameter, if sent, must be 91342

GET with a query string, or POST with a form body. Every answer is HTTP 200 with {"status","message","result"}; the proxy module answers JSON-RPC. The key goes in apikey; an unknown key or none is served with the keyless limits. Keys are not logged.

To ask for a key: contact line to be added.

Actions

ModuleActionStatusNotes
accountbalanceavailablewei at the indexed head, or at `tag` (a block number)
accountbalancemultiavailableup to 20 addresses
accounttxlistavailableadds l1Fee and l1GasUsed
accounttxlistinternalavailableby address, txhash or block range
accounttokentxavailableERC-20 transfers
accounttokennfttxavailableERC-721 transfers
accounttoken1155txavailableERC-1155 transfers, one row per id
accounttokenbalanceavailableread from the node
transactiongetstatusavailablea failed transaction is "Reverted" (the reason is not stored)
transactiongettxreceiptstatusavailable
blockgetblockrewardavailablepriority fees of the block; blockMiner is the L2 fee vault
blockgetblockcountdownavailableone block per second
blockgetblocknobytimeavailableclosest=before or after
proxyeth_blockNumberavailable
proxyeth_getBlockByNumberavailable
proxyeth_getBlockTransactionCountByNumberavailable
proxyeth_getTransactionByHashavailable
proxyeth_getTransactionByBlockNumberAndIndexavailable
proxyeth_getTransactionReceiptavailable
proxyeth_getTransactionCountavailable
proxyeth_getCodeavailable
proxyeth_getStorageAtavailable
proxyeth_gasPriceavailable
proxyeth_sendRawTransactionavailableneeds an API key
proxyeth_getUncleByBlockNumberAndIndexavailable
statstokensupplyavailableread from the node
statsethpriceavailableETH in USD and in BTC, from the price feed of the wallet API
gastrackergasoracleavailablefrom the last 20 blocks, in gwei
gastrackergasestimateavailable1 second if the price covers the base fee
logsgetLogsnot available yetchecks its arguments, then says it is not available yet
contractgetabi, getsourcecode, getcontractcreationnot available yetnot available yet
contractverifysourcecode, checkverifystatusnot available yetverification is not available yet

Proxy parameters use Etherscan's names: tag, boolean, address, txhash, position, index, hex. eth_call, eth_estimateGas and every other method answer Error! Missing Or invalid Action name. Node answers pass through, so receipts carry l1Fee, l1GasUsed and the other OP-stack fields.

Extensions: txlist rows carry l1Fee and l1GasUsed (deposits show "0").

Limits

WhatWithout a keyWith a key
Requests per second2, burst 10, per IP10, burst 30, per key
Requests per day (UTC)20,000 per IP100,000 per key
List sizepage x offset at most 10000; with neither, the first 10000 rows
getLogswith an address, any range; without one, toBlock - fromBlock at most 1000
Proxynode timeout 5 s; eth_sendRawTransaction needs a key

Errors

Errors are "status":"0", "message":"NOTOK" and the text in result.

TextWhen
Max rate limit reached, please use API Key for higher rate limitover the per-second limit (see Retry-After); also when the API is switched off
Max daily rate limit reachedover the daily limit; it resets at 00:00 UTC
Result window is too large, PageNo x Offset size must be less than or equal to 10000page x offset is above 10,000
Query Timeout occured. Please select a smaller result datasetthe query ran over its time limit
Error! Missing Or invalid Module nameunknown module
Error! Missing Or invalid Action nameunknown action; every proxy method not listed above also answers this
Error! Invalid address formatan address that is not 0x and 40 hex digits
Error! Invalid txhash formata hash that is not 0x and 64 hex digits
Error! Giwater Scan is catching up; indexed up to block Nthe indexer is behind; the proxy module still works
No transactions foundan empty list (status "0", result [])

Examples

curl

curl 'https://scan.giwater.finance/api?module=account&action=balance&address=0x0000000000000000000000000000000000000000&tag=latest'
curl 'https://scan.giwater.finance/v2/api?chainid=91342&module=account&action=txlist&address=0x0000000000000000000000000000000000000000&page=1&offset=10&sort=desc&apikey=YOUR_KEY'
curl 'https://scan.giwater.finance/api?module=proxy&action=eth_blockNumber'

Foundry

Contract verification is not available yet, so forge verify-contract will not succeed. Reads such as cast against the explorer URL use the actions above.

forge verify-contract <address> <Contract> --chain 91342 --verifier etherscan --verifier-url https://scan.giwater.finance/api --etherscan-api-key YOUR_KEY

Hardhat

etherscan: {
  apiKey: { giwaSepolia: "YOUR_KEY" },
  customChains: [
    {
      network: "giwaSepolia",
      chainId: 91342,
      urls: { apiURL: "https://scan.giwater.finance/api", browserURL: "https://scan.giwater.finance" },
    },
  ],
},

ethers v6

ethers builds its URLs for api.etherscan.io, so a subclass points them here.

import { EtherscanProvider, Network } from "ethers";

class GiwaScanProvider extends EtherscanProvider {
  getBaseUrl() { return "https://scan.giwater.finance"; }
  getUrl(module, params) {
    return `${this.getBaseUrl()}/api?${new URLSearchParams({ module, ...params })}`;
  }
  getPostUrl() { return `${this.getBaseUrl()}/api`; }
}

const provider = new GiwaScanProvider(new Network("giwa-sepolia", 91342), "YOUR_KEY");