blazerjob
Version:
TypeScript library for scheduling, executing, and managing asynchronous tasks (custom, HTTP, Cosmos) with a SQLite backend.
15 lines (14 loc) • 437 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../index");
const jobs = new index_1.BlazeJob({ dbPath: './tasks_onchain.db' });
jobs.schedule(async () => { }, {
runAt: new Date(Date.now() + 1000),
type: 'onchain',
config: JSON.stringify({
to: '0xAdresseDestinataire',
value: '0.001'
// privateKey et rpcUrl lus dans .env
})
});
jobs.start();