@trezor/connect
Version:
High-level javascript interface for Trezor hardware wallet.
18 lines (17 loc) • 466 B
JavaScript
;
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