Class PolkadotClient

java.lang.Object
com.method5.jot.rpc.PolkadotClient
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
PolkadotRpcClient, PolkadotWsClient

public abstract class PolkadotClient extends Object implements AutoCloseable
PolkadotClient — class for polkadot client in the Jot SDK. Provides RPC client / JSON‑RPC integration.
  • Field Details

  • Constructor Details

    • PolkadotClient

      protected PolkadotClient(String[] servers, long timeoutInMillis)
  • Method Details

    • send

      public abstract com.fasterxml.jackson.databind.JsonNode send(String method, com.fasterxml.jackson.databind.JsonNode params) throws Exception
      Throws:
      Exception
    • send

      public String send(String method, String params) throws Exception
      Throws:
      Exception
    • initializeMetadata

      public void initializeMetadata()
    • buildPayload

      protected String buildPayload(String id, String method, com.fasterxml.jackson.databind.JsonNode params)
    • close

      public abstract void close()
      Specified by:
      close in interface AutoCloseable
    • getChainSpec

      public ChainSpec getChainSpec()
    • getResolver

      public CallIndexResolver getResolver()
    • getMetadata

      public MetadataV14 getMetadata()