{"id":14958621,"url":"https://github.com/pedrouid/evm-chains","last_synced_at":"2025-05-02T12:31:40.727Z","repository":{"id":34932737,"uuid":"192360310","full_name":"pedrouid/evm-chains","owner":"pedrouid","description":"Package to get chain data from ethereum-lists/chains","archived":false,"fork":false,"pushed_at":"2023-01-07T22:03:31.000Z","size":844,"stargazers_count":34,"open_issues_count":20,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-20T00:20:09.536Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/evm-chains","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedrouid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-17T14:15:10.000Z","updated_at":"2024-12-03T18:43:39.000Z","dependencies_parsed_at":"2023-01-15T10:40:50.249Z","dependency_job_id":null,"html_url":"https://github.com/pedrouid/evm-chains","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrouid%2Fevm-chains","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrouid%2Fevm-chains/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrouid%2Fevm-chains/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedrouid%2Fevm-chains/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedrouid","download_url":"https://codeload.github.com/pedrouid/evm-chains/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251789618,"owners_count":21644086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T13:17:36.180Z","updated_at":"2025-05-02T12:31:40.204Z","avatar_url":"https://github.com/pedrouid.png","language":"TypeScript","readme":"# evm-chains\n\nPackage to query chain data from [ethereum-lists/chains](https://github.com/ethereum-lists/chains)\n\n## Install\n\n```sh\nnpm install --save evm-chains\n\n#or\n\nyarn add evm-chains\n```\n\n## API\n\n```typescript\nfunction getAllChains(): IChainData[];\nfunction getChain(chainId: number): IChainData;\nfunction getChainByChainId(chainId: number): IChainData;\nfunction getChainByKeyValue(key: string, value: any): IChainData;\nfunction getChainByNetworkId(networkId: number): number;\nfunction convertNetworkIdToChainId(networkId: number): number;\nfunction convertChainIdToNetworkId(chainId: number): number;\n```\n\n## Types\n\n```typescript\ninterface IChainData {\n  name: string;\n  chainId: number;\n  shortName: string;\n  chain: string;\n  network: string;\n  networkId: number;\n  nativeCurrency: {\n    name: string;\n    symbol: string;\n    decimals: number;\n  };\n  rpc: string[];\n  faucets: string[];\n  infoURL: string;\n}\n```\n\n## Data Source\n\n[https://github.com/ethereum-lists/chains](https://github.com/ethereum-lists/chains)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrouid%2Fevm-chains","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedrouid%2Fevm-chains","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedrouid%2Fevm-chains/lists"}