Download the PHP package make-software/casper-php-sdk without Composer
On this page you can find all versions of the php package make-software/casper-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download make-software/casper-php-sdk
More information about make-software/casper-php-sdk
Files in make-software/casper-php-sdk
Package casper-php-sdk
Short Description PHP 7.4+ library for interacting with Casper blockchain node RPC API.
License Apache-2.0
Informations about the package casper-php-sdk
casper-php-sdk
The PHP SDK allows developers to interact with the Casper Network using PHP. This page covers different examples of using the SDK.
Install
Usage
Creating RpcClient
Create RpcClient
by passing node url and headers (optional) to constructor
RPC call examples
You can find all RpcClient methods on the RpcClientAPI page. Here you can see a several of examples of using RpcClient. All examples below are supposed to be ran against the Testnet
Get deploy by deploy hash
Get auction state information
Get peers from the network
Get the latest block information
More examples
- Key management
- Sending a Transfer
- CEP78
- Install
- Mint
API
RpcClient
- RpcClient
- putDeploy
- getDeploy
- getBlockByHash
- getBlockByHeight
- getLatestBlock
- getPeers
- getStatus
- getAuctionState
- getStateRootHash
- getAccount
- getAccountBalance
- getAccountBalanceUrefByAccountHash
- getAccountBalanceUrefByPublicKey
- getBlockState
- getBlockTransfers
- getEraSummaryBySwitchBlockHash
- getEraSummaryBySwitchBlockHeight
- getDictionaryItemByURef
- getGlobalStateByBlock
- getGlobalStateByStateRootHash
- queryBalance
- getChainspecInfo
- speculativeExecution
DeployService
- makeDeploy
- signDeploy
- validateDeploy
- getDeploySize
ContractService
- ContractService
- createInstallDeploy
- install
- createCallEntryPointDeploy
- callEntryPoint
Entities
- Account
- AuctionState
- Block
- Deploy
- EraSummary
- Transfer
Testing
Run the following command from the project directory.
Replace http://127.0.0.1:7777
by the any Testnet node url before running
All versions of casper-php-sdk with dependencies
ext-curl Version *
ext-json Version *
ext-openssl Version *
ext-sodium Version *
ext-gmp Version *
ext-mbstring Version *
ionux/phactor Version 1.0.8
paragonie/ecc Version ^2.3