TypeScript library for Bitcoin inscriptions and Ordinals/BRC-20 tooling, published as @bitflick/inscriptions on npm.
The library builds Taproot inscription funding, reveal, and refund transactions; supports parent inscription flows and batching helpers; includes network helpers for mainnet, testnet, testnet4, and regtest; and provides mempool.space broadcast/funding utilities.
npm download counts are useful package-usage evidence, not a unique-user count.
npm install @bitflick/inscriptionsimport {
broadcastTx,
bitcoinToSats,
generateFundableGenesisTransaction,
generatePrivKey,
generateRevealTransaction,
waitForInscriptionFunding,
} from "@bitflick/inscriptions";
const funding = await generateFundableGenesisTransaction({
address: "bc1p...",
inscriptions: [
{ content: Buffer.from("Hello, Ordinals"), mimeType: "text/plain" },
],
network: "mainnet",
privKey: generatePrivKey(),
feeRate: 10,
tip: 10_000,
padding: 546,
});
const [txid, vout] = await waitForInscriptionFunding(
funding.inscriptionUtxo,
funding.network
);
const revealTx = await generateRevealTransaction({
inputs: [
{
amount: Number(bitcoinToSats(funding.fundingAmountBtc)),
cblock: funding.initCBlock,
leaf: funding.initLeaf,
script: funding.initScript,
padding: funding.padding,
secKey: funding.secKey,
tapkey: funding.initTapKey,
txid,
vout,
inscriptions: funding.writableInscriptions,
rootTapKey: funding.initTapKey,
},
],
feeRateRange: [10, 25],
feeTarget: 10_000,
});
await broadcastTx(revealTx, funding.network);See the package README for a longer walkthrough: packages/inscriptions/README.md.
- Create fundable genesis transactions for one or more inscriptions.
- Generate reveal transactions from funded inscription UTXOs.
- Generate refund transactions for unspent inscription outputs.
- Work with parent inscription metadata and grouped funding inputs.
- Broadcast raw transactions and poll for inscription funding through mempool.space.
- Test flows against regtest using the checked-in integration test package.
The package exports transaction builders, network helpers, mempool helpers, grouping utilities, refund support, and shared TypeScript types from packages/inscriptions/src/index.ts.
Key entry points include:
generateFundableGenesisTransactiongenerateRevealTransactiongenerateRefundTransactionbroadcastTxwaitForInscriptionFundinggeneratePrivKeynetworkNamesToTapScriptName
- Package:
@bitflick/inscriptionson npm - Source: github.com/flick-ing/inscriptions
- Changelog:
packages/inscriptions/CHANGELOG.md - Releases are managed with Changesets.
- The repository includes unit tests plus a regtest-oriented integration package under
packages/test.
| Package | Description | NPM |
|---|---|---|
@bitflick/inscriptions |
A Node.js TypeScript library for creating Bitcoin inscriptions (BRC20) and interacting with ordinals. | |
@bitflick/tsconfig |
Shared TypeScript base configuration for all bitflick packages. |
Extend the shared TypeScript configuration in your tsconfig.json:
{
"extends": "@bitflick/tsconfig/tsconfig.base.json",
"compilerOptions": {
/* your overrides */
}
}Please see CONTRIBUTING.md for guidelines on contributing, reporting issues, and release process.
This project and its contributors abide by the Code of Conduct.
See SECURITY.md for reporting security vulnerabilities.
This project is licensed under the terms of the MIT License.