Go to file
2023-07-26 06:21:05 +03:00
src feat(SatiSocket): export SatiSocket 2023-07-25 20:33:54 +03:00
.gitignore initial commit 2023-07-19 11:56:01 +03:00
LICENSE.txt initial commit 2023-07-19 11:56:01 +03:00
package-lock.json initial commit 2023-07-19 11:56:01 +03:00
package.json fix(package) add esm node version + move web to separate export 2023-07-26 06:21:05 +03:00
README.md fix(package): use wildcard for dist folder 2023-07-20 16:30:32 +03:00
tsconfig.json initial commit 2023-07-19 11:56:01 +03:00
webpack.config.js fix(package) add esm node version + move web to separate export 2023-07-26 06:21:05 +03:00

sati-js - javascript client for sati.ac

NPM version Downloads

usage example

const { Sati } = require('sati')

const sati = new Sati({
	token: 'your token here'
})
await sati.init() // you must call the init method after construction

const balance = await sati.getBalance()
console.log(balance)

// first argument - task type, second - task parameters
// supported tasks: https://sati.ac/docs/tasks
const task = await sati.solve('Turnstile', {
	siteKey: '0x4AAAAAAAHMEd1rGJs9qy-0',
	pageUrl: 'https://polygon.sati.ac/Turnstile'
})

console.log(task, task.result.token)

sati.close() // you must call close method after you've done