Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

feat[DOCS] : add useDataTransaction documentation#90

Merged
metalboyrick merged 3 commits intoScaffold-Stark:mainfrom
Oladayo-Ahmod:useDataTransaction-docs
Feb 5, 2025
Merged

feat[DOCS] : add useDataTransaction documentation#90
metalboyrick merged 3 commits intoScaffold-Stark:mainfrom
Oladayo-Ahmod:useDataTransaction-docs

Conversation

@Oladayo-Ahmod
Copy link
Contributor

Task name here

Types of change

  • Bug
  • Enhancement

Comment on lines +12 to +13
## Usage

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe can briefly state what the example does, like in your other PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Comment on lines 91 to 97
## Features

- **Automatic Data Fetching**: Automatically fetches data when the hook is used.
- **TPS Calculation**: Estimates transactions per second based on block timestamps.
- **Average Fee in USD**: Converts transaction fees from Wei to USD using live ETH price data from CoinGecko.
- **Gas Price Metrics**: Retrieves L1 gas price information in both Wei and FRI.
- **Error Handling**: Captures and provides error details if fetching fails.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would probably better on the top of the page

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@metalboyrick metalboyrick merged commit e1393ba into Scaffold-Stark:main Feb 5, 2025
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants