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

Designing a Bitcoin SEND Approval Workflow Outside the Language Model

permalink THAMER
#ai-agents#bitcoin#function-calling#security#wallet-ai-bitcoin

The statement “the user approved” generated by a model is not evidence of authorization. A trusted application must capture approval for the destination, network, amount, and any other relevant transaction conditions.

The engineering pattern

Use a proposed wallet_send_prepare operation in the agent layer to validate and present details. Require a local authenticated approval bound to a short-lived request identifier; revalidate before calling the Engine SEND endpoint.

Security and product boundaries

The prepare operation is a proposed tool-layer function, not an existing Engine endpoint. A preview is not a guaranteed final miner fee or signed transaction.

Practical validation

Test modified destination after approval, expired approvals, repeated confirmation, rejected requests, and unexpected changes in network fee estimates.

Why this matters for developers

A wallet tool should expose a predictable capability with explicit inputs, bounded outputs, and a clear failure mode. A model's ability to choose a tool does not confer permission to use that tool. Developers can reuse the approach for self-hosted applications without changing the tested Bitcoin Engine or its immutable per-wallet signed fee law.

Related reading

Go Function Calling for WALLET AI BITCOIN: The Deterministic Executor
https://thamer.org/learn/go-function-calling-wallet-ai-bitcoin-executor

Why AI Agents Should Call Go Functions Instead of Linux Shell Commands
https://thamer.org/learn/ai-agents-go-functions-vs-linux-shell

Can an AI model execute Bitcoin wallet functions directly?
https://thamer.org/ask/can-ai-model-execute-bitcoin-wallet-functions

Primary technical references

OpenAI function calling documentation:
https://platform.openai.com/docs/guides/function-calling

Go net/http documentation:
https://pkg.go.dev/net/http

OWASP AI Agent Security Cheat Sheet:
https://cheatsheetseries.owasp.org/cheatsheets/AI_Agent_Security_Cheat_Sheet.html

Model Context Protocol tools specification:
https://modelcontextprotocol.io/specification/2025-06-18/server/tools

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