Skip to content

Instantly share code, notes, and snippets.

@corbifex
Created August 2, 2020 11:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save corbifex/6d11f01b1bc10e24abf92da8756eabe9 to your computer and use it in GitHub Desktop.
Fund transaction on frontend with dynamic fees and signing
const tx = new FundContractTransaction({
nonce: nonce.toString(),
senderPublicKey: publicKey,
asset: {
...data
}
});
tx.fee = (tx.minFee + BigInt(65000)).toString();
tx.sign(config.networkIdentifier, passphrase);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment