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/apihttps://scan.giwater.finance/v2/api, the same calls; achainidparameter, if sent, must be91342
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
| Module | Action | Status | Notes |
|---|---|---|---|
account | balance | available | wei at the indexed head, or at `tag` (a block number) |
account | balancemulti | available | up to 20 addresses |
account | txlist | available | adds l1Fee and l1GasUsed |
account | txlistinternal | available | by address, txhash or block range |
account | tokentx | available | ERC-20 transfers |
account | tokennfttx | available | ERC-721 transfers |
account | token1155tx | available | ERC-1155 transfers, one row per id |
account | tokenbalance | available | read from the node |
transaction | getstatus | available | a failed transaction is "Reverted" (the reason is not stored) |
transaction | gettxreceiptstatus | available | |
block | getblockreward | available | priority fees of the block; blockMiner is the L2 fee vault |
block | getblockcountdown | available | one block per second |
block | getblocknobytime | available | closest=before or after |
proxy | eth_blockNumber | available | |
proxy | eth_getBlockByNumber | available | |
proxy | eth_getBlockTransactionCountByNumber | available | |
proxy | eth_getTransactionByHash | available | |
proxy | eth_getTransactionByBlockNumberAndIndex | available | |
proxy | eth_getTransactionReceipt | available | |
proxy | eth_getTransactionCount | available | |
proxy | eth_getCode | available | |
proxy | eth_getStorageAt | available | |
proxy | eth_gasPrice | available | |
proxy | eth_sendRawTransaction | available | needs an API key |
proxy | eth_getUncleByBlockNumberAndIndex | available | |
stats | tokensupply | available | read from the node |
stats | ethprice | available | ETH in USD and in BTC, from the price feed of the wallet API |
gastracker | gasoracle | available | from the last 20 blocks, in gwei |
gastracker | gasestimate | available | 1 second if the price covers the base fee |
logs | getLogs | not available yet | checks its arguments, then says it is not available yet |
contract | getabi, getsourcecode, getcontractcreation | not available yet | not available yet |
contract | verifysourcecode, checkverifystatus | not available yet | verification 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
| What | Without a key | With a key |
|---|---|---|
| Requests per second | 2, burst 10, per IP | 10, burst 30, per key |
| Requests per day (UTC) | 20,000 per IP | 100,000 per key |
| List size | page x offset at most 10000; with neither, the first 10000 rows | |
| getLogs | with an address, any range; without one, toBlock - fromBlock at most 1000 | |
| Proxy | node timeout 5 s; eth_sendRawTransaction needs a key | |
Errors
Errors are "status":"0", "message":"NOTOK" and the text in result.
| Text | When |
|---|---|
Max rate limit reached, please use API Key for higher rate limit | over the per-second limit (see Retry-After); also when the API is switched off |
Max daily rate limit reached | over 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 10000 | page x offset is above 10,000 |
Query Timeout occured. Please select a smaller result dataset | the query ran over its time limit |
Error! Missing Or invalid Module name | unknown module |
Error! Missing Or invalid Action name | unknown action; every proxy method not listed above also answers this |
Error! Invalid address format | an address that is not 0x and 40 hex digits |
Error! Invalid txhash format | a hash that is not 0x and 64 hex digits |
Error! Giwater Scan is catching up; indexed up to block N | the indexer is behind; the proxy module still works |
No transactions found | an 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");