@heliofi/evm-adapter
Version:
API to interact with Helio Finances program on EVM chains.
17 lines • 591 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDirectTransferTx = void 0;
const constants_1 = require("./constants");
const getDirectTransferTx = async (provider, recipient, amount) => {
const { chainId } = await provider.getNetwork();
const { gasPrice } = await provider.getFeeData();
return {
to: recipient,
value: amount,
chainId,
gasPrice,
gasLimit: constants_1.directTransferGasLimit,
};
};
exports.getDirectTransferTx = getDirectTransferTx;
//# sourceMappingURL=getDirectTransferTx.js.map