Embed Message
0 / 1000 bytes
Network fee~220 sats
Service fee2,000 sats
Recipient0 sats
Total~2,220 sats
API Reference
Public API
No authentication required. User funds the returned address to trigger the transaction.
POST
/api/message-request
Create an OP_RETURN request. Returns a payment address and required amount.
{
"message": "Hello Bitcoin!",
"targetAddress": "bc1q...", // optional
"feeRate": 2, // optional, default 2
"amountToSend": 0 // optional, sats to recipient
}
GET
/api/request-status/:requestId
Poll status of a request.
DELETE
/api/request/:requestId
Cancel a pending request.
Internal API
Requires X-API-Key header. Funded from the SatWire treasury — no user payment needed.
POST
/api/internal/embed
Immediately broadcasts an OP_RETURN tx from the treasury wallet.
{
"message": "Hello Bitcoin!",
"targetAddress": "bc1q...", // optional
"feeRate": 2, // optional
"amountToSend": 0 // optional
}
GET
/api/internal/treasury
Returns treasury address and current confirmed balance.