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
| Method | Description |
|---|---|
| system_chain | Chain name |
| system_health | Node health and sync flags |
| system_name | Client implementation name |
| system_version | Client version |
| system_properties | Token symbol, decimals, and SS58 format |
| system_syncState | Sync progress heights |
| system_accountNextIndex | Next nonce for an account |
| system_chainType | Chain type: Live, Local, or Development |
| system_nodeRoles | Node roles |
Chain
| Method | Description |
|---|---|
| chain_getBlock | Full block by hash, or latest |
| chain_getBlockHash | Block hash by number, or latest |
| chain_getHeader | Block header by hash, or latest |
| chain_getFinalizedHead | Latest finalized block hash |
| chain_getRuntimeVersion | Runtime version at a block |
State
| Method | Description |
|---|---|
| state_getRuntimeVersion | Runtime version and APIs |
| state_getMetadata | Runtime metadata in SCALE hex |
| state_getStorage | Raw storage value by key |
| state_getKeysPaged | Paged storage keys under a prefix |
| state_queryStorageAt | Values for multiple keys at a block |
| state_getKeys | Storage keys under a prefix, unpaged |
| state_getStorageHash | Hash of a storage value |
| state_getReadProof | Merkle proof for storage keys |
| state_call | Invoke a runtime API |
Childstate
| Method | Description |
|---|---|
| childstate_getStorage | Value in a child trie |
childstate_getStorageHash | Hash of a child-trie value |
Author
| Method | Description |
|---|---|
| author_submitExtrinsic | Submit a signed extrinsic |
| author_pendingExtrinsics | Extrinsics in the pool |
Payment
| Method | Description |
|---|---|
| payment_queryInfo | Estimate fee for an extrinsic |
| payment_queryFeeDetails | Detailed fee breakdown |
New JSON-RPC (v1)
| Method | Description |
|---|---|
| chainSpec_v1_chainName | Chain name |
| chainSpec_v1_genesisHash | Genesis hash |
| chainSpec_v1_properties | Chain properties |
| transaction_v1_broadcast | Broadcast a transaction |
RPC
| Method | Description |
|---|---|
| rpc_methods | List available RPC methods |
Support
| Contact |
|---|
| support@getblock.io |