All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cryptape.cita.protocol.core.methods.response.AppGetTransactionCount Maven / Gradle / Ivy

package com.cryptape.cita.protocol.core.methods.response;

import java.math.BigInteger;

import com.cryptape.cita.protocol.core.Response;
import com.cryptape.cita.utils.Numeric;

/**
 * app_getTransactionCount.
 */
public class AppGetTransactionCount extends Response {
    public boolean isEmpty() {
        return getResult() == null;
    }

    public BigInteger getTransactionCount() {
        return Numeric.decodeQuantity(getResult());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy