
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
Build and sign Bitcoin Taproot transactions.
npm install txbuilder
import { buildTx } from 'txbuilder';
const result = await buildTx({
privateKey: '0123456789abcdef...', // 64-char hex
publicKey: 'fedcba9876543210...', // 64-char hex (x-only)
txid: 'abc123...', // Input txid
vout: 0, // Input index
inputAmount: 100000, // Input satoshis
outputs: [
{ pubkey: 'dest123...', amount: 99000 }
]
});
console.log(result.hex); // Raw transaction hex
console.log(result.txid); // Transaction ID
console.log(result.address); // Sender's Taproot address
# Single output
txbuilder <privateKey> <publicKey> <txid> <vout> <inputAmount> <destPubkey> <destAmount>
# Multiple outputs
txbuilder <privkey> <pubkey> <txid> 0 100000 <dest1> 49000 <dest2> 49000
# Show help
txbuilder --help
Build and sign a Taproot transaction.
Options:
privateKey (string) - 64-char hex private key for signingpublicKey (string) - 64-char hex public key (x-only)txid (string) - Input transaction IDvout (number) - Input transaction output index (default: 0)inputAmount (number) - Input amount in satoshisoutputs (array) - Array of {pubkey, amount} objectsnetwork (string) - Network: mainnet, testnet, regtest (default: mainnet)verify (boolean) - Verify signature after signing (default: true)Returns: Promise<{hex, txid, address, txdata}>
Derive x-only public key from private key.
Generate Taproot (P2TR) address from public key.
MIT
FAQs
Build and sign Bitcoin Taproot transactions
We found that btctx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.