Vine Docs
  • Overview
    • What is Vine?
    • Layer 0 Architecture
    • Key Features
    • Network Components
  • Core Concepts
    • Layer 0 Protocol Design
    • Architecture Design
    • Node Architecture
    • Parachains
    • EVM & WASM Support
    • Nominated Proof of Stake (NPoS)
    • How NPoS Works
    • Vine Coin (VNE) and Governance
    • Transaction Fees
  • Validators
    • Who are Validators?
    • Validator Node Types
    • Validator's Guide
      • Step 1 - Validator dApp
      • Step 2 - Dashboard
      • Step 3 - Validator Setup
      • Step 4 - Validators Page
    • Manage Account
    • Validator Node Setup
      • Validator System Requirements
      • Guidelines & Precautions
  • Nominators
    • Who are Nominators?
    • Nominator dApp
    • Becoming a Nominator
      • Step 1 - Login
      • Step 2 - Dashboard
      • Step 3 - Validators Page
      • Step 4 - Nominate Validators
    • Manage Account
  • Staking, Slashing & Chilling
    • Staking
    • Slashing Guide
    • Chilling
  • Parallel Chains
    • Overview
    • Block Parameters
    • Substrate Framework-Based
    • Asset Movement
    • Pros and Cons
    • Interoperability
    • Application-Specific Parallel Chains
  • Vine RPC Calls
    • Overview
    • RPC Calls
      • Author
      • Babe
      • Beefy
      • Chain
      • childstate
      • contracts
      • dev
      • engine
      • grandpa
      • mmr
      • offchain
      • payment
      • rpc
      • state
      • syncstate
      • system
  • Vine Explorer
    • Overview
    • How to Use
      • Dashboard
      • Transaction Details
      • Block Details
      • Telemetry
      • Map View
      • Globe View
      • TPS History
      • Vine Testnet Faucet
      • Token Module
      • Contracts
  • Zen Wallet
    • Overview
    • How to Use
      • Create Account
      • Account Login
      • Dashboard
      • Balance
      • Statements
      • Send
      • Keys
      • Swap
      • Balance
      • Multisig Login
        • How To
        • Balance
        • Send
  • Additional Resources
    • Glossary
      • Blockchain
      • Node
      • Validator Node
      • Full Node
      • Validators
      • Nominators
      • Mnemonics
      • Stake
      • Slashing
      • Chilling
      • Parallel Chain
      • Era
      • Uptime
      • APY
      • Waiting State of Validator
      • Active State of Validator
      • Inactive State of Validator
      • Non-Custodial Wallet
      • Custodial Wallet
      • Points
Powered by GitBook
On this page
  1. Vine RPC Calls
  2. RPC Calls

state

Method Name: call

Parameter: method - Text, data - Bytes, at - BlockHash

Return Type: Bytes​

  • interface: api.rpc.state.call

  • jsonrpc: state_call

The call method performs a call to a builtin on the chain for the given parameters extrinsic and at.

Method Name: getChildKeys

Parameter: childStorageKey - StorageKey, childDefinition - StorageKey, childType - u32, key - StorageKey, at - BlockHash

Return Type: Bytes​

  • interface: api.rpc.state.getChildKeys

  • jsonrpc: state_getChildKeys

The getChildKeys method retrieves the keys with prefix of a specific child storage for the given parameters childStorageKey, childDefinition, childType, key and at.

Method Name: getChildReadProof

Parameter: childStorageKey - StorageKey, childDefinition - StorageKey, childType - u32, key - StorageKey, at - BlockHash

Return Type: ReadProof​

  • interface: api.rpc.state.getChildReadProof

  • jsonrpc: state_getChildReadProof

The getChildReadProof method returns proof of storage for child key entries at a specific block state for the given parameters childStorageKey, childDefinition, childType, key and at.

Method Name: getChildStorage

Parameter: childStorageKey - StorageKey, childDefinition - StorageKey, childType - u32, key - StorageKey, at - BlockHash

Return Type: StorageData​

  • interface: api.rpc.state.getChildStorage

  • jsonrpc: state_getChildStorage

The getChildStorage method retrieves the child storage for a key for the given parameters childStorageKey, childDefinition, childType, key and at.

Method Name: getChildStorageHash

Parameter: childStorageKey - StorageKey, childDefinition - StorageKey, childType - u32, key - StorageKey, at - BlockHash

Return Type: Hash​

  • interface: api.rpc.state.getChildStorageHash

  • jsonrpc: state_getChildStorageHash

The getChildStorageHash method retrieves the child storage hash for the given parameters childStorageKey, childDefinition, childType, key and at.

Method Name: getChildStorageSize

Parameter: childStorageKey - StorageKey, childDefinition - StorageKey, childType - u32, key - StorageKey, at - BlockHash

Return Type: u64​

  • interface: api.rpc.state.getChildStorageSize

  • jsonrpc: state_getChildStorageSize

The getChildStorageSize method retrieves the child storage size for the given parameters childStorageKey, childDefinition, childType, key and at.

Method Name: getKeys

Parameter: key - StorageKey, at - BlockHash

Return Type: Vec<StorageKey>

  • interface: api.rpc.state.getKeys

  • jsonrpc: state_getKeys

The getKeys method retrieves the keys with a certain prefix for the given parameters key and at.

Method Name: getKeysPaged

Parameter: key - StorageKey, count - u32, startKey - StorageKey, at - BlockHash

Return Type: Vec<StorageKey>

  • interface: api.rpc.state.getKeysPaged

  • jsonrpc: state_getKeysPaged

The getKeysPaged method returns the keys with prefix with pagination support for the given parameters key, count, startKey, and at.

Method Name: getMetadata

Parameter: at - BlockHash

Return Type: Metadata​

  • interface: api.rpc.state.getMetadata

  • jsonrpc: state_getMetadata

The getMetadata method returns the runtime metadata for the given parameter

Method Name: getPairs

Parameter: prefix: StorageKey, at - BlockHash

Return Type: Vec<KeyValue>​

  • interface: api.rpc.state.getPairs

  • jsonrpc: state_getPairs

The getPairs method returns the keys with prefix, leave empty to get all the keys (deprecated: Use getKeysPaged) for the given parameters prefix and at.

Method Name: getReadProof

Parameter: keys - Vec<StorageKey>, at - BlockHash

Return Type: ReadProof​

  • interface: api.rpc.state.getReadProof

  • jsonrpc: state_getReadProof

The getReadProof method returns proof of storage entries at a specific block state for the given parameters keys and at.

Method Name: getRuntimeVersion

Parameter: at - BlockHash

Return Type: RuntimeVersion​

  • interface: api.rpc.state.getRuntimeVersion

  • jsonrpc: state_getRuntimeVersion

The getRuntimeVersion method gets the runtime version for the given parameter

Method Name: getStorage

Parameter: key - StorageKey,at - BlockHash

Return Type: StorageData​

  • interface: api.rpc.state.getStorage

  • jsonrpc: state_getStorage

The getStorage method retrieves the storage for a key for the given parameters key and at.

Method Name: getStorageHash

Parameter: key - StorageKey,at - BlockHash

Return Type: Hash​

  • interface: api.rpc.state.getStorageHash

  • jsonrpc: state_getStorageHash

The getStorage method retrieves the storage hash for the given parameters key and at.

Method Name: getStorageSize

Parameter: key - StorageKey,at - BlockHash

Return Type: u64​

  • interface: api.rpc.state.getStorageSize

  • jsonrpc: state_getStorageSize

The getStorageSize method retrieves the storage size for the given parameters key and at.

Method Name: queryStorage

Parameter: keys - Vec<StorageKey>, fromBlock - Hash, toBlock - BlockHash

Return Type: Vec<StorageChangeSet>

  • interface: api.rpc.state.queryStorage

  • jsonrpc: state_queryStorage

The queryStorage method query historical storage entries (by key) starting from a start block for the given parameters keys, fromBlock and toBlock.

Method Name: queryStorageAt

Parameter: keys - Vec<StorageKey>, at - BlockHash

Return Type: Vec<StorageChangeSet>

  • interface: api.rpc.state.queryStorageAt

  • jsonrpc: state_queryStorageAt

The queryStorageAt method query storage entries (by key) starting at block hash given as the second parameter for the given parameters keys and at.

Method Name: subscribeRuntimeVersion

Parameter: -

Return Type: RuntimeVersion​

  • interface: api.rpc.state.subscribeRuntimeVersion

  • jsonrpc: state_subscribeRuntimeVersion

The subscribeRuntimeVersion method retrieves the runtime version via subscription

Method Name: subscribeStorage

Parameter: block - Hash, targets - Option<Text>, storageKeys - Option<Text>, methods - Option<Text>

Return Type: TraceBlockResponse​

  • interface: api.rpc.state.traceBlock

  • jsonrpc: state_traceBlock

The traceBlock method provides a way to trace the re-execution of a single block for the given parameters block, targets, storageKeys, and methods.

Method Name: trieMigrationStatus

Parameter: at - BlockHash

Return Type: MigrationStatusResult​

  • interface: api.rpc.state.trieMigrationStatus

  • jsonrpc: state_trieMigrationStatus

The trieMigrationStatus method checks the current migration state for the given parameter at.

PreviousrpcNextsyncstate

Last updated 4 months ago