Skip to content

Commit 014b0e2

Browse files
docs: Add deployment cost to smart contract guide
Adds a new section to the smart contract developer guide that explains the fixed fee for deploying a smart contract. - Specifies the cost for both mainnet (1000 PHPCoin) and testnet (100 PHPCoin). - Points to the `getSmartContractCreateFee()` method in `include/class/Blockchain.php` as the source of this value.
1 parent 6513932 commit 014b0e2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/smart.contract.guide.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ php utils/sc_compile.php [contract_address] [source_file.php] [output_file.phar]
105105

106106
After compiling the contract, you need to create a deployment transaction. This is done by creating a separate PHP script that uses the `SCUtil` class.
107107

108+
### Deployment Cost
109+
110+
Deploying a smart contract to the PHPCoin network incurs a fixed fee. This fee prevents spam and compensates the network for storing the contract's code.
111+
112+
- **Mainnet:** 1000 PHPCoin
113+
- **Testnet:** 100 PHPCoin
114+
115+
This value is defined in the `getSmartContractCreateFee()` method within the `include/class/Blockchain.php` file.
116+
108117
**Example Deployment Script (`deploy.php`):**
109118

110119
```php

0 commit comments

Comments
 (0)