/// Parses response for Indy request for getting UTXO list.
///
/// # Arguments
/// * `payment_method`
/// * `resp_json` - response for Indy request for getting UTXO list
/// * `timeout` - the maximum time this function waits for a response
///   Note: this param will be used to determine payment_method
///
/// # Returns
/// * `utxo_json` - parsed (payment method and node version agnostic) utxo info as json:
/// # Examples:
///   [{
///      input: <str>, // UTXO input
///      amount: <int>, // amount of tokens in this input
///      extra: <str>, // optional data from payment transaction
///   }]
Parses response for Indy request for getting UTXO list.
Parses response for Indy request for getting UTXO list .
pub fn parse_get_payment_sources_response_timeout(payment_method: &str, resp_json: &str, timeout: Duration) -> Result<String, ErrorCode> {
        let (receiver, command_handle, cb) = ClosureHandler::cb_ec_string();
        let err = Payment::_parse_get_payment_sources_response(command_handle, payment_method, resp_json, cb);
        ResultHandler::one_timeout(err, receiver, timeout)
    }
pub fn parse_get_payment_sources_response_timeout ( payment_method : & str , resp_json : & str , timeout : Duration ) -> Result < String , ErrorCode > { let ( receiver , command_handle , cb ) = ClosureHandler :: cb_ec_string ( ) ; let err = Payment :: _parse_get_payment_sources_response ( command_handle , payment_method , resp_json , cb ) ; ResultHandler :: one_timeout ( err , receiver , timeout ) }
Parses response for Indy request for getting UTXO list.
Parses response for Indy request for getting UTXO list .
`utxo_json` - parsed (payment method and node version agnostic) utxo info as json.
` utxo_json ` - parsed ( payment method and node version agnostic ) utxo info as json .
payment_method
&str
<not_specific>
resp_json
&str
<not_specific>
timeout
Duration
<not_specific>
examples:
[{
input: , // UTXO input
amount: , // amount of tokens in this input
extra: , // optional data from payment transaction
}]
[ { input : // UTXO input amount : // amount of tokens in this input extra : // optional data from payment transaction } ]