Class CollectUtils

java.lang.Object
org.nervos.ckb.transaction.CollectUtils

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

    Constructors 
    Constructor Description
    CollectUtils​(org.nervos.ckb.service.Api api)  
    CollectUtils​(CkbIndexerApi api)  
  • Method Summary

    Modifier and Type Method Description
    org.nervos.ckb.transaction.CollectResult collectInputs​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength)  
    org.nervos.ckb.transaction.CollectResult collectInputs​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength, boolean skipDataAndType, long fromBlockNumber)  
    org.nervos.ckb.transaction.CollectResult collectInputsWithCkbIndexer​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength, boolean skipDataAndType)  
    org.nervos.ckb.transaction.CollectResult collectInputsWithIndexer​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength)  
    org.nervos.ckb.transaction.CollectResult collectInputsWithIndexer​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength, boolean skipDataAndType)  
    java.util.List<org.nervos.ckb.type.cell.CellOutput> generateOutputs​(java.util.List<Receiver> receivers, java.lang.String changeAddress)  
    java.math.BigInteger getCapacityWithAddress​(java.lang.String address)  
    java.math.BigInteger getCapacityWithAddress​(java.lang.String address, boolean withIndexer)  
    java.math.BigInteger getCapacityWithAddressByCkbIndexer​(java.lang.String address)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • collectInputs

      public org.nervos.ckb.transaction.CollectResult collectInputs​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength, boolean skipDataAndType, long fromBlockNumber) throws java.io.IOException
      Throws:
      java.io.IOException
    • collectInputs

      public org.nervos.ckb.transaction.CollectResult collectInputs​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength) throws java.io.IOException
      Throws:
      java.io.IOException
    • collectInputsWithIndexer

      public org.nervos.ckb.transaction.CollectResult collectInputsWithIndexer​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength, boolean skipDataAndType) throws java.io.IOException
      Throws:
      java.io.IOException
    • collectInputsWithCkbIndexer

      public org.nervos.ckb.transaction.CollectResult collectInputsWithCkbIndexer​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength, boolean skipDataAndType) throws java.io.IOException
      Throws:
      java.io.IOException
    • collectInputsWithIndexer

      public org.nervos.ckb.transaction.CollectResult collectInputsWithIndexer​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction transaction, java.math.BigInteger feeRate, int initialLength) throws java.io.IOException
      Throws:
      java.io.IOException
    • getCapacityWithAddressByCkbIndexer

      public java.math.BigInteger getCapacityWithAddressByCkbIndexer​(java.lang.String address) throws java.io.IOException
      Throws:
      java.io.IOException
    • getCapacityWithAddress

      public java.math.BigInteger getCapacityWithAddress​(java.lang.String address, boolean withIndexer)
    • getCapacityWithAddress

      public java.math.BigInteger getCapacityWithAddress​(java.lang.String address)
    • generateOutputs

      public java.util.List<org.nervos.ckb.type.cell.CellOutput> generateOutputs​(java.util.List<Receiver> receivers, java.lang.String changeAddress)