io.everitoken.sdk.java.param.TransactionDetailParams Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chain-sdk Show documentation
Show all versions of chain-sdk Show documentation
Official Java SDK for everiToken public chain. https://www.everitoken.io
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