n8n-nodes-wax
Version:
n8n Community Node Package for the WAX Blockchain
13 lines • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCredentials = getCredentials;
const n8n_workflow_1 = require("n8n-workflow");
async function getCredentials(context, errorMessage) {
try {
return await context.getCredentials('waxPrivateKeyApi');
}
catch (error) {
throw new n8n_workflow_1.NodeOperationError(context.getNode(), errorMessage || `Credentials required for this operation.`);
}
}
//# sourceMappingURL=util.js.map