smplx-sdk 0.0.5

Simplex sdk to simplify the development with simplicity
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Errors that can occur when calling JSON-RPC methods on a Bitcoin Core or Elements node.
#[derive(thiserror::Error, Debug)]
pub enum RpcError {
    /// Transparent wrapper mapping underlying errors generated directly from the Core/Elements RPC node client.
    #[error(transparent)]
    ElementsRpcError(#[from] electrsd::bitcoind::bitcoincore_rpc::Error),

    /// Error indicating the requested Elements RPC call succeeded but the resulting JSON data payload did not map to the expected type or structure.
    #[error("Elements RPC returned an unexpected value for call {0}")]
    ElementsRpcUnexpectedReturn(String),

    /// Error thrown when an invalid hex string fails to parse back into an exact byte array sequence.
    #[error("Failed to decode hex value to array, {0}")]
    BitcoinHashesHex(#[from] bitcoin_hashes::hex::HexToArrayError),
}