suchwow
v0.0.2
Published
Client for SuchWow.Info API Service
Readme
SuchWow 🐩🐶🚀🌕🐕🐾🐾
SuchWow is a TypeScript module that brings the joy and excitement of cryptocurrencies like Dogecoin and Bitcoin to your projects. With SuchWow, you can easily integrate blockchain-related functionality into your applications with a touch of fun and flair.
Features
🐶 Dogecoin Schema
SuchWow provides TypeScript interfaces for handling Dogecoin transactions, blocks, and reorganizations.
RawTransaction: Represents a raw Dogecoin transaction.Block: Represents a Dogecoin block with its hash, height, and transaction IDs.Reorg: Represents a reorganization event in the Dogecoin blockchain.
🪙 Bitcoin Schema
SuchWow also supports Bitcoin, with TypeScript interfaces for Bitcoin transactions, blocks, and reorganizations.
RawTransaction: Represents a raw Bitcoin transaction.Block: Represents a Bitcoin block with its hash, height, and transaction IDs.Reorg: Represents a reorganization event in the Bitcoin blockchain.
🌠 Runes 🐕DOG Extension
Furthermore, SuchWow extends its support to Dog·Go·To·The·Moon, a memecoin on Bitcoin.
RawTransaction: Represents a raw Runes transaction.Block: Represents a Runes block with its hash, height, and transaction IDs.
Event Handling 🐾
You can listen for new mempool transactions, new blocks, and reorganizations using intuitive callback functions provided by SuchWow.
import { events } from 'suchwow';
events.dogecoin.onNewMempoolTransaction(async (transaction) => {
// Handle new Dogecoin mempool transaction
});
events.dogecoin.onNewBlock(async (block) => {
// Handle new Dogecoin block
});
events.dogecoin.onReorg(async (reorg) => {
// Handle Dogecoin reorg event
});
events.bitcoin.onNewMempoolTransaction(async (transaction) => {
// Handle new Bitcoin mempool transaction
});
events.bitcoin.runes.dog.onNewMempoolTransaction(async (transaction) => {
// Handle new Dog·Go·To·The·Moon transaction
});
// More event handling for Bitcoin and RunesQuery Functions 🐺
Retrieve transactions and blocks effortlessly with query functions provided by SuchWow.
import { queries } from 'suchwow';
queries.dogecoin.getTransaction('txid').then((transaction) => {
console.log(transaction.txhex);
});
queries.bitcoin.getTransaction('txid').then((transaction) => {
console.log(transaction.txhex);
});
queries.bitcoin.runes.dog.getTransaction('txid').then((transaction) => {
console.log(transaction.txhex);
});
// More querying for Bitcoin and RunesUsage 🐶
Install SuchWow from npm:
npm install suchwowThen, import and use it in your TypeScript project:
import { events, queries } from 'suchwow';
// Use event handling and query functions hereSuch Community, Much Support 🦮
Join the SuchWow community to share your cryptocurrency-related projects, ask questions, and spread the love for digital currencies!
Such License 🐾🐾
SuchWow is licensed under the MIT License. See the LICENSE file for details.
Such Contributors 🐕🦺
- Your Name - Initial work - Your GitHub Profile
Let's spread the joy of cryptocurrencies with SuchWow! 🚀🌕
