Skip to content

Conversation

jefft0
Copy link
Contributor

@jefft0 jefft0 commented Aug 1, 2025

Similar to code in the gnokey CLI, we add an API function estimateTxFees to estimate gas and storage fees.

  • In gnonativetypes.go, add EstimateTxFeesRequest and EstimateTxFeesResponse
  • In rpc.proto, add EstimateTxFees
  • Run make regenerate
  • In api.go, refactor out the helper estimateGasWanted from EstimateGas. Add EstimateTxFees
  • In expo/src/api, add estimateTxFees

TODO: We also need to include the storage deposit fee. Wait to merge gnolang/gno#4630

jefft0 added 2 commits August 1, 2025 09:48
Signed-off-by: Jeff Thompson <[email protected]>
Signed-off-by: Jeff Thompson <[email protected]>
@jefft0 jefft0 changed the title feat: Add estimateGasFee feat: Add estimateTxFees Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant