state
call(method: Text, data: Bytes, at?: BlockHash): Bytes
Text, data: Bytes, at?: BlockHash): Bytesinterface:
api.rpc.state.calljsonrpc:
state_call(alias=state_callAt)summary: Calls a contract (pallet) at a block's state.
getChildReadProof(childStorageKey: PrefixedStorageKey, keys: Vec<StorageKey>, at?: BlockHash): ReadProof
PrefixedStorageKey, keys: Vec<StorageKey>, at?: BlockHash): ReadProofinterface:
api.rpc.state.getChildReadProofjsonrpc:
state_getChildReadProofsummary: Returns proof of storage for child key entries at a specific block state.
getKeys(key: StorageKey, at?: BlockHash): Vec<StorageKey>
StorageKey, at?: BlockHash): Vec<StorageKey>interface:
api.rpc.state.getKeysjsonrpc:
state_getKeyssummary: Retrieves the keys with a certain prefix.
deprecated: Use
api.rpc.state.getKeysPagedto retrieve keys.
getKeysPaged(key: StorageKey, count: u32, startKey?: StorageKey, at?: BlockHash): Vec<StorageKey>
StorageKey, count: u32, startKey?: StorageKey, at?: BlockHash): Vec<StorageKey>interface:
api.rpc.state.getKeysPagedjsonrpc:
state_getKeysPaged(alias=state_getKeysPagedAt)summary: Returns the keys with prefix with pagination support.
getMetadata(at?: BlockHash): Metadata
BlockHash): Metadatainterface:
api.rpc.state.getMetadatajsonrpc:
state_getMetadatasummary: Returns the runtime metadata.
getPairs(prefix: StorageKey, at?: BlockHash): Vec<KeyValue>
StorageKey, at?: BlockHash): Vec<KeyValue>interface:
api.rpc.state.getPairsjsonrpc:
state_getPairssummary: Returns the keys with prefix, leaves empty to get all the keys (deprecated: Use getKeysPaged).
deprecated: Use
api.rpc.state.getKeysPagedto retrieve keys.
getReadProof(keys: Vec<StorageKey>, at?: BlockHash): ReadProof
Vec<StorageKey>, at?: BlockHash): ReadProofinterface:
api.rpc.state.getReadProofjsonrpc:
state_getReadProofsummary: Returns proof of storage entries at a specific block state.
getRuntimeVersion(at?: BlockHash): RuntimeVersion
BlockHash): RuntimeVersioninterface:
api.rpc.state.getRuntimeVersionjsonrpc:
state_getRuntimeVersion(alias=chain_getRuntimeVersion)summary: Gets the runtime version.
getStorage(key: StorageKey, at?: BlockHash): StorageData
StorageKey, at?: BlockHash): StorageDatainterface:
api.rpc.state.getStoragejsonrpc:
state_getStorage(alias=state_getStorageAt)summary: Retrieves the storage for a key.
getStorageHash(key: StorageKey, at?: BlockHash): Hash
StorageKey, at?: BlockHash): Hashinterface:
api.rpc.state.getStorageHashjsonrpc:
state_getStorageHash(alias=state_getStorageHashAt)summary: Retrieves the storage hash.
getStorageSize(key: StorageKey, at?: BlockHash): u64
StorageKey, at?: BlockHash): u64interface:
api.rpc.state.getStorageSizejsonrpc:
state_getStorageSize(alias=state_getStorageSizeAt)summary: Retrieves the storage size.
queryStorage(keys: Vec<StorageKey>, fromBlock: Hash, toBlock?: BlockHash): Vec<StorageChangeSet>
Vec<StorageKey>, fromBlock: Hash, toBlock?: BlockHash): Vec<StorageChangeSet>interface:
api.rpc.state.queryStoragejsonrpc:
state_queryStoragesummary: Queries historical storage entries (by key) starting from a start block.
queryStorageAt(keys: Vec<StorageKey>, at?: BlockHash): Vec<StorageChangeSet>
Vec<StorageKey>, at?: BlockHash): Vec<StorageChangeSet>interface:
api.rpc.state.queryStorageAtjsonrpc:
state_queryStorageAtsummary: Queries storage entries (by key) starting at block hash given as the second parameter.
subscribeRuntimeVersion(): RuntimeVersion
RuntimeVersioninterface:
api.rpc.state.subscribeRuntimeVersionjsonrpc:
state_subscribeRuntimeVersionsummary: Retrieves the runtime version via subscription.
subscribeStorage(keys?: Vec<StorageKey>): StorageChangeSet
Vec<StorageKey>): StorageChangeSetinterface:
api.rpc.state.subscribeStoragejsonrpc:
state_subscribeStoragesummary: Subscribes to storage changes for the provided keys.
traceBlock(block: Hash, targets: Option<Text>, storageKeys: Option<Text>, methods: Option<Text>): TraceBlockResponse
Hash, targets: Option<Text>, storageKeys: Option<Text>, methods: Option<Text>): TraceBlockResponseinterface:
api.rpc.state.traceBlockjsonrpc:
state_traceBlocksummary: Provides a way to trace the re-execution of a single block.
Last updated