Move to lerna repo (#19)
* Pull api-* packages into lerna repo * Bootstrap with hoist * Update jest alias config * Add api-jsonrpc * Pull in jsonrpc * Update badges * Don't hoist, use workspaces * .eslintrc to root * Cleanups, build from root * Shorthand commands * Update to @polkadot/dev 0.9.1 * Update description
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# state
|
||||
|
||||
Query the state and state storage.
|
||||
|
||||
- [call](#call) Perform a call to a builtin on the chain.
|
||||
- [getStorage](#getstorage) Retrieves the storage for an address.
|
||||
|
||||
## call
|
||||
|
||||
Perform a call to a builtin on the chain.
|
||||
|
||||
```js
|
||||
chain_call (address: Address, method: String, data: CallData, block: HeaderHash): OutData
|
||||
```
|
||||
|
||||
|
||||
Calls a `method` at a specific `address`, passing the encoded `data`. The query is executed at the block specified by `block`.
|
||||
|
||||
|
||||
|
||||
## getStorage
|
||||
|
||||
Retrieves the storage for an address.
|
||||
|
||||
```js
|
||||
chain_getStorage (address: Address, key: H256, block: HeaderHash): StorageData
|
||||
```
|
||||
|
||||
|
||||
Retrieves the storage `key` at a specific `address`, executing the query at a specific `block`.
|
||||
|
||||
Reference in New Issue
Block a user