Using the latest commit, calls to BoltzApiClient::swap_status fail on mainnet.
Sample code:
use boltz_client::swaps::boltz::*;
fn main() {
let client = BoltzApiClient::new(BOLTZ_MAINNET_URL);
let id = "rkLrdN".to_string(); // Swap ID
let res = client.swap_status(SwapStatusRequest { id });
println!("Res: {res:?}");
}
The same snippet works well on testnet (with a testnet swap ID) :
use boltz_client::swaps::boltz::*;
fn main() {
let client = BoltzApiClient::new(BOLTZ_TESTNET_URL);
let id = "K3X3uk".to_string(); // Swap ID
let res = client.swap_status(SwapStatusRequest { id });
println!("Res: {res:?}");
}
Using the latest commit, calls to
BoltzApiClient::swap_status
fail on mainnet.Sample code:
results in
Cargo.toml
:The same snippet works well on testnet (with a testnet swap ID) :
returns