Skip to content

Commit 451781f

Browse files
committed
problem: missing fields for root and blobGasPrice
1 parent 17686b7 commit 451781f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

etherjar-rpc-json/src/main/java/io/emeraldpay/etherjar/rpc/json/TransactionReceiptJson.java

+32
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,17 @@
1717

1818
package io.emeraldpay.etherjar.rpc.json;
1919

20+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
2021
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
2122
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
2223
import io.emeraldpay.etherjar.domain.*;
24+
import io.emeraldpay.etherjar.hex.Hex32;
2325

2426
import java.io.Serializable;
2527
import java.util.List;
2628
import java.util.Objects;
2729

30+
@JsonIgnoreProperties(ignoreUnknown = true)
2831
public class TransactionReceiptJson implements TransactionRef, Serializable {
2932

3033
/**
@@ -94,8 +97,16 @@ public class TransactionReceiptJson implements TransactionRef, Serializable {
9497
@JsonSerialize(using = HexIntSerializer.class)
9598
private Integer status;
9699

100+
/**
101+
* The actual value per gas deducted from the sender's account. Before EIP-1559, this is equal to the transaction's gas price. After, it is equal to baseFeePerGas + min(maxFeePerGas - baseFeePerGas, maxPriorityFeePerGas).
102+
*/
97103
private Wei effectiveGasPrice;
98104

105+
/**
106+
* The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844.
107+
*/
108+
private Wei blobGasPrice;
109+
99110
/**
100111
* Transaction type
101112
*
@@ -105,6 +116,11 @@ public class TransactionReceiptJson implements TransactionRef, Serializable {
105116
@JsonSerialize(using = HexIntSerializer.class)
106117
private Integer type = 0;
107118

119+
/**
120+
* The post-transaction state root. Only specified for transactions included before the Byzantium upgrade.
121+
*/
122+
private Hex32 root;
123+
108124
public TransactionId getTransactionHash() {
109125
return transactionHash;
110126
}
@@ -209,6 +225,14 @@ public void setEffectiveGasPrice(Wei effectiveGasPrice) {
209225
this.effectiveGasPrice = effectiveGasPrice;
210226
}
211227

228+
public Wei getBlobGasPrice() {
229+
return blobGasPrice;
230+
}
231+
232+
public void setBlobGasPrice(Wei blobGasPrice) {
233+
this.blobGasPrice = blobGasPrice;
234+
}
235+
212236
public int getType() {
213237
if (type == null) {
214238
return 0;
@@ -220,6 +244,14 @@ public void setType(int type) {
220244
this.type = type;
221245
}
222246

247+
public Hex32 getRoot() {
248+
return root;
249+
}
250+
251+
public void setRoot(Hex32 root) {
252+
this.root = root;
253+
}
254+
223255
@Override
224256
public TransactionId getHash() {
225257
return transactionHash;

0 commit comments

Comments
 (0)