Skip to content

Commit

Permalink
release 2.0.3 with updated doc
Browse files Browse the repository at this point in the history
  • Loading branch information
bdtren committed Mar 25, 2024
1 parent 6620faf commit 51746a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ const allChains = chains.all()
// { 1: { name: "Ethereum Mainnet", ..., "infoURL": "https://ethereum.org" }, 2: {...}}
```

### Get all Icons:

```ts
const allChains = chains.allIcons()
// { "5ireChain": { data: [...], imgUrls: ["https://ipfs.io/ipfs/QmaZDNDFLWESH4i3XqwEWfWBb1HPnQSNbDAr74nr2x8QAk"] }, "ETND": {...}}
```

### Chain Icon by Name:

```ts
chains.getIconByName("ethereum") // { data: [...], imgUrls: ["https://ipfs.io/ipfs/QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt"] }
```

### Typescript Types:

```ts
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bdtren/eth-chains",
"version": "2.0.2",
"version": "2.0.3",
"description": "Helper module for getting Ethereum chains info.",
"author": "BDtren",
"main": "dist/index.js",
Expand Down

0 comments on commit 51746a1

Please sign in to comment.