PHP code example of amashukov / eth-php
1. Go to this page and download the library: Download amashukov/eth-php library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amashukov / eth-php example snippets
use Amashukov\Keccak\Keccak;
use Amashukov\AbiEncoder\AbiEncoder;
use Amashukov\Eip1559TxSigner\Eip1559Signer;
use Amashukov\EthRpc\EthRpcClient;
use Amashukov\EthRpc\JsonRpcProvider;
// Hash, encode calldata, sign a Type-2 tx, and broadcast it — see each
// sub-package README for the full API.
bash
composer