wax.js
WaxJS is a Javascript library that connects to Cloud Wallet to sign in users and execute smart contract transactions, without requiring an external wallet (e.g., Scatter). Similar to the standard OAuth 2.0 flow, users simply allow your dApp to access their WAX Blockchain Account name. Once your dApp's been authorized, users can approve your smart contract transactions from their Cloud Wallet Account.
To get started, you simply need to include our WaxJS library and make a few simple calls from your client. If you'd like to jump right to the code and run our live WaxJS example, refer to WaxJS Demo.
How it Works
WaxJS uses the Cloud Wallet and the EOSIO/eosjs Javascript API to provide an easy-to-use interface between your users and the WAX Blockchain.
To use WaxJS, you simply need to:
- Add the WaxJS library to your client
- Use
wax.login
to sign users in with Cloud Wallet (Auto-login features available)
- Use
wax.api
to send your transactions to the WAX Blockchain
In the next sections, you'll learn how to install and use WaxJS.