Bitcoin Transaction Evidence and AI Agent Responses
Research scope
This is Stage 01, study 06, of Bitcoin for AI Agents. It is an educational reference design, not a live-tested integration or production SDK. The WAB Engine remains independent; wallet creation belongs to the Factory.
Architecture and rationale
Model-generated prose cannot establish settlement. Distinguish a proposed payment, an accepted broadcast, mempool observation and confirmation. Reorganizations can invalidate earlier confirmation observations.
Reference implementation
The Go example formats a deliberately normalized observation rather than pretending to know the exact engine response schema. The caller must map verified engine data into this structure.
1package architecture
2
3import "fmt"
4
5type Observation struct {
6 Known bool
7 InMempool bool
8 Confirmations int
9}
10
11func Describe(o Observation) string {
12 if !o.Known || o.Confirmations < 0 { return "Unknown outcome" }
13 if o.Confirmations > 0 { return fmt.Sprintf("Observed confirmations: %d", o.Confirmations) }
14 if o.InMempool { return "Seen in mempool; not confirmed" }
15 return "No current confirmation evidence"
16}Security and limitations
A missing transaction is not proof that no payment occurred. A transaction identifier alone does not establish the recipient amount. Confirm the intended output and current chain state before declaring settlement.
Applying the pattern
Keep the model-facing interface separate from trusted execution. Review the current engine API before mapping fields or response data. Use a dedicated test wallet and explicit network configuration for any future live evaluation. The example does not change the engine, its signed fee law, or Bitcoin Core.
