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

Bitcoin Donation SDK Architecture

permalink THAMER
#bitcoin#commerce#sdk#software-engineering#wab

Research status: Theoretical SDK design. Examples are illustrative and have not been built or tested against the live engine.

Capability boundary

A donation SDK needs receive address generation and optional payment monitoring, not SEND. Keep campaign identifiers, public descriptions and donor preferences in the application. A campaign can use a dedicated address or a new address per intent, subject to documented engine behavior. Shared addresses reduce attribution precision. An anonymous transfer cannot establish donor identity or consent to publish a name.

Conceptual Go interface

type DonationIntent struct {
    CampaignID string
    Address string
    Network string
    ExpectedSat *int64
}
type DonationService interface {
    CreateIntent(campaignID string) (DonationIntent, error)
    Reconcile(campaignID string) error
}

An optional amount belongs to the application model; do not send an invented optional field to WATCH. For open-amount donations, use RECEIVE and authorized transaction evidence unless the documented WATCH contract supports that mode. Generate a Bitcoin URI locally using the correct network and exact decimal BTC representation when an amount is specified. Do not expose BTC KEY in the QR code or public HTML.

Reporting and privacy

Separate observed, confirmed and reversed contributions. Count outputs rather than balance differences; wallet change and unrelated transfers are not donations. Keep campaign totals in integer satoshis and distinguish gross receipts from subsequent spending costs. Public reporting should disclose only consented information and avoid linking donor records to addresses unnecessarily. A receive-only SDK interface does not make an unrestricted underlying credential receive-only: isolate it behind a server-side allowlist.

Acceptance plan

Test amountless donations, repeated observations, multiple outputs, incorrect network and expired intents. In Testnet, send two distinct payments to a campaign and verify attribution and deduplication. Test that public callers cannot invoke SEND or read unrelated wallet activity. A donation receipt is not automatically a tax receipt.

Primary reference

https://thamer.org/api

Related reading

https://thamer.org/docs/wab-sdk-api-engine-application-boundaries
https://thamer.org/docs/wab-sdk-authentication-credential-management
https://thamer.org/docs/wab-sdk-watch-payment-monitoring
https://thamer.org/docs/wab-sdk-invoice-abstractions
https://thamer.org/docs/wab-sdk-confirmation-settlement-states
https://thamer.org/docs/wab-sdk-payment-reconciliation
https://thamer.org/docs/wab-sdk-immutable-fee-policy

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