multiversx-sdk 0.16.1

SDK for interacting with the MultiversX blockchain
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

/// Defines a response from the node holding the transaction status.
///
/// Corresponds to [`ResponseTxStatus`](https://github.com/multiversx/mx-chain-proxy-go/blob/master/data/transaction.go) in mx-chain-proxy-go.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ResponseTxStatus {
    pub status: String,
}

/// Response envelope for the `/transaction/{hash}/status` endpoint.
/// The proxy constructs the data field inline; there is no named wrapper type in mx-chain-proxy-go.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct TransactionStatus {
    pub error: String,
    pub code: String,
    pub data: Option<ResponseTxStatus>,
}