Download the PHP package t3ran13/php-graphene-node-client without Composer
On this page you can find all versions of the php package t3ran13/php-graphene-node-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download t3ran13/php-graphene-node-client
More information about t3ran13/php-graphene-node-client
Files in t3ran13/php-graphene-node-client
Package php-graphene-node-client
Short Description PHP client for connection to Graphene node (steem/golos)
License MIT
Homepage https://github.com/t3ran13/php-graphene-node-client
Informations about the package php-graphene-node-client
php-graphene-node-client
PHP client for connection to VIZ/STEEM/GOLOS/WHALESHARES node
Install Via Composer
For readonly, without broadcast
with broadcast (sending transactions to blockchain)
actual dockerfile and requests examples see in branch "debug"
install components
- libgmp-dev
install extensions
- 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
- GetTransactionHexCommand
- 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 // steem or golos
- content // only viz
- witness_update
Implemented Connectors List
namespace: GrapheneNodeClient\Connectors\WebSocket OR GrapheneNodeClient\Connectors\Http;
- VizWSConnector
- VizHttpJsonRpcConnector
- GolosWSConnector
- GolosHttpJsonRpcConnector
- SteemitWSConnector
- SteemitHttpJsonRpcConnector
List of available STEEM nodes are here
Switching between connectors
Creating Own Connector
Or use GrapheneNodeClient\Connectors\WebSocket\WSConnectorAbstract for extending
Creating Own Command
You have to update $map properties in GolosApiMethods/SteemitApiMethods/VizApiMethods 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
stephenhill/base58 Version ^1.1
t3ran13/bytebuffer Version ^1.0
simplito/elliptic-php Version ^1.0