@@ -28,6 +28,8 @@ type Transaction struct {
2828 FunctionSelector string `json:"function_selector" ch:"function_selector"`
2929 MaxFeePerGas * big.Int `json:"max_fee_per_gas" ch:"max_fee_per_gas" swaggertype:"string"`
3030 MaxPriorityFeePerGas * big.Int `json:"max_priority_fee_per_gas" ch:"max_priority_fee_per_gas" swaggertype:"string"`
31+ MaxFeePerBlobGas * big.Int `json:"max_fee_per_blob_gas" ch:"max_fee_per_blob_gas" swaggertype:"string"`
32+ BlobVersionedHashes * []string `json:"blob_versioned_hashes" ch:"blob_versioned_hashes"`
3133 TransactionType uint8 `json:"transaction_type" ch:"transaction_type"`
3234 R * big.Int `json:"r" ch:"r" swaggertype:"string"`
3335 S * big.Int `json:"s" ch:"s" swaggertype:"string"`
@@ -58,35 +60,37 @@ type DecodedTransaction struct {
5860
5961// TransactionModel represents a simplified Transaction structure for Swagger documentation
6062type TransactionModel struct {
61- ChainId string `json:"chain_id"`
62- Hash string `json:"hash"`
63- Nonce uint64 `json:"nonce"`
64- BlockHash string `json:"block_hash"`
65- BlockNumber uint64 `json:"block_number"`
66- BlockTimestamp uint64 `json:"block_timestamp"`
67- TransactionIndex uint64 `json:"transaction_index"`
68- FromAddress string `json:"from_address"`
69- ToAddress string `json:"to_address"`
70- Value string `json:"value"`
71- Gas uint64 `json:"gas"`
72- GasPrice string `json:"gas_price"`
73- Data string `json:"data"`
74- FunctionSelector string `json:"function_selector"`
75- MaxFeePerGas string `json:"max_fee_per_gas"`
76- MaxPriorityFeePerGas string `json:"max_priority_fee_per_gas"`
77- TransactionType uint8 `json:"transaction_type"`
78- R string `json:"r"`
79- S string `json:"s"`
80- V string `json:"v"`
81- AccessListJson * string `json:"access_list_json"`
82- ContractAddress * string `json:"contract_address"`
83- GasUsed * uint64 `json:"gas_used"`
84- CumulativeGasUsed * uint64 `json:"cumulative_gas_used"`
85- EffectiveGasPrice * string `json:"effective_gas_price"`
86- BlobGasUsed * uint64 `json:"blob_gas_used"`
87- BlobGasPrice * string `json:"blob_gas_price"`
88- LogsBloom * string `json:"logs_bloom"`
89- Status * uint64 `json:"status"`
63+ ChainId string `json:"chain_id"`
64+ Hash string `json:"hash"`
65+ Nonce uint64 `json:"nonce"`
66+ BlockHash string `json:"block_hash"`
67+ BlockNumber uint64 `json:"block_number"`
68+ BlockTimestamp uint64 `json:"block_timestamp"`
69+ TransactionIndex uint64 `json:"transaction_index"`
70+ FromAddress string `json:"from_address"`
71+ ToAddress string `json:"to_address"`
72+ Value string `json:"value"`
73+ Gas uint64 `json:"gas"`
74+ GasPrice string `json:"gas_price"`
75+ Data string `json:"data"`
76+ FunctionSelector string `json:"function_selector"`
77+ MaxFeePerGas string `json:"max_fee_per_gas"`
78+ MaxPriorityFeePerGas string `json:"max_priority_fee_per_gas"`
79+ MaxFeePerBlobGas string `json:"max_fee_per_blob_gas"`
80+ BlobVersionedHashes * []string `json:"blob_versioned_hashes"`
81+ TransactionType uint8 `json:"transaction_type"`
82+ R string `json:"r"`
83+ S string `json:"s"`
84+ V string `json:"v"`
85+ AccessListJson * string `json:"access_list_json"`
86+ ContractAddress * string `json:"contract_address"`
87+ GasUsed * uint64 `json:"gas_used"`
88+ CumulativeGasUsed * uint64 `json:"cumulative_gas_used"`
89+ EffectiveGasPrice * string `json:"effective_gas_price"`
90+ BlobGasUsed * uint64 `json:"blob_gas_used"`
91+ BlobGasPrice * string `json:"blob_gas_price"`
92+ LogsBloom * string `json:"logs_bloom"`
93+ Status * uint64 `json:"status"`
9094}
9195
9296type DecodedTransactionDataModel struct {
@@ -188,6 +192,8 @@ func (t *Transaction) Serialize() TransactionModel {
188192 FunctionSelector : t .FunctionSelector ,
189193 MaxFeePerGas : t .MaxFeePerGas .String (),
190194 MaxPriorityFeePerGas : t .MaxPriorityFeePerGas .String (),
195+ MaxFeePerBlobGas : t .MaxFeePerBlobGas .String (),
196+ BlobVersionedHashes : t .BlobVersionedHashes ,
191197 TransactionType : t .TransactionType ,
192198 R : t .R .String (),
193199 S : t .S .String (),
0 commit comments