JSON RPC API

Avail's Substrate JSON-RPC methods, organized by namespace. These are request/response calls available over both the JSON-RPC (HTTP) and WebSocket interfaces. For pub-sub subscriptions, see the WebSocket Subscriptions API.

System

MethodDescription
system_chainChain name
system_healthNode health and sync flags
system_nameClient implementation name
system_versionClient version
system_propertiesToken symbol, decimals, and SS58 format
system_syncStateSync progress heights
system_accountNextIndexNext nonce for an account
system_chainTypeChain type: Live, Local, or Development
system_nodeRolesNode roles

Chain

MethodDescription
chain_getBlockFull block by hash, or latest
chain_getBlockHashBlock hash by number, or latest
chain_getHeaderBlock header by hash, or latest
chain_getFinalizedHeadLatest finalized block hash
chain_getRuntimeVersionRuntime version at a block

State

MethodDescription
state_getRuntimeVersionRuntime version and APIs
state_getMetadataRuntime metadata in SCALE hex
state_getStorageRaw storage value by key
state_getKeysPagedPaged storage keys under a prefix
state_queryStorageAtValues for multiple keys at a block
state_getKeysStorage keys under a prefix, unpaged
state_getStorageHashHash of a storage value
state_getReadProofMerkle proof for storage keys
state_callInvoke a runtime API

Childstate

MethodDescription
childstate_getStorageValue in a child trie
childstate_getStorageHashHash of a child-trie value

Author

MethodDescription
author_submitExtrinsicSubmit a signed extrinsic
author_pendingExtrinsicsExtrinsics in the pool

Payment

MethodDescription
payment_queryInfoEstimate fee for an extrinsic
payment_queryFeeDetailsDetailed fee breakdown

New JSON-RPC (v1)

MethodDescription
chainSpec_v1_chainNameChain name
chainSpec_v1_genesisHashGenesis hash
chainSpec_v1_propertiesChain properties
transaction_v1_broadcastBroadcast a transaction

RPC

MethodDescription
rpc_methodsList available RPC methods

Support

Contact
support@getblock.io