open-index/open-npm huggingface dataset:
npm package: @raiddotfarm/erc20-balances
Latest version: 0.1.8

utility package used by raid apps, get balances of an ERC20 token. Parses all transactions on the contract and calculates balance.

single function package, accepts:

- `contract`: address of the contract
- `rpc`: RPC address, defaults to homestead
- `startBlock`: block number to start at, defaults to 0
- `endBlock`: block number to end at, defaults to latest
- `data` : add the resultant balance to an existing object (ideally one returned by the same function in the past) by passing it here
- `paginateLimit`: number of blocks to search for in one call. pass 0 to search all blocks. defaults to 0.
- `logProgress`: boolean, if true, prints progress to `get-erc20-balances.log` in the current directory. defaults to false.
npm package: @raiddotfarm/get-chain-name
Latest version: 0.1.192

utility package used by raid apps, wrapper around [this registry](https://chainid.network/chains.json), updated every week.

### get chain name

```js
const find = require("@raiddotfarm/get-chain-name");

chainName = find(1);
console.log(chainName);
```

Output:

```bash
Ethereum Mainnet
```

### get chain metadata

```js
chainData = find(1);
console.log(chainData);
```

Output:

```json
{
  "chain": "ETH",
  "chainId": 1,
  "ens": {
    "registry": "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
  },
  "explorers": [
    {
      "name": "etherscan",
      "standard": "EIP3091",
      "url": "https://etherscan.io"
    }
  ],
  "faucets": [],
  "icon": "ethereum",
  "infoURL": "https://ethereum.org",
  "name": "Ethereum Mainnet",
  "nativeCurrency": {
    "decimals": 18,
    "name": "Ether",
    "symbol": "ETH"
  },
  "networkId": 1,
  "rpc": [
    "https://mainnet.infura.io/v3/${INFURA_API_KEY}",
    "wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}",
    "https://api.mycryptoapi.com/eth",
    "https://cloudflare-eth.com"
  ],
  "shortName": "eth",
  "slip44": 60
}
```