soulseekah/phpeosio
Composer 安装命令:
composer require soulseekah/phpeosio
包简介
A native EOSIO HTTP JSON RPC client
关键字:
README 文档
README
A minimalistic and pure PHP implementation to interact with EOSIO blockchains via JSON RPC endpoints via HTTP.
Installation
composer require soulseekah/phpeosio
Usage
// Connect to local JSON RPC endpoint via HTTP $client = new PHPEOSIO\Client( 'http://localhost:8888' ); // Add permission with private key $client->add_key( 'soulseekah@active', '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3' ); // Create, sign and push transaction $client->push_transaction( 'eosio', 'bidname', [ 'bidder' => 'soulseekah', 'newname' => 'phpeosio', 'bid' => '1 EOS', ], 'soulseekah@active' ); // Send tokens via a transaction $client->push_transaction( 'eosio.token', 'transfer', [ 'from': 'soulseekah', 'to': 'eosio', 'quantity': '10 EOS', 'memo': 'Thank you for your service.', ], 'soulseekah@active' );
Methods
$client->get_info(); // Get chain info $client->get_abi( $account ); // Get contract ABI $client->get_table_rows( $account, $table, $scope ); // Get table rows
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-12-13