Skip to content

Commit

Permalink
Change schema for getaddressunspent
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed May 13, 2024
1 parent 39a6955 commit 1f8dc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coins/btc/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl BtcRpc {
}

pub async fn get_spendable(&self, address: &str) -> anyhow::Result<Vec<UnspentInputResponse>> {
self.rpc_call("getaddressunspent", &[address]).await
self.rpc_call("getaddressunspent", &json!({"addresses": [address]})).await
}

pub async fn get_fee_per_byte(&self) -> anyhow::Result<u64> {
Expand Down

0 comments on commit 1f8dc56

Please sign in to comment.