@@ -118,6 +118,23 @@ Returns purse's balance from the network
118118| ` $stateRootHash ` | ` string ` | Hex-encoded hash of the state root | Yes |
119119| ` $balanceUref ` | ` CLURef ` | Balance URef object | Yes |
120120
121+ ---
122+ ## Query balance
123+ ``` php
124+ queryBalance(
125+ string $purseIdentifierType,
126+ string $purseIdentifier,
127+ string $stateRootHash = null
128+ ): \GMP
129+ ```
130+ Returns a purse’s balance from global state at a given [ Block] ( ../Entity/Block.md ) or state root hash.
131+ ### Parameters
132+ | Name | Type | Description | Required |
133+ | ---| ----------| -----------------------------------------------------------------------------------------------------------------------| ----------|
134+ | ` $purseIdentifierType ` | ` string ` | Purse identifier type. Available values: ` purse_uref ` , ` main_purse_under_public_key ` , ` main_purse_under_account_hash ` | Yes |
135+ | ` $purseIdentifier ` | ` string ` | Purse identifier | Yes |
136+ | ` $stateRootHash ` | ` string ` | Hex-encoded hash of the state root | No |
137+
121138---
122139## Get account balance URef by account hash
123140``` php
@@ -238,3 +255,22 @@ Returns an [GlobalState](../Entity/GlobalState.md) object by the given state roo
238255| ` $stateRootHash ` | ` string ` | Hex-encoded hash of the state root | Yes |
239256| ` $key ` | ` string ` | ` casper_types::Key ` as formatted string | Yes |
240257| ` $path ` | ` array ` | The path components starting from the key as base | No |
258+
259+ ---
260+ ## Get chainspec info
261+ ``` php
262+ getChainspecInfo(): ChainspecRegistryBytes
263+ ```
264+ Returns a [ ChainspecRegistryBytes] ( ../Entity/ChainspecRegistryBytes.md ) object
265+
266+ ---
267+ ## Speculative execution
268+ ``` php
269+ speculativeExecution(Deploy $signedDeploy, string $blockHash): DeployExecutionResult
270+ ```
271+ Puts a [ Deploy] ( ../Entity/Deploy.md ) to a single node for speculative execution on that node only.
272+ ### Parameters
273+ | Name | Type | Description | Required |
274+ | ---| ------| -------------| ----|
275+ | ` $signedDeploy ` | ` Deploy ` | Signed [ Deploy] ( ../Entity/Deploy.md ) object | Yes |
276+ | ` $blockHash ` | ` string ` | Hex-encoded hash of the block | Yes |
0 commit comments