Skip to content

Commit

Permalink
rust: set Blockstream as the exchange rate provider
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 authored and LeoComandini committed Oct 4, 2022
1 parent 4b3909f commit 8f06e81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions subprojects/gdk_rust/gdk_electrum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1108,8 +1108,9 @@ impl ElectrumSession {
}

pub fn get_available_currencies(&self) -> Result<Value, Error> {
Ok(json!({ "all": [ "USD" ], "per_exchange": { "BITFINEX": [ "USD" ] } }))
// TODO implement
// TODO: use blockstream endpoint listing all available currencies when
// it'll be available.
Ok(json!({ "all": [ "USD" ], "per_exchange": { "Blockstream": [ "USD" ] } }))
}

pub fn get_unspent_outputs(&self, opt: &GetUnspentOpt) -> Result<GetUnspentOutputs, Error> {
Expand Down

0 comments on commit 8f06e81

Please sign in to comment.