THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

How Do I Fix jq: Command Not Found When Using WAB Wallet CURL Commands?

permalink THAMER
#bitcoin-wallet#curl#linux#troubleshooting#ubuntu#wab-engine

Short answer

Install jq on the Linux server before running WAB wallet command examples that pipe JSON responses into it:

sudo apt update
sudo apt install -y jq

Check the installation:

jq --version

What does the error look like?

A fresh server may display:

-bash: jq: command not found
curl: (23) Failure writing output to destination, passed 8975 returned 0

The first line means the shell cannot find the jq executable. jq is a command-line JSON processor used by the WAB CURL examples to format responses and build JSON request bodies.

Why can CURL also report error 23?

curl error 23 means it could not write its output to the destination. In a pipeline such as curl ... | jq ., the downstream command may exit immediately when jq is unavailable. That can leave CURL with nowhere to write its response. This is a plausible explanation for the paired errors, not proof that every CURL error 23 is caused by missing jq.

How do I verify the fix?

command -v jq
jq -n '{ok:true}'

Expected output from the second command:

{"ok":true}

If the self-hosted WAB Engine is installed, you can also test a read-only endpoint:

export BASE_URL="http://127.0.0.1:7070"
curl -sS "$BASE_URL/api/v5/btc/health" | jq .

This checks JSON formatting and endpoint reachability; it does not establish that Bitcoin Mainnet or Testnet has finished synchronizing.

Does missing jq mean wallet creation failed?

Not necessarily. The error only establishes that a local command dependency is missing. Inspect the server response and repeat a safe read-only check after installing jq. Do not assume that a wallet creation request failed or blindly repeat an operation that may already have succeeded.

Wallet creation is separate from the Engine and is available through https://thamer.org/create. The Engine's local command reference is /etc/btc/curl.txt; it is documentation, not an executable script. Never expose BTC KEY or BTC SECRET when troubleshooting.

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects