Last active
August 31, 2020 09:56
-
-
Save corbifex/917ec18c69b9ba95dfeba377584b2bef to your computer and use it in GitHub Desktop.
Get the minimal fee for a transactions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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