Skip to content

Instantly share code, notes, and snippets.

@corbifex
Last active August 31, 2020 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save corbifex/917ec18c69b9ba95dfeba377584b2bef to your computer and use it in GitHub Desktop.
Save corbifex/917ec18c69b9ba95dfeba377584b2bef to your computer and use it in GitHub Desktop.
Get the minimal fee for a transactions
const tx = {
senderPublicKey: wallet.account.publicKey,
networkIdentifier,
nonce: wallet.account.nonce.toString(),
passphrase: passphrase,
asset: {
fundraiser: fundraiser,
amount: convertLSKToBeddows(amount.toString()),
message
}
};
const transaction = new FundTransaction(tx);
console.log(transaction.minFee.toString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment