WaxJS Overview

WaxJS is a Javascript library that connects to WAX All Access and WAX 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 WAX All Access 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.

Note: WaxJS is only available in the WAX All Access Production environment. The Sandbox environment is not supported at this time.

How it Works

WaxJS uses WAX All Access, the WAX 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:

  1. Add the WaxJS library to your client
  2. Use wax.login to sign users in with WAX All Access

    WaxJS Login

  3. Use wax.api to send your transactions to the WAX Blockchain

    WaxJS Sign

In the next sections, you’ll learn how to install and use WaxJS.

What's Next