Skip to content

[SDK] Fixed Gas Price on Aurora Networks #3516

Closed

Description

@portuu3

Description
Currently, the HUMAN Protocol SDK relies on the default provider gas estimation when interacting with Aurora (both mainnet and testnet). However, Aurora operates with a fixed gas price of 0.07GWei, which makes gas estimation unnecessary and their RPCs do not support it.

We should add some kind of a middleware that ensures a fixed gas price is always used when sending transactions through the SDK on Aurora networks.

Motivation
Avoid extra gas cost on transactions

Implementation details

  • Detect if the current chainId corresponds to Aurora mainnet (1313161554) or Aurora testnet (1313161555).
  • Automatically set the gas price to 0.07Gwei before sending the transaction.
  • Expose a configuration option to override the fixed gas price if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions