zeeves-auth-sdk-js
v3.0.7
Published
Zeeves JS SDK for authentication
Readme
SDK to authenticate users in Zeeves wallet (https://t.me/zilliqawalletbot) and initiate transactions.
To add package:
npm install zeeves-auth-sdk-jsAnd then just put this inside your code:
import "zeeves-auth-sdk-js";Alternatively, you can load static script:
https://zeeves.io/sdk/sdk.min.jsTo authenticate user, just call:
await Zeeves.auth();or
const walletInfo = await Zeeves.getSession();getSession() does the same thing as auth(), but also return wallet information, such as wallet address.
After authentication you can use Zeeves object as Zilliqa object from zilliqa-js (https://www.npmjs.com/package/@zilliqa-js/zilliqa).
Zeeves also has shortcut for sending transactions:
const transaction = await Zeeves.sendTxn(address, amount)address - bech32 zilliqa address, which is the target for transaction
amount - ZIL amount of transaction (i.e. '1.1')
