Class RpcExample

java.lang.Object
org.nervos.ckb.RpcExample

public class RpcExample
extends java.lang.Object
Copyright © 2018 Nervos Foundation. All rights reserved.
  • Constructor Summary

    Constructors 
    Constructor Description
    RpcExample()  
  • Method Summary

    Modifier and Type Method Description
    org.nervos.ckb.type.Block getBlockByNumber​(java.lang.String blockNumber)  
    org.nervos.ckb.type.BlockchainInfo getBlockchainInfo()  
    java.math.BigInteger getTipBlockNumber()  
    static void main​(java.lang.String[] args)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • main

      public static void main​(java.lang.String[] args) throws java.io.IOException
      Throws:
      java.io.IOException
    • getBlockByNumber

      public org.nervos.ckb.type.Block getBlockByNumber​(java.lang.String blockNumber) throws java.io.IOException
      Throws:
      java.io.IOException
    • getTipBlockNumber

      public java.math.BigInteger getTipBlockNumber() throws java.io.IOException
      Throws:
      java.io.IOException
    • getBlockchainInfo

      public org.nervos.ckb.type.BlockchainInfo getBlockchainInfo() throws java.io.IOException
      Throws:
      java.io.IOException