diff --git a/cmd/siac/walletcmd.go b/cmd/siac/walletcmd.go index e6be3d0583..3f58fb12d8 100644 --- a/cmd/siac/walletcmd.go +++ b/cmd/siac/walletcmd.go @@ -17,7 +17,6 @@ import ( "github.com/NebulousLabs/Sia/encoding" "github.com/NebulousLabs/Sia/modules" "github.com/NebulousLabs/Sia/modules/wallet" - "github.com/NebulousLabs/Sia/node/api" "github.com/NebulousLabs/Sia/types" "github.com/NebulousLabs/entropy-mnemonics" ) @@ -495,9 +494,7 @@ func walletsigncmd(txnJSON, toSignJSON string) { } // try API first - params, _ := json.Marshal(api.WalletSignPOSTParams{Transaction: txn, ToSign: toSign}) - var wspr api.WalletSignPOSTResp - err = postResp("/wallet/sign", string(params), &wspr) + wspr, err := httpClient.WalletSignPost(txn, toSign) if err == nil { txn = wspr.Transaction } else {