UNPKG

@cityofzion/neon-api

Version:

Neon-API module: High level API for neon-js

15 lines 851 B
import { tx, u } from "@cityofzion/neon-core"; import RPCClient from "@cityofzion/neon-core/lib/rpc/RPCClient"; /** * Calculates the network fee required to process the transaction. * The fields signers, attributes and script needs to be fully populated for this to work. * * @param txn - A partially filled out transaction. * @param feePerByte - The current feePerByte in Policy contract. * @param signingAccts - The accounts that will be signing this. * * @deprecated use the smartCalculateNetworkFee helper instead. */ export declare function calculateNetworkFee(txn: tx.Transaction, feePerByte: number | u.BigInteger, executionFeeFactor: number | u.BigInteger): u.BigInteger; export declare function smartCalculateNetworkFee(txn: tx.Transaction, client: RPCClient): Promise<u.BigInteger>; //# sourceMappingURL=calculateNetworkFee.d.ts.map