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

reply_formatter_test.go

TEXT FILE

570 B · Public source code for developers, search crawlers and AI agents

Download / RawBack to folder
Go · 19 lines
1package examples
2
3import (
4	"strings"
5	"testing"
6)
7
8func TestFormatSendReply(t *testing.T) {
9	data := `{"ok":true,"result":{"requested_sat":10000,"recipient_sat":9000,"change_sat":58000,"net":"test","txid":"4b862b31b15133f463d9e56111ce9879362ffefbab20ee23b518170fe1e26d95"}}`
10	out, err := FormatSendReply([]byte(data))
11	if err != nil {
12		t.Fatal(err)
13	}
14	for _, s := range []string{"10000", "9000", "58000", "4b862b31b15133f463d9e56111ce9879362ffefbab20ee23b518170fe1e26d95", "not been verified"} {
15		if !strings.Contains(out, s) {
16			t.Fatalf("missing %s", s)
17		}
18	}
19}
Read-only source · Select a line number to link directly · Raw download above

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