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

Start with satoshis: integer amounts in WAB Engine

permalink THAMER
#bitcoin#curl#developer-tutorial#programming#satoshis#wab-engine

Why integer satoshis?

WAB Engine exposes amounts in whole satoshis. For example, 25,000 sat is entered as the integer 25000, not the decimal BTC value 0.00025000. This reduces floating-point ambiguity and makes balances easier to read in scripts.

Shell example

SAT=25000
printf 'Send amount: %s sat\n' "$SAT"

Use integer JSON values, never quoted decimal BTC strings, when the documented endpoint field expects satoshis. Check the installed Engine API contract for the exact field name.

Pitfall

Do not confuse the Engine's satoshi-first contract with Bitcoin Core RPC methods that commonly express BTC amounts as decimal numbers. Convert at integration boundaries and never assume the two APIs share units.

Related ASK questions

Does WAB Engine accept decimal BTC amounts for SEND?
https://thamer.org/ask/ask-wab-engine-send-decimal-btc

Why does WAB Engine use integer satoshis instead of decimal BTC?
https://thamer.org/ask/ask-wab-engine-why-integer-satoshis

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