Skip to content

Commit 8d7cc26

Browse files
committed
chore(readme): add section for BscScanner.Extensions.Convert
1 parent e280049 commit 8d7cc26

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

README.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
![GitHub](https://img.shields.io/github/license/pippinmole/bscscanner?style=for-the-badge)
88
</div>
99

10-
# BscScanner
10+
## BscScanner
1111

1212
BscScanner is a .NET wrapper for the [BscScan API](https://bscscan.com/apis).
1313

14-
## How to use
14+
### How to use
1515

1616
1. Install the [Nuget](https://www.nuget.org/packages/BscScanner) package
1717
```cli
@@ -25,6 +25,25 @@ BscScanner is a .NET wrapper for the [BscScan API](https://bscscan.com/apis).
2525
2626
> **NOTE**: The BscScan API uses Gwei units, which means you may need to convert them to BNB. [Here's a library for that](https://www.nuget.org/packages/BscScanner.Extensions.Convert/).
2727
28+
## BscScanner.Extensions.Convert
29+
A conversion library to convert between Binance (Smart) Chain units
30+
31+
[![NuGet version (BscScanner)](https://img.shields.io/github/license/pippinmole/BscScanner.Extensions.Convert?style=for-the-badge)](https://www.nuget.org/packages/BscScanner.Extensions.Convert)
32+
[![NuGet downloads](https://img.shields.io/nuget/dt/BscScanner.Extensions.Convert?style=for-the-badge)](https://www.nuget.org/packages/BscScanner.Extensions.Convert)
33+
[![Code size](https://img.shields.io/github/languages/code-size/pippinmole/BscScanner.Extensions.Convert?style=for-the-badge)](https://github.com/pippinmole/BscScanner.Extensions.Convert)
34+
35+
### How to use
36+
37+
1. Install the [Nuget](https://www.nuget.org/packages/BscScanner.Extensions.Convert) package
38+
```cli
39+
Install-Package BscScanner.Extensions.Convert
40+
```
41+
2. Convert units
42+
```cs
43+
var gwei = 1254000000000000000;
44+
var bnb = BscConvert.GweiToBnb(gwei); // 1.254
45+
```
46+
2847
## How to contribute
2948
3049
You can contribute by pulling the code, making some changes and then opening a pull request. The changes will be revised and merged into main if it is a valid feature/bug fix.

0 commit comments

Comments
 (0)