Check addresses in EverScale blockchain
npm i ton-addr
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 = isAddr("-1:efd5a14409a8a129686114fc092525fddd508f1ea56d1b649a3a695d3a5b188c");
Response:
true
freeton20
- Website: https://t.me/tg2020ukraine
- Github: @freeton20
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a star if this project helped you!
This project is MIT licensed.