Package org.polkadot.rpc.core
Class RpcCore
- java.lang.Object
-
- org.polkadot.rpc.core.RpcCore
-
- All Implemented Interfaces:
IModule<IRpc.RpcInterfaceSection>,IRpcModule
public class RpcCore extends java.lang.Object implements IRpcModule
-
-
Method Summary
Modifier and Type Method Description IRpc.RpcInterfaceSectionauthor()IRpc.RpcInterfaceSectionchain()IRpcFunctioncreateMethodSend(JsonRpcMethod jsonRpcMethod)IRpcFunctioncreateMethodSubscribe(JsonRpcMethod jsonRpcMethod)IRpc.RpcInterfaceSectioncreateRpcSection(JsonRpcSection jsonRpcSection)voiddisconnect()Manually disconnect from the attached providerIProvidergetProvider()IRpc.RpcInterfaceSectionstate()IRpc.RpcInterfaceSectionsystem()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.polkadot.direct.IModule
addSection
-
Methods inherited from interface org.polkadot.direct.IRpcModule
section, sectionNames
-
-
-
-
Constructor Detail
-
RpcCore
public RpcCore()
-
RpcCore
public RpcCore(IProvider provider)
-
-
Method Detail
-
author
public IRpc.RpcInterfaceSection author()
- Specified by:
authorin interfaceIRpcModule
-
chain
public IRpc.RpcInterfaceSection chain()
- Specified by:
chainin interfaceIRpcModule
-
state
public IRpc.RpcInterfaceSection state()
- Specified by:
statein interfaceIRpcModule
-
system
public IRpc.RpcInterfaceSection system()
- Specified by:
systemin interfaceIRpcModule
-
createRpcSection
public IRpc.RpcInterfaceSection createRpcSection(JsonRpcSection jsonRpcSection)
-
createMethodSend
public IRpcFunction createMethodSend(JsonRpcMethod jsonRpcMethod)
-
createMethodSubscribe
public IRpcFunction createMethodSubscribe(JsonRpcMethod jsonRpcMethod)
-
getProvider
public IProvider getProvider()
-
disconnect
public void disconnect()
Manually disconnect from the attached provider
-
-