Tweets real-time NFT sales for ERC721 Smart contracts
In order to use this you’ll need to apply for Elevated access via the Twitter Developer Portal. You can learn more here.
$ npm install
- Create
.env
file & add contents fromexample.env
-- Add your API credentials. - Edit the
src/config.ts
file to add your smart contract & customize the tweet parameters. - Edit
src/erc721sales.service.ts
to customize for your use (Experienced users only & not a requirement). - Build & Deploy
npm run build
- Feel free to reach out on twitter
If you want to improve performances, you may want to use local images, to do so, simply set the following variables in the configuration:
use_local_images: true,
local_image_path: './token_images/tokens',
The local_image_path
will be suffixed with the token number, ie, here, it will seek for an image
named ./token_images/tokens0034.png
if the token #34 is sold.
You can create custom interactions by implementing custom extensions by extending the BaseService
base
class, an example is provided in the extensions/phunks.bid.extension.service.ts
. Once implemented, you can activate an extension by importing it in the AppModule
service providers, ie:
@Module({
imports: [HttpModule],
controllers: [],
providers: [
Erc721SalesService,
PhunksBidService,
],
})
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
The phunk community to serve the NFT space.
Created using Nest framework TypeScript starter repository. Nest is MIT licensed.