Class UDTCellCollector

java.lang.Object
org.nervos.ckb.udt.UDTCellCollector

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

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

    Modifier and Type Method Description
    UDTCollectResult collectInputs​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction tx, java.math.BigInteger feeRate, int initialLength, java.lang.String typeHash, java.math.BigInteger udtAmount)  
    java.math.BigInteger getUdtBalanceWithAddress​(java.lang.String address, java.lang.String typeHash)  
    java.math.BigInteger getUdtBalanceWithLockHash​(java.lang.String lockHash, java.lang.String typeHash)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • collectInputs

      public UDTCollectResult collectInputs​(java.util.List<java.lang.String> addresses, org.nervos.ckb.type.transaction.Transaction tx, java.math.BigInteger feeRate, int initialLength, @NonNull java.lang.String typeHash, java.math.BigInteger udtAmount) throws java.io.IOException
      Throws:
      java.io.IOException
    • getUdtBalanceWithAddress

      public java.math.BigInteger getUdtBalanceWithAddress​(java.lang.String address, @NonNull java.lang.String typeHash) throws java.io.IOException
      Throws:
      java.io.IOException
    • getUdtBalanceWithLockHash

      public java.math.BigInteger getUdtBalanceWithLockHash​(java.lang.String lockHash, @NonNull java.lang.String typeHash) throws java.io.IOException
      Throws:
      java.io.IOException