मुख्य सामग्री पर जाएं
नमूना ऐप्स पर वापस जाएँ

Bitcoin Transaction Report Application

The Bitcoin Transaction Report app uses Quicknode's Blockbook API to query the Bitcoin blockchain, filter transaction data, calculate key metrics, and display the results.

फ्रंटएंड फ्रेमवर्क/लाइब्रेरी:
प्रतिक्रिया
भाषा:
टाइपप्रति
बिल्ड टूल/डेवलपमेंट सर्वर:
Vite
नमूना ऐप पूर्वावलोकन

परिचय

This application is designed to fetch and analyze Bitcoin transactions associated with a specific address using Quicknode's Blockbook API. It provides users with detailed reports within a specified date range, offering insights into transaction history, balances after each transaction, and the USD value of Bitcoin movements.

For an in-depth walkthrough on how to fetch data and develop further functionalities, refer to our comprehensive guide or our script files.

तकनीकी स्टैक


  • Frontend Framework/Library: React
  • Language: TypeScript
  • Build Tool/Development Server: Vite

विशेषताएँ


  • Balance Calculation: Calculates the BTC balance before and after each transaction.
  • Transaction Direction: Identifies whether transactions are incoming or outgoing.
  • Confirmation Status: Determines whether transactions are confirmed.
  • USD Conversion: Computes the USD value of each transaction at the time it occurred.
  • Transaction Filtering: Excludes internal wallet transactions that are not relevant to the address in question.
  • Date Range Filtering: Generates reports for transactions within a specified date range.
  • Time Zone Selection: Performs date filtering according to the selected timezone.
  • CSV Support: Ability to export or copy result as CSV file.

शुरू करना

आवश्यक शर्तें

इस ऐप को चलाने के लिए आपको निम्नलिखित चीज़ों की आवश्यकता होगी:


  • Node.js installed on your system.
  • A Quicknode account with access to the paid Blockbook API. See the Blockbook product page for pricing details.
  • एक कोड एडिटर या एक आईईडी (उदाहरण के लिए, वीएस कोड )
  • TypeScript and ts-node

Run the commands below to install TypeScript and ts-node globally to have TypeScript available across all projects.

npm install -g typescript
npm install -g ts-node

स्थापना निर्भरताएँ


  1. रिपॉजिटरी को अपने स्थानीय कंप्यूटर पर क्लोन करें:
git clone https://github.com/quiknode-labs/qn-guide-examples.git

  1. प्रोजेक्ट डायरेक्टरी पर जाएं:
cd sample-dapps/bitcoin-transaction-report-generator

  1. आवश्यक निर्भरताओं को स्थापित करें:
NPM स्थापित करना

पर्यावरण चर सेट करना

नाम बदलें .env.example को .पर्यावरण and replace the YOUR_QUICKNODE_BITCOIN_ENDPOINT_URL placeholder with your Quicknode Bitcoin endpoint with Blockbook access.

VITE_QUICKNODE_ENDPOINT = "YOUR_QUICKNODE_BITCOIN_ENDPOINT_URL"

Please note that while we utilize dotenv for environment variable management, sensitive information like endpoints can still be visible on the frontend. This configuration is not recommended for production environments as-is.

एप्लिकेशन चलाना

डेवलपमेंट सर्वर चलाएँ:

npm run dev

Open http://localhost:5173/ in your browser to see the application.


ऐप का उपयोग करना


  1. Input a Bitcoin wallet address.
  2. (Optional) Select the date range and time zone.
  3. Press Generate.
  4. (Optional) Export or copy results as CSV.

The Bitcoin Transaction Report Generator queries the Bitcoin blockchain for a wallet’s transactions, filters the data, calculates key metrics, and displays the results.


पूर्व दर्शन

पूर्व दर्शन


निष्कर्ष

Quicknode's Blockbook API facilitates the creation of detailed Bitcoin transaction reports for developers and businesses alike. While this application covers the fundamentals, there's a vast scope for customization and extended functionalities. Whether for audit purposes, regulatory compliance, or market analysis, Blockbook streamlines the process of extracting blockchain data.

To discover more about how Quicknode assists auditing firms and individuals in extracting this type of data from blockchains, please contact us; we're eager to engage with you!

योगदान और प्रतिक्रिया
हमें आपकी प्रतिक्रिया सुनकर खुशी होगी और इस सैंपल ऐप में किसी भी तरह के योगदान का हम स्वागत करते हैं!
समस्याओं की रिपोर्ट करने या प्रतिक्रिया साझा करने के लिए, GitHub में एक समस्या खोलें। प्रश्न-मार्गदर्शिका-उदाहरण भंडार।
योगदान देने के लिए, इन चरणों का पालन करें:
  1. रिपॉजिटरी को फोर्क करें
  2. एक फीचर ब्रांच बनाएं:
    git checkout -b feature/amazing-feature
  3. अपने बदलावों को सेव करें:
    git commit -m "अद्भुत सुविधा जोड़ें"
  4. अपनी शाखा को आगे बढ़ाएं:
    git push origin feature/amazing-feature
  5. एक पुल रिक्वेस्ट खोलें।
और भी सैंपल ऐप्स देखें