From f5d19204c82fb8a17f84015b44bd33615f4d943f Mon Sep 17 00:00:00 2001 From: serfersac Date: Thu, 30 Apr 2026 22:32:33 +0000 Subject: [PATCH] docs: add gas cost estimation FAQ (Resolves #3911) --- doc/FAQ.md | 53 +++++++++++++++++++++++++++++++++ doc/faq/gas-estimation.md | 62 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 doc/FAQ.md create mode 100644 doc/faq/gas-estimation.md diff --git a/doc/FAQ.md b/doc/FAQ.md new file mode 100644 index 0000000000..460eb247c1 --- /dev/null +++ b/doc/FAQ.md @@ -0,0 +1,53 @@ + +# Livepeer FAQ + +## General Questions + +### What is Livepeer? +Livepeer is a decentralized video infrastructure network that enables developers to build scalable video applications on Ethereum and other EVM-compatible chains. + +### How does Livepeer work? +Livepeer combines decentralized storage and computing to provide a scalable video infrastructure. It uses a network of independent nodes that process and deliver video streams. + +## Technical Questions + +### How do I estimate transaction costs in the CLI? +When working with Livepeer transactions, it's important to be aware of gas costs to avoid high-fee accidents. While the Livepeer CLI doesn't currently provide built-in cost estimation, you can use these strategies: + +1. **Use Ethereum Gas Trackers**: Before broadcasting transactions, check current gas prices using tools like: + - [Etherscan Gas Tracker](https://etherscan.io/gastracker) + - [GasNow](https://www.gasnow.org/) + - [EtherGasStation](https://etherscan.io/gasstation) + +2. **Estimate Gas Manually**: For common transactions, you can estimate gas costs: + - Standard transactions typically require 21,000 gas + - Complex transactions may require 50,000-100,000 gas or more + - Multiply gas units by current gas price to estimate fees + +3. **Monitor Network Conditions**: During periods of high network activity, gas prices can increase significantly. Check gas prices before submitting transactions. + +4. **Use Transaction Builders**: Tools like MetaMask or MyEtherWallet can help estimate transaction costs before submission. + +### How can I check my node's status? +You can check your node's status using the CLI command: +``` +livepeer status +``` + +This will provide information about your node's health, current tasks, and connection status. + +## Troubleshooting + +### My node is not connecting to the network +Please check your network configuration and ensure your node is properly configured in the Livepeer network. You can use: +``` +livepeer config show +``` +to verify your settings. + +### How do I update my node? +To update your node, simply run: +``` +livepeer update +``` +This will check for updates and install them if available. diff --git a/doc/faq/gas-estimation.md b/doc/faq/gas-estimation.md new file mode 100644 index 0000000000..287e344e85 --- /dev/null +++ b/doc/faq/gas-estimation.md @@ -0,0 +1,62 @@ + + +# Transaction Cost Estimation Guide + +## Introduction + +When working with Livepeer transactions, it's important to be aware of gas costs to avoid high-fee accidents. While the Livepeer CLI doesn't currently provide built-in cost estimation, you can use these strategies to estimate and manage transaction costs effectively. + +## Estimating Transaction Costs + +### Using Ethereum Gas Trackers + +Before broadcasting transactions, check current gas prices using these tools: + +- [Etherscan Gas Tracker](https://etherscan.io/gastracker) +- [GasNow](https://www.gasnow.org/) +- [EtherGasStation](https://etherscan.io/gasstation) + +These tools provide real-time information about gas prices and network congestion. + +### Manual Gas Estimation + +For common transactions, you can estimate gas costs: + +- **Standard transactions**: Typically require 21,000 gas +- **Complex transactions**: May require 50,000-100,000 gas or more +- **Transaction fee calculation**: Multiply gas units by current gas price to estimate fees + +### Monitoring Network Conditions + +During periods of high network activity, gas prices can increase significantly. Always check gas prices before submitting transactions to avoid unexpected fees. + +### Using Transaction Builders + +Tools like MetaMask or MyEtherWallet can help estimate transaction costs before submission. These tools often provide: +- Gas limit suggestions +- Fee estimates +- Transaction preview + +## Best Practices + +1. **Check gas prices** before submitting transactions +2. **Set appropriate gas limits** based on transaction complexity +3. **Monitor network conditions** to avoid high fees +4. **Use transaction builders** for better fee estimation +5. **Consider transaction urgency** - non-urgent transactions can wait for lower gas prices + +## Troubleshooting High Fees + +If you encounter unexpectedly high fees: + +1. **Check network congestion** using gas tracker tools +2. **Adjust gas prices** to match current network conditions +3. **Consider transaction prioritization** - urgent transactions may require higher fees +4. **Review transaction complexity** - complex transactions may require more gas + +## Additional Resources + +- [Ethereum Gas FAQ](https://ethereum.org/en/developers/docs/gas/) +- [Ethereum Gas Calculator](https://ethgasstation.info/) +- [Livepeer Documentation](https://docs.livepeer.org/) +