mtigdemir / ava-php
AVA Labs Gecko PHP Client
v0.1
2020-06-20 23:09 UTC
Requires
- php: >=7.1.0
- ext-json: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-05-16 17:45:14 UTC
README
PHP Client Wrapper for AVA Nodes https://docs.avax.network/build/avalanchego-apis
Requirements
- Up & running AVA Node to use PHP Client
$ composer require mtigdemir/ava-php
Initialize AVA Client
// Default Connection (127.0.0.1:9650) $client = new \AVA\AVAClient(); $username = "php-ava"; $password = "ava-password";
Key Store
$client->keyStore->createUser($username, $password); $client->keyStore->deleteUser($username, $password);
X-Chain
$client->xchain->createAddress($username, $password); $client->xchain->listAddresses($username, $password); $client->xchain->send($username, $password, $receiverAddress); // Default Asset AVA $client->xchain->getBalance($address); // Default Asset AVA
P-Chain
$client->pchain->createAccount($username, $password);
Admin
$client->admin->nodeID(); $client->admin->networkName();