UNPKG

blazerjob

Version:

TypeScript library for scheduling, executing, and managing asynchronous tasks (custom, HTTP, Cosmos) with a SQLite backend.

14 lines (13 loc) 409 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../index"); const jobs = new index_1.BlazeJob({ dbPath: './tasks_solana.db' }); jobs.schedule(async () => { }, { runAt: new Date(Date.now() + 1000), type: 'solana', config: JSON.stringify({ to: 'AdresseSolanaDestinataire', lamports: 1000000 // 0.001 SOL }) }); jobs.start();