File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ $latestBlockHash = $latestBlock->getHash();
7373- [ getEraSummaryBySwitchBlockHash] ( docs/API/RpcClientAPI.md#Get-era-summary-by-switch-block-hash )
7474- [ getEraSummaryBySwitchBlockHeight] ( docs/API/RpcClientAPI.md#Get-era-summary-by-switch-block-height )
7575- [ getDictionaryItemByURef] ( docs/API/RpcClientAPI.md#Get-dictionary-item )
76+ - [ getGlobalStateByBlock] ( docs/API/RpcClientAPI.md#Get-global-state-by-block )
77+ - [ getGlobalStateByStateRootHash] ( docs/API/RpcClientAPI.md#Get-global-state-by-state-root-hash )
7678
7779### DeployService
7880- [ makeDeploy] ( docs/API/DeployServiceAPI.md#Make-deploy )
Original file line number Diff line number Diff line change @@ -206,9 +206,9 @@ Returns an item from a Dictionary ([StoredValue](../Entity/StoredValue.md) objec
206206| ` $seedUref ` | ` string ` | The dictionary's seed URef | Yes |
207207
208208---
209- ## Get global state
209+ ## Get global state by block
210210``` php
211- getGlobalState (
211+ getGlobalStateByBlock (
212212 string $blockHash,
213213 string $key,
214214 array $path
@@ -221,3 +221,20 @@ Returns an [GlobalState](../Entity/GlobalState.md) object by the given block has
221221| ` $blockHash ` | ` string ` | Hex-encoded hash of the block | Yes |
222222| ` $key ` | ` string ` | ` casper_types::Key ` as formatted string | Yes |
223223| ` $path ` | ` array ` | The path components starting from the key as base | No |
224+
225+ ---
226+ ## Get global state by state root hash
227+ ``` php
228+ getGlobalStateByStateRootHash(
229+ string $stateRootHash,
230+ string $key,
231+ array $path
232+ ): GlobalState
233+ ```
234+ Returns an [ GlobalState] ( ../Entity/GlobalState.md ) object by the given state root hash and key
235+ ### Parameters
236+ | Name | Type | Description | Required |
237+ | ---| ------| -------------| ----|
238+ | ` $stateRootHash ` | ` string ` | Hex-encoded hash of the state root | Yes |
239+ | ` $key ` | ` string ` | ` casper_types::Key ` as formatted string | Yes |
240+ | ` $path ` | ` array ` | The path components starting from the key as base | No |
Original file line number Diff line number Diff line change 11# GlobalState
22
33``` php
4- getBlockHeader(): BlockHeader
4+ getBlockHeader(): ? BlockHeader
55```
66Returns [ BlockHeader] ( BlockHeader.md ) object
77
You can’t perform that action at this time.
0 commit comments