Content
@
0 reply
0 recast
0 reaction
Noah Bragg 🔥
@nbragg
Is there a good practice for how to set the priority fee for a privy wallet when making txs? I have some txs that randomly fail. My guess that it's because of gas fees. Like this one for example. https://sepolia.basescan.org/tx/0x229211c0acbde8ec4f69cc98902bebbe62f2cb8b98f0137c45a4ffa19c385cc7
2 replies
0 recast
2 reactions
YuriNondual(Mental Health Break)
@yurinondual.eth
https://dashboard.tenderly.co/tx/base-sepolia/0x229211c0acbde8ec4f69cc98902bebbe62f2cb8b98f0137c45a4ffa19c385cc7 Indeed - out of gas. But this means you need to set `gas` not priorityFee. If you use privy with wagmi then it's quite easy. Just pass `gas` to writeContract. Either hardcoded value, or you can calculate it (I can show an example) and then for example bump it by 20%
1 reply
0 recast
0 reaction
Noah Bragg 🔥
@nbragg
Thanks! This is really helpful. I forgot about tenderly. I'm using viem. I think I should be able to calculate it. Maybe use the estimateGas func then bump by 20%?
1 reply
0 recast
0 reaction