worldwide-asset-exchange / waxjs

Javascript API for integration with the WAX Cloud Wallet.
MIT License
126 stars 103 forks source link

How to use it on raw NodeJS #75

Closed KaffinPX closed 2 years ago

KaffinPX commented 2 years ago

fetch doesnt supported defaultly, we can just use node-fetch but wax cloud wallet auth thing making it really centralised and i cant open auth page from raw nodejs.

includenull commented 2 years ago

waxjs is a frontend library, what are you trying to achieve with this in nodejs?

KaffinPX commented 2 years ago

waxjs is a frontend library, what are you trying to achieve with this in nodejs?

Creating a tipbot for Discord. But i cant login with wax cloud wallet when no gui.

includenull commented 2 years ago

Creating a tipbot for Discord. But i cant login with wax cloud wallet when no gui.

Are you trying to use waxjs for your bot, or for user to interact with the bot?

If you're trying to use it for your bot then this really isn't possible, you would need to create a custom named account and control it with eosjs or cleos.

If you need it for users to interact with your bot then you will probably need some sort of frontend for users to link their Discord and WAX account?

waxjs will only work for frontend uses.

Dave-Melia commented 2 years ago

Does anyone know of any tool that allows login from the terminal rather than the browser?

I'm trying to write a command line script for arbitrage and can't figure out how to login from the terminal.

includenull commented 2 years ago

Does anyone know of any tool that allows login from the terminal rather than the browser?

This is not possible for WAX Cloud Wallet accounts, you would need to use eosjs or cleos with a account where you control your own key pairs.

Dave-Melia commented 2 years ago

I should have checked here sooner, I've just figured that out lol. Thanks <3