Production ready SDK for ThePower.io API
composer require arthurpatriot/thepower-sdkuse ThePower\PowerClient;
$client = new PowerClient('{NODE_URL}');Example, {NODE_URL} is https://power-node.allsteeply.com:1443.
$client->status();Get current status of the addressed node
$client->nodeStatus();Get current chain parameters
$client->settings();Get information about the block without transactions
$client->blockInfo('{HASH}');Where {HASH} is hash of the block for which the information is needed.
Get information about the block
$client->block('{HASH}');Where {HASH} hash of the block for which the information is needed.
The definition of chain belonging to address.
$client->where('{ADDRESS}');Where {ADDRESS} is the address of the wallet in textual or binary representation in hex format.
Information about a wallet with a given address.
$client->address('{ADDRESS}');Where {ADDRESS} is the address of the wallet in textual or binary representation in hex format.