PHP code example of deemru / unitskit
1. Go to this page and download the library: Download deemru/unitskit 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/ */
deemru / unitskit example snippets
$uk = UnitsKit::TESTNET();
$uk->setPrivateKey( '0x33eb576d927573cff6ae50a9e09fc60b672a8dafdfbe3045c7f62955fc55ccb4' );
$tx = $uk->tx( $uk->getAddress(), $uk->hexValue( 1.1 ), $uk->getGasPrice(), $uk->getNonce() );
$tx = $uk->txEstimateGas( $tx );
$tx = $uk->txSign( $tx );
$tx = $uk->txBroadcast( $tx );
$tx = $uk->ensure( $tx );