0.1.4 โ€ข Published 1 year ago

@bellswall/ord-tool v0.1.4

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

๐ŸŽฎ Bellscoin Ordinals Inscription Tool ๐Ÿ‰

Welcome, brave TypeScript wizards ๐Ÿง™โ€โ™‚๏ธ, to the realm of Bellscoin Ordinals! Craft your inscriptions with the magic of taproot (P2TR) transactions.

๐Ÿš€ Features

  • โœจ Craft Taproot Scripts: Forge inscriptions for Ordinals.
  • ๐Ÿฐ Transaction Kingdom: Create one mighty Commit Transaction and numerous Reveal Transactions.

๐Ÿ“ฆ Installation

Now, install the spellbook from npm:

npm install @bellswall/ord-tool

๐Ÿ› ๏ธ Usage

How to Cast:

import { OrdTool } from '@bellswall/ord-tool'

Spell Workflow:

  1. ๐Ÿ”ฎ Commit Spell: Conjure a transaction that commits to your inscription.
  2. ๐Ÿ–‹๏ธ Sign with Your Quill: Use your wallet or code to sign this magical scroll.
  3. ๐ŸŒ Broadcast to the World: Send your signed commit transaction via the Mempool API.
  4. ๐Ÿ•Š๏ธ Reveal the Magic: After your commit, reveal your inscriptions to the blockchain.

Example Grimoire:

import { OrdTool, makeKeypairFromWIF } from '@bellswall/ord-tool'
// Configure your magical network and inscription runes
const network = 'mainnet'; // or 'mainnet' for the brave
const config: InscriptionConfig = {
  // Inscribe your config details here...
};

const tool = new OrdTool(config);

// Secure your private key in an enchanted .env file
// WIF=your_private_key_in_WIF_format
const wif = process.env.WIF;
const signer = makeKeypairFromWIF(wif, network);

// Generate and sign the commit transaction spell
let unsignCommitPsbt = await tool.makeUnsignedCommitPsbt();
// Sign with your magical powers or wallet
// ...

// Broadcast your spell and await its manifestation
const commitTransactionId = await tool.postCommitTransaction(signedCommitPsbt);
console.log("Commit transaction ID:", commitTransactionId);
await tool.waitUntilTransactionConfirm(commitTransactionId);

// Reveal your inscriptions to the world
await tool.postRevealTransactions();

๐Ÿ” Security and Best Practices

  • ๐Ÿ”’ Key Guardianship: Never expose your magical keys in code. Use enchanted hardware wallets or trusted spell-signing services.
  • ๐Ÿงช Test in the Alchemist's Lab: Always test on testnet before unleashing on mainnet.
  • ๐Ÿ‘€ Confirm and Verify: Double-check your spells and wait for their confirmation.

๐Ÿค Contributions

Feel like adding more spells or enhancing our grimoire? Contributions are welcome! Follow the ancient coding scrolls and document your magic.

Follow our journey on X ๐Ÿฆ

Let's make blockchain inscriptions as fun as a barrel of monkeys ๐Ÿ’!

This version includes emojis to make the README more engaging and reflects the installation from npm, targeting TypeScript developers in modern web development environments.
0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago