Describe AccountTxReceiptResponse
@@ -70,13 +70,33 @@ pub struct TxByHashResponse {
pub tx: Value,
}
+/// Raw response of the [`get_account_transactions_receipts`] query.
+///
+/// [`get_account_transactions_receipts`]: super::OperationsExtSchema::get_account_transactions_receipts()
#[derive(Debug, FromRow, PartialEq)]
pub struct AccountTxReceiptResponse {
+ /// The block containing the transaction.
pub block_number: i64,
+ /// Transaction index in block.
+ ///
+ /// Absent for rejected transactions.
pub block_index: Option<i32>,
+ /// Raw transaction hash bytes.
pub tx_hash: Vec<u8>,
+ /// Success status.
pub success: bool,
+ /// Reason why transaction has been rejected.
+ ///
+ /// May only exists for unsuccessful transactions.
pub fail_reason: Option<String>,
+ /// The raw hash bytes of the corresponding "COMMIT" Ethereum operation for block with
+ /// given transaction.
+ ///
+ /// May only exists for successful transactions.
pub commit_tx_hash: Option<Vec<u8>>,
+ /// The raw hash bytes of the corresponding "VERIFY" Ethereum operation for block with
+ /// given transaction.
+ ///
+ /// May only exists for successful transactions.
pub verify_tx_hash: Option<Vec<u8>>,
}
