"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.canSend = exports.checkAccountSupported = exports.getReceiveFlowError = void 0;
const index_1 = require("@ledgerhq/coin-framework/account/index");
const bridge_1 = require("../bridge");
var support_1 = require("@ledgerhq/coin-framework/account/support");
Object.defineProperty(exports, "getReceiveFlowError", { enumerable: true, get: function () { return support_1.getReceiveFlowError; } });
Object.defineProperty(exports, "checkAccountSupported", { enumerable: true, get: function () { return support_1.checkAccountSupported; } });
function canSend(account, parentAccount) {
    try {
        (0, bridge_1.getAccountBridge)(account, parentAccount).createTransaction((0, index_1.getMainAccount)(account, parentAccount));
        return true;
    }
    catch {
        return false;
    }
}
exports.canSend = canSend;
//# sourceMappingURL=support.js.map