Skip to content

ArthurPatriot/thepower-sdk-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThePower.io SDK for PHP

Production ready SDK for ThePower.io API

Installation

Install via composer

  composer require arthurpatriot/thepower-sdk

Create new API Client

use ThePower\PowerClient;

$client = new PowerClient('{NODE_URL}');

Example, {NODE_URL} is https://power-node.allsteeply.com:1443.

Usage

Get Status

$client->status();

Get Node Status

Get current status of the addressed node

$client->nodeStatus();

Get Settings

Get current chain parameters

$client->settings();

Get Block Info

Get information about the block without transactions

$client->blockInfo('{HASH}');

Where {HASH} is hash of the block for which the information is needed.

Get Block

Get information about the block

$client->block('{HASH}');

Where {HASH} hash of the block for which the information is needed.

Where Address

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.

Get Address Info

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.

Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages