1.0.3 • Published 2 years ago

ton-addr v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Check addresses in EverScale blockchain

Homepage

Install

npm i ton-addr

Usage

Request:

const {accInfo} = require("ton-addr");
const response = await accInfo("-1:7777777777777777777777777777777777777777777777777777777777777777");

Response:

[
    {
        "network": "main.ton.dev",
        "data": [
            {
                "id": "-1:7777777777777777777777777777777777777777777777777777777777777777",
                "balance": "502157321823543539",
                "acc_type_name": "Active",
                "acc_type": 1
            }
        ]
    },
    {
        "network": "net.ton.dev",
        "data": [
            {
                "id": "-1:7777777777777777777777777777777777777777777777777777777777777777",
                "balance": "3225695154000000000",
                "acc_type_name": "Active",
                "acc_type": 1
            }
        ]
    },
    {
        "network": "localhost",
        "data": []
    }
]

Request:

const response = await isAddr("-1:efd5a14409a8a129686114fc092525fddd508f1ea56d1b649a3a695d3a5b188c");   

Response:

true

Author

freeton20

Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a star if this project helped you!

License

This project is MIT licensed.