Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamalbuilds/solanabot
A telegram bot for fetching solana tokens metadata live
https://github.com/kamalbuilds/solanabot
Last synced: 3 days ago
JSON representation
A telegram bot for fetching solana tokens metadata live
- Host: GitHub
- URL: https://github.com/kamalbuilds/solanabot
- Owner: kamalbuilds
- License: mit
- Created: 2023-01-01T10:25:06.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T10:59:50.000Z (almost 2 years ago)
- Last Synced: 2023-07-27T08:43:04.795Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://dev.to/kamalthedev/build-a-bot-with-zettablock-graphql-api-4h8f
- Size: 424 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Solana Token Bot with ZettaBlock API
## Introduction
The Solana Token Bot is a program that allows you to interact with the Solana blockchain that fetches the token metadata live using the ZettaBlock API right in the telegram bot by just writing a simple command.
The ZettaBlock API is a set of APIs that allows developers to access and interact with the Solana blockchain.## Installation
Clone the repository and install the dependencies.
```bash
git clone https://github.com/legendarykamal/solanabot.git
cd solanabot
yarn install
```## Config
Create a `.env` file in the root directory of the project. Copy the contents of `.env.example` into the `.env` file and fill in the values for the variables.
Example:
```
API_ID = 'YOUR_API_ID'
BOT_TOKEN = 'YOUR_BOT_TOKEN'
X_API_KEY = 'YOUR_X_API_KEY'
```## Run
To start the bot, run the command below:
```bash
$ node bot.js
```## How to use
Visit your bot on Telegram and type `/token $SYMBOL` to query the token metadata.
![bot](botexample.png)