Pay a draft with Sparrow and a hardware wallet

A send21 draft is a set of payment instructions: who gets how much, on which network. You sign and send it from your own wallet; send21 never signs and never broadcasts. This guide pays a Bitcoin draft with Sparrow Wallet and a hardware wallet, so the keys never leave the device and send21 never sees them.

What you need

  • Sparrow Wallet with your hardware wallet set up as a wallet in it. Sparrow signs over USB with Trezor, Ledger, Coldcard, BitBox02, Blockstream Jade, KeepKey and OneKey, and airgapped with a microSD card (Coldcard, Keystone, Passport and others) or QR codes (Coldcard Q, Keystone, Passport, Jade, SeedSigner and others).
  • A send21 draft on Bitcoin, created in the app under Drafts or with POST /api/v1/drafts.

The simplest path: a single-output draft

The simplest draft for a hardware wallet has one recipient: the receiver, with the exact amount. In the app this is the default, Any wallet. Through the API, send "singleOutput": true. The send21 fee is then not part of the transaction: it is billed to your account and settled later in one payment under Fees.

curl -X POST https://send21.io/api/v1/drafts \
  -H "Authorization: Bearer s21_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "receiverAddress": "bc1q...",
    "network": "Mainnet",
    "paymentMethod": "MultiOutput",
    "singleOutput": true,
    "fiatCurrency": "EUR",
    "fiatAmount": 120.00,
    "memo": "Invoice 2026-118"
  }'

Get the address and the exact amount

Open the draft in the app, or fetch its transaction template. Each output has an address, an amount in sats (amountSats) and in BTC (amountBtc), and a purpose. A fiat-priced draft holds its rate for a limited time: if the template answers 409, re-quote the draft first (POST /api/v1/drafts/{id}/requote).

curl https://send21.io/api/v1/drafts/DRAFT_ID/tx-template \
  -H "Authorization: Bearer s21_YOUR_KEY"

Create the transaction in Sparrow

  • Open the Send tab of your hardware-wallet wallet in Sparrow.
  • In Pay to, paste the receiver address from the template. Enter the amount exactly as the template shows it, in the same unit (BTC or sats). Send the exact amount: send21 matches the payment by it.
  • Pick the network fee rate you want. The network fee is paid by your wallet on top; it is not part of the draft amount.
  • Click Create Transaction. In the transaction editor, select the outputs on the left and check the address and amount against the draft.
  • Click Finalize Transaction for Signing.

Sign on the hardware wallet

  • USB: click Sign, confirm on the device, then Broadcast Transaction.
  • microSD: click Save PSBT to the card, sign it on the device, then Load PSBT with the signed file and Broadcast Transaction.
  • QR: click Show QR, scan it with the device and sign, then Scan QR to read the signature back and Broadcast Transaction.
  • On the device screen, check that the address and the amount match the draft. The device screen is what counts, not the computer: malware can change what a computer shows, not what the hardware wallet shows.

Drafts with the fee as an output

A draft created with PSBT wallet in the app (or "singleOutput": false) carries the send21 fee as one or more extra outputs. All outputs must be paid in the same transaction. The template gives them as a list, as payToManyCsv (one address,amount line per output, the format of Electrum's Pay to many) and as a walletcreatefundedpsbt example for Bitcoin Core. If the fee outputs are missing from the transaction, the draft still confirms and the fee is billed to your account instead.

For a hardware wallet with one recipient per transaction, use a single-output draft.

Example: the pay-to-many CSV

The open-source sparrow-hardware-wallet example takes the multi-output path: a draft with paymentMethod MultiOutput and singleOutput: false, so the send21 fee is a separate output. Its script fetches GET /drafts/{id}/tx-template, prints every output so you can check the receiver and the fee address, writes payToManyCsv to a file and prints the walletRpcExample (walletcreatefundedpsbt for Bitcoin Core) when the API includes one.

Its README imports that CSV with the pay-to-many or CSV import of your wallet (in Sparrow, where it sits depends on your Sparrow version; Electrum has a similar pay-to-many import), then checks every address and amount, including the fee output, before signing on the hardware wallet and broadcasting.

cd examples/sparrow-hardware-wallet
export SEND21_API_KEY=s21_...
node fetch-tx-template.js --draft <draft-id> --out pay-to-many.csv

After you broadcast

send21 watches the chain. The draft turns to Seen when the transaction appears and to Confirmed after the required confirmations, with an email and a signed draft.confirmed webhook if you set one up. The draft PDF (in English or German) has the amount, the rate and the transaction for your records.

Questions

Does send21 ever see my keys or the signed transaction?

It never sees your keys. It only prepares the address and amount; Sparrow and your hardware wallet build, sign and broadcast the transaction. send21 then reads the public blockchain to confirm the payment.

What if I send a slightly different amount?

The payment is matched by its exact amount on the receiver address. A different amount shows on the draft as a payment that differs, for the receiver to accept or reject. Send exactly the amount in the template.

Related

Start building

Create a free account to get an API key, or try the whole flow first on test networks.

This page is also available as Markdown: /docs/hardware-wallets.md. Questions: integration@send21.io.