deemru/unitskit

Units.Network Development Kit

1.0.1 2024-11-18 15:43 UTC

This package is auto-updated.

Last update: 2024-11-18 15:50:00 UTC


README

packagist php-v GitHub license

UnitsKit is an all-in-one Units Network development kit for the PHP language.

  • All you need to work with Units Networks in a single class
  • Really easy to use
  • Best practices for all
  • Advanced features for pros

Installation

composer require deemru/unitskit

Basic usage

$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 );

Documentaion