Published on

How to generate parsiq wallet triggers for CryptoPunks - DSPYT

How to generate parsiq wallet triggers for CryptoPunks - DSPYT
Authors

In this post we create three parsiq platform smart Triggers that respond to CryptoPunks directly related on-chain events and follow custom logic to deliver all necessary transaction information about the price action.

Offers for Sale of the limited CryptoPunks collection are particularly vital to traders and collectors. New listings might prove to be an opportunity to profit from the immediate purchase. Meanwhile for traders new sales provide indicators for the demand and supply within the collections as well as for the market, in general.

Crypto punks is the NFT collection of 10000 uniquely generated characters. The collection has a highest market capitalization and market volume as of November 4th 2021.

Crypto punks

Simple Walkthrough

  1. parsiq account with an Empty project
  2. monitor the NFT collection
  3. Parsiq Trigger
  4. Parsiq Transports
  5. ParsiQL code

Results

We get immediate notifications through a telegram bot in the private channel.

telegram bot in the private channel

By using ngrok, we receive the post requests from the triggers.

For two out of three trigger we also post the data back on the Platform to update the User Tables with NodeJs.

var express = require('express')
var request = require('request')

var app = express()
app.use(express.json())

app.post('/', function(req, res) {
console.log(JSON.stringify(req.body));
var options = {
'method': 'POST',
'url': 'https://api.parsiq.net/v1/data/{key-of-the-table}',
'headers': {
'Authorization': 'Bearer API-key-of-the-project',
'Content-Type': 'application/json'
},
body: JSON.stringify([
{
"address": req.body.fromAddress,
"Punk": req.body.punkIndex,
"Event":req.body.event
}
])};

request(options);
res.end();

})
const port = process.env.PORT || 3000

app.listen(port, () => console.log(`Application listening on port ${port} `))

We also configured three separate Google Sheet spreadsheets that serve as real time database for CryptoPunks collection. We use R to host the database and display the CryptoPunks on-chain activity.

Further we suggest to utilize the data for a more comprehensive analysis with parsiq.

GitHub repository for PARSIQ CryptoPunks Offers and Bids Tracking Dashboard