multiversx_sdk/data/transaction/transaction_process_status.rs
1use serde::{Deserialize, Serialize};
2
3/// Holds the process status of a transaction.
4///
5/// Corresponds to [`ProcessStatusResponse`](https://github.com/multiversx/mx-chain-proxy-go/blob/master/data/transaction.go) in mx-chain-proxy-go.
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct ProcessStatusResponse {
8 pub reason: String,
9 pub status: String,
10}
11
12/// Response envelope for the `/transaction/{hash}/process-status` endpoint.
13/// The proxy constructs the data field inline; there is no named wrapper type in mx-chain-proxy-go.
14#[derive(Debug, Clone, Serialize, Deserialize)]
15pub struct TransactionProcessStatus {
16 pub error: String,
17 pub code: String,
18 pub data: Option<ProcessStatusResponse>,
19}