Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
numairawan authored Sep 26, 2023
1 parent a87d050 commit 96eb32d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,11 @@ $ethereumGasPrice = new EthereumGasPrice();
// Get gas prices
$gasPrice = $ethereumGasPrice->getGasPrices();

// Display the gas prices
// safe gas price
echo "Gas Prices:\n";
echo "Slow Gas Price: " . $gasPrice->proposeGas . " Gwei\n";
echo "Safe Gas Price: " . $gasPrice->safeGas . " Gwei\n";

// Get gas prices as an associative array
$pricesArray = $ethereumGasPrice->toArray();

// Gas prices in array
echo "Fast Gas Price: " . $pricesArray['fastGas'] . " Gwei\n";
echo "Fast Gas Price: " . $gasPrice->fastGas . " Gwei\n";
```

#### `Utilities`
Expand Down

0 comments on commit 96eb32d

Please sign in to comment.