From 1f8dc565de1ca3cdc0701c5d8455401a9c9423b3 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 13 May 2024 07:23:06 -0400 Subject: [PATCH] Change schema for getaddressunspent --- src/coins/btc/rpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coins/btc/rpc.rs b/src/coins/btc/rpc.rs index 82da8c2..31762a5 100644 --- a/src/coins/btc/rpc.rs +++ b/src/coins/btc/rpc.rs @@ -91,7 +91,7 @@ impl BtcRpc { } pub async fn get_spendable(&self, address: &str) -> anyhow::Result> { - self.rpc_call("getaddressunspent", &[address]).await + self.rpc_call("getaddressunspent", &json!({"addresses": [address]})).await } pub async fn get_fee_per_byte(&self) -> anyhow::Result {