Jump to content

XRPL Manual Transaction Fee Adjust


GreenGrass

Recommended Posts

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 by GreenGrass
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...