UNPKG

@trezor/connect

Version:

High-level javascript interface for Trezor hardware wallet.

15 lines 487 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const AbstractMethod_1 = require("../core/AbstractMethod"); class GetNonce extends AbstractMethod_1.AbstractMethod { init() { this.useDeviceState = false; } async run() { const cmd = this.device.getCommands(); const response = await cmd.typedCall('GetNonce', 'Nonce'); return response.message; } } exports.default = GetNonce; //# sourceMappingURL=getNonce.js.map