const{Sati}=require('sati')constsati=newSati({token:'your token here'})awaitsati.init()// you must call the init method after construction
constbalance=awaitsati.getBalance()console.log(balance)// first argument - task type, second - task parameters
// supported tasks: https://sati.ac/docs/tasks
consttask=awaitsati.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