WETH
/getbalance
Get the balance or number of WETH in the requested public address. Currently available on Ethereum, Binance Smart Chain, Avalanche, Polygon, Cronos, Arbitrum, Fantom, Optimism, Base, and zkSync.
GET
https://api.expand.network/weth/getbalance
Query Parameters
Name | Type | Description |
---|---|---|
rpc | String | Remote procedural call URL |
chainId | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
address* | String | The public address to get the balance of. |
/historical/logs
Retrieves all the logs for WETH events specified in query in the given block range.
GET
https://api.expand.network/weth/historical/logs
Query Parameters
Name | Type | Description |
---|---|---|
chainId | String | Refer to the Chain ID page for details. |
chainSymbol | String | Refer to the Chain ID page for details. |
startBlock | String | Starting block of the range. by default latestBlock -100 |
endBlock | String | Last block of the range. by default its latestBlock |
type* | String | Deposit/Withdrawal |
Last updated