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

io.everitoken.sdk.java.param.TransactionDetailParams Maven / Gradle / Ivy

There is a newer version: 1.4.6
Show newest version
package io.everitoken.sdk.java.param;

import javax.annotation.Nullable;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;

public class TransactionDetailParams implements ApiParams {
    private final String trxId;
    private final String blockNum;

    public TransactionDetailParams(String trxId, @Nullable String blockNum) {
        this.trxId = trxId;
        this.blockNum = blockNum;
    }

    public TransactionDetailParams(String trxId) {
        this(trxId, null);
    }

    @JSONField(name = "id")
    public String getTrxId() {
        return trxId;
    }

    @JSONField(name = "block_num")
    public String getBlockNum() {
        return blockNum;
    }

    @Override
    public String asBody() {
        return JSON.toJSONString(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy