Skip to main content
to add the full code for node.js from 0xmukesh's code
Source Link

you can write a script to do that depending on the language you are using, if you are using javascript then you can use web3.js on solana to get started

just use the devnet and program a timer thread to airdrop you at intervals..

if you need extra help on the programming please reply this comment.from 0xmukesh answer:

const schedule = require('node-schedule');

// 0 * * * * means every 1 hour - https://cronexpressiontogo.com/every-1-hour
const job = schedule.scheduleJob('0 * * * *', function(){
  // Establish new connect to devnet - websocket client connected to devnet will also be registered here
const connection = new Connection(clusterApiUrl("devnet"), "confirmed");

// Create a test wallet to listen to
const wallet = Keypair.generate();

// Register a callback to listen to the wallet (ws subscription)
connection.onAccountChange(
  wallet.publicKey(),
  (updatedAccountInfo, context) =>
    console.log("Updated account info: ", updatedAccountInfo),
  "confirmed"
);
});

you can write a script to do that depending on the language you are using, if you are using javascript then you can use web3.js on solana to get started

just use the devnet and program a timer thread to airdrop you at intervals..

if you need extra help on the programming please reply this comment.

you can write a script to do that depending on the language you are using, if you are using javascript then you can use web3.js on solana to get started

just use the devnet and program a timer thread to airdrop you at intervals..

from 0xmukesh answer:

const schedule = require('node-schedule');

// 0 * * * * means every 1 hour - https://cronexpressiontogo.com/every-1-hour
const job = schedule.scheduleJob('0 * * * *', function(){
  // Establish new connect to devnet - websocket client connected to devnet will also be registered here
const connection = new Connection(clusterApiUrl("devnet"), "confirmed");

// Create a test wallet to listen to
const wallet = Keypair.generate();

// Register a callback to listen to the wallet (ws subscription)
connection.onAccountChange(
  wallet.publicKey(),
  (updatedAccountInfo, context) =>
    console.log("Updated account info: ", updatedAccountInfo),
  "confirmed"
);
});
Source Link

you can write a script to do that depending on the language you are using, if you are using javascript then you can use web3.js on solana to get started

just use the devnet and program a timer thread to airdrop you at intervals..

if you need extra help on the programming please reply this comment.