GreenGrass Posted December 2, 2021 Share Posted December 2, 2021 (edited) Hey guys, Been searching all day, but I was wondering if there was a simple JS plug in/addition to my transaction: Payment code, so that I can lower my paid gas fees. I understand the XRPL adjusts this automatically based off stress levels, and that there has been a few issues today. But my code is charging my 0.12XRP transaction fees, but when I use Xumm it is much lower (about 0.0012XRP). This is the basic transaction code I'm hoping to adjust. Appreciate all your help. // Prepare transaction ------------------------------------------------------- const prepared = await client.autofill({ "TransactionType": "Payment", "Account": 'accountaddress', "Amount": xrpl.xrpToDrops("1"), "Destination": "destinationaddress" }) Edited December 2, 2021 by GreenGrass Link to comment Share on other sites More sharing options...
GreenGrass Posted December 2, 2021 Author Share Posted December 2, 2021 13 minutes ago, GreenGrass said: Hey guys, Been searching all day, but I was wondering if there was a simple JS plug in/addition to my transaction: Payment code, so that I can lower my paid gas fees. I understand the XRPL adjusts this automatically based off stress levels, and that there has been a few issues today. But my code is charging my 0.12XRP transaction fees, but when I use Xumm it is much lower (about 0.0012XRP). This is the basic transaction code I'm hoping to adjust. Appreciate all your help. // Prepare transaction ------------------------------------------------------- const prepared = await client.autofill({ "TransactionType": "Payment", "Account": 'accountaddress', "Amount": xrpl.xrpToDrops("1"), "Destination": "destinationaddress" }) Nevermind guys solved it! Was making my life much more difficult than it needed! Just add the following if anyone finds this post later "Fee": "120" so code becomes // Prepare transaction ------------------------------------------------------- const prepared = await client.autofill({ "TransactionType": "Payment", "Account": 'accountaddress', "Fee": "120", "Amount": xrpl.xrpToDrops("1"), "Destination": "destinationaddress" }) cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now