ninjastacktech / discord-eth-nft-sales-bot

.NET 6 C# Ethereum OpenSea, LooksRare, x2y2 NFT sales bot for Discord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ethereum NFT sales bot for Discord

Instead of polling the OpenSea API, this bot connects to an Infura websocket channel, subscribing to the collection's contract address events.

It filters those events based on standard ERC-721, ERC-1155 token transfer signature logs.

If the transaction's recipient matches the contract address of one of the popular NFT marketplaces on Ethereum, it will extract the token's metadata and post it to a Discord channel.

Currently supporting:

Built with đź’™ and:

Usage

// You can either configure:
// - channel id + bot token
// - webhook URL (recommended option: restricts the bot to post to the specified channel)
var bot = new NinjaBot(new NinjaBotOptions
{
    DiscordBotToken = "<discord_bot_token>",
    DiscordChannelId = "<discord_channel_id>",
    DiscordWebhookUrl = "<discord_webhook_url>",
    CollectionContractAddress = "<collection_contract_address>",
    InfuraApiKey = "<infura_api_key>"
});

await bot.StartAsync();

MIT License

About

.NET 6 C# Ethereum OpenSea, LooksRare, x2y2 NFT sales bot for Discord

License:MIT License


Languages

Language:C# 100.0%