UNPKG

wax-auth-client

Version:
36 lines (35 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WaxAuthClient = void 0; class WaxAuthClient { getTransactionData(nonce, waxAddress) { return { data: { actions: [ { account: "orng.wax", name: "requestrand", authorization: [ { actor: waxAddress, permission: "active", }, ], data: { caller: waxAddress, signing_value: nonce, assoc_id: nonce, }, }, ], }, options: { blocksBehind: 3, expireSeconds: 30, broadcast: false, sign: true, }, }; } } exports.WaxAuthClient = WaxAuthClient;