-
Author
-
Chain
-
Contracts
-
State
-
System
-
Other
Submit a fully formatted extrinsic for block inclusion
- Shortcut
-
StandardCommands.getInstance().authorSubmitExtrinsic(ByteData)
- Command
-
author_submitExtrinsic
- Parameters
-
encoded extrinsic
- Java Object
-
Hash256
Returns all pending extrinsics
- Shortcut
-
StandardCommands.getInstance().authorPendingExtrinsics()
- Command
-
author_pendingExtrinsics
- Parameters
-
none
- Java Object
-
List<ByteData>
Remove given extrinsic(s) from the pool and temporarily ban it to prevent reimporting
- Shortcut
-
StandardCommands.getInstance().authorRemoveExtrinsic()
- Command
-
author_removeExtrinsic
- Parameters
-
extrinsic(s) hash(es) or original extrinsic(s)
- Java Object
-
List<Hash256>
Returns true if the keystore has private keys for the given public key and key type.
- Shortcut
-
StandardCommands.getInstance().authorHasKey()
- Command
-
author_hasKey
- Parameters
-
address/public key, key type
- Java Object
-
Boolean
Returns true if the keystore has private keys for the given session public keys.
- Shortcut
-
StandardCommands.getInstance().authorHasSessionKeys()
- Command
-
author_hasSessionKeys
- Parameters
-
bytes
- Java Object
-
Boolean
Insert a key into the keystore.
- Shortcut
-
StandardCommands.getInstance().authorInsertKey()
- Command
-
author_insertKey
- Parameters
-
key type, suri, address/public key
- Java Object
-
ByteData
Generate new session keys and returns the corresponding public keys.
- Shortcut
-
StandardCommands.getInstance().authorRotateKeys()
- Command
-
author_rotateKeys
- Parameters
-
none
- Java Object
-
ByteData
Get block by its hash
- Shortcut
-
StandardCommands.getInstance().getBlock(Hash256)
- Command
-
chain_getBlock
- Parameters
-
hash of the requested block
- Java Object
-
BlockResponseJson
Get the block hash for a specific block
- Shortcut
-
StandardCommands.getInstance().getBlockHash(at)
- Command
-
chain_getBlockHash
- Parameters
-
at
- (optional) block height - Java Object
-
Hash256
-
BlockJson getBlock()
block details -
Object getJustification()
Get the hash of the finalized head
- Shortcut
-
StandardCommands.getInstance().getFinalizedHead()
- Command
-
chain_getFinalizedHead
- Parameters
-
none
- Java Object
-
Hash256
Get the hash of the head
- Shortcut
-
StandardCommands.getInstance().getHead()
- Command
-
chain_getHead
- Parameters
-
none
- Java Object
-
Hash256
Get the Runtime Version of the current blockchain
- Shortcut
-
StandardCommands.getInstance().getRuntimeVersion()
- Command
-
chain_getRuntimeVersion
- Parameters
-
none
- Java Object
-
RuntimeVersionJson
-
List<List<?>> getApis()
-
Integer getAuthoringVersion()
-
String getImplName()
-
Integer getImplVersion()
-
String getSpecName()
-
Integer getSpecVersion()
-
Integer getTransactionVersion()
Executes a call to a contract
- Shortcut
-
StandardCommands.getInstance().contractsCall(call, at)
- Command
-
contracts_call
- Parameters
-
call
- requests dataContractCallRequestJson
,at
- (optional) block reference (Hash256
) - Java Object
-
ContractExecResultJson
Get value under a specified storage key in a contract.
- Shortcut
-
StandardCommands.getInstance().contractsGetStorage(address, key, at)
- Command
-
contracts_getStorage
- Parameters
-
-
address
- contract address (Address
), -
key
- key (Has256
), -
at
- (optional) block reference (Hash256
)
-
- Java Object
-
ByteData
Get projected time a given contract will be able to sustain paying its rent
- Shortcut
-
StandardCommands.getInstance().contractsRentProjection(address, at)
- Command
-
contracts_getStorage
- Parameters
-
-
address
- contract address (Address
), -
at
- (optional) block reference (Hash256
)
-
- Java Object
-
Long
Get name of the current blockchain
- Shortcut
-
StandardCommands.getInstance().stateMetadata()
- Command
-
state_getMetadata
- Parameters
-
none
- Java Object
-
ByteData
The metadata is encoded with SCALE codec, if you need to decode the object use:
Future<Metadata> metadataFuture = client.execute(StandardCommands.getInstance().stateMetadata())
.thenApply(ByteData::getBytes)
.thenApply(ScaleExtract.fromBytes(new MetadataReader()));
Get state from a Storage.
- Shortcut
-
StandardCommands.getInstance().stateGetStorage(key)
- Command
-
state_getStorage
- Parameters
-
key
- bytes (byte[]
orByteDate
) - Java Object
-
ByteData
Get proof of storage entries at a specific block state
- Shortcut
-
StandardCommands.getInstance().stateGetReadProof(keys, at?)
- Command
-
state_getReadProof
- Parameters
-
-
keys
- list of keys (List<ByteDate>
) -
at
- (optional) block reference (Hash256
)
-
- Java Object
-
ReadProofJson
Get name of the current blockchain
- Shortcut
-
StandardCommands.getInstance().systemChain()
- Command
-
system_chain
- Parameters
-
none
- Java Object
-
String
Get health status of the node
- Shortcut
-
StandardCommands.getInstance().systemHealth()
- Command
-
system_health
- Parameters
-
none
- Java Object
-
SystemHealthJson
-
Boolean getSyncing
- true if node does initial syncing -
Integer getPeers()
- amount of current peers -
Boolean getShouldHavePeers()
- true if node should have peers
Get name of the current node
- Shortcut
-
StandardCommands.getInstance().systemName()
- Command
-
system_name
- Parameters
-
none
- Java Object
-
String
Get roles of the current node
- Shortcut
-
StandardCommands.getInstance().systemNodeRoles()
- Command
-
system_nodeRoles
- Parameters
-
none
- Java Object
-
List<String>
Get peer list connected to the current node
- Shortcut
-
StandardCommands.getInstance().systemPeers()
- Command
-
system_peers
- Parameters
-
none
- Java Object
-
List<PeerJson>
-
Hash256 getBestHash()
-
Long getBestNumber()
-
String getPeerId()
-
Integer getProtocolVersion()
-
String getRoles()
Get version of the current node
- Shortcut
-
StandardCommands.getInstance().systemVersion()
- Command
-
system_version
- Parameters
-
none
- Java Object
-
String
Get list of all available RPC methods
- Shortcut
-
StandardCommands.getInstance().methods()
- Command
-
rpc_methods
- Parameters
-
none
- Java Object
-
MethodsJson
-
Integer getVersion()
- version of RPC -
List<String> getMethods()
- list of methods
Retrieves the fee information for an encoded extrinsic
- Shortcut
-
StandardCommands.getInstance().paymentQueryInfo()
- Command
-
payment_queryInfo
- Parameters
-
extrinsic, (optional) block hash
- Java Object
-
RuntimeDispatchInfoJson
Subscribe to the finalized head changes, i.e. to the finalized block on the head of the current blockchain.
- Shortcut
-
StandardSubscriptions.getInstance().finalizedHeads()
- Command
-
chain_subscribeFinalizedHeads
- Parameters
-
none
- Java Object
-
BlockJson.Header
Subscribe to the head changes, i.e. to block on the head of the current blockchain.
- Shortcut
-
StandardSubscriptions.getInstance().newHeads()
- Command
-
chain_subscribeNewHead
- Parameters
-
none
- Java Object
-
BlockJson.Header
Subscribe to the changes to the Runtime Version.
- Shortcut
-
StandardSubscriptions.getInstance().runtimeVersion()
- Command
-
state_subscribeRuntimeVersion
- Parameters
-
none
- Java Object
-
RuntimeVersion