Package org.nervos.ckb.udt
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 UDTCollectResultcollectInputs(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.BigIntegergetUdtBalanceWithAddress(java.lang.String address, java.lang.String typeHash)java.math.BigIntegergetUdtBalanceWithLockHash(java.lang.String lockHash, java.lang.String typeHash)
-
Constructor Details
-
UDTCellCollector
public UDTCellCollector(org.nervos.ckb.service.Api api)
-
-
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
-