Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dev-gas.mdx #176

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pages/dev-gas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ The maximum amount of gas the user wants the transaction to use. If the gas limi
### Fee
`Fee = Gas Price * Gas Limit`.

To help developers and users estimate fees on Sei, please reference [Sei Gas](seigas.com) and the associated [APIs](https://docs.blocknative.com/gas-prediction/gas-platform) provided by Blocknative. Their estimates are based on real-time SEI data and advanced ML modeling to accurately and consistently estimate SEI transaction fees.

**Using Blocknative's Gas API**

To leverage Blocknative's you will need an [API Key](https://docs.blocknative.com/gas-prediction/gas-platform#authentication). Once you have an API key, you can request fee estimation for SEI:

```
curl -H "Authorization: your-apikey-here" https://api.blocknative.com/gasprices/blockprices?chainid=1329
```


### Maximum Gas

The maximum gas limit for a transaction ensures that complex transactions do not consume excessive resources. You can find the maximum gas limits for each chain in the [Sei chain registry](https://github.com/sei-protocol/chain-registry/blob/main/gas.json) or by querying the `/consensus_params` of the RPC node itself (ex. https://rpc.pacific-1.sei.io/consensus_params).
Expand Down
Loading