Download the PHP package crea/php-graphene-node-client without Composer
On this page you can find all versions of the php package crea/php-graphene-node-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crea/php-graphene-node-client
More information about crea/php-graphene-node-client
Files in crea/php-graphene-node-client
Package php-graphene-node-client
Short Description PHP client for connection to Graphene node (crea)
License MIT
Homepage https://github.com/creativechain/php-graphene-node-client
Informations about the package php-graphene-node-client
php-graphene-node-client
PHP client for connection to CREA node
Install Via Composer
For readonly, without broadcast
with broadcast (sending transactions to blockchain)
(details are here) and actual dockerfile and requests examples see in branch "debug"
install components
- automake
- libtool
- libgmp-dev
install extensions
- Bit-Wasp/secp256k1-php v0.2.1 (how to install secp256k1-php)
- gmp
Basic Usage
Implemented Commands List
Single Commands
- BroadcastTransactionCommand
- BroadcastTransactionSynchronousCommand
- GetAccountCountCommand
- GetAccountHistoryCommand
- GetAccountsCommand
- GetAccountVotesCommand
- GetActiveWitnessesCommand
- GetApiByNameCommand //ONLY STEEM/whaleshares
- GetBlockCommand
- GetBlockHeaderCommand
- GetConfigCommand
- GetContentCommand
- GetContentRepliesCommand
- GetCurrentMedianHistoryPriceCommand //STEEM/GOLOS
- GetDiscussionsByAuthorBeforeDateCommand
- GetDiscussionsByBlogCommand
- GetDiscussionsByCreatedCommand
- GetDiscussionsByFeedCommand
- GetDiscussionsByTrendingCommand
- GetDynamicGlobalPropertiesCommand
- GetFollowersCommand
- GetOpsInBlock
- GetTrendingCategoriesCommand //only steem/whaleshares
- GetVersionCommand
- GetWitnessesByVoteCommand
- LoginCommand //ONLY for STEEM/whaleshares
All single commands can be called through Commands Class as methods (example: (new Commands)->get_block()->execute(...) )
broadcast operations templates
namespace GrapheneNodeClient\Tools\ChainOperations
- vote
- transfer
- comment // crea
Implemented Connectors List
namespace: GrapheneNodeClient\Connectors\WebSocket OR GrapheneNodeClient\Connectors\Http;
- CreaWSConnector
- CreaHttpJsonRpcConnector
Switching between connectors
Creating Own Connector
Or use GrapheneNodeClient\Connectors\WebSocket\WSConnectorAbstract for extending
Creating Own Command
You have to update $map properties in CreaApiMethods classes as shown below
Tools
Transliterator
Reputation viewer
Bandwidth
Sometimes you can't send transaction to blockchain because your account has not enough bandwidth. Now you can check this before sending transaction to blockchain as shown below
Transaction for blockchain (broadcast)
WARNING
Transactions are signing with spec256k1-php with function secp256k1_ecdsa_sign_recoverable($context, $signatureRec, $msg32, $privateKey) and if it is not canonical from first time, you have to make transaction for other block. For searching canonical sign function have to implement two more parameters, but spec256k1-php library does not have it. It is was solved with php-hack in Transaction::sign()
Tests
You need to install PhpUnit in your system (https://phpunit.de/manual/3.7/en/installation.html)
All versions of php-graphene-node-client with dependencies
textalk/websocket Version ^1.2
bitwasp/secp256k1-php Version ^0.1.2
stephenhill/base58 Version ^1.1
t3ran13/bytebuffer Version ^1.0