UNPKG

@bigmi/core

Version:

TypeScript library for Bitcoin apps.

15 lines 495 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTransactionFee = void 0; const getTransactionFee = async (client, { baseUrl }, { txId }) => { const apiUrl = `${baseUrl}/tx/${txId}`; const response = (await client.request({ url: apiUrl, fetchOptions: { method: 'GET' }, })); return { result: BigInt(response.fee), }; }; exports.getTransactionFee = getTransactionFee; //# sourceMappingURL=getTransactionFee.js.map