1.0.4 β€’ Published 4 months ago

blockradar-sdk v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Blockradar Node.js SDK πŸš€

GitHub stars npm total downloads npm version License

A powerful SDK to interact with Blockradar APIs seamlessly.

🌟 Features

  • Wallet Management: Manage, and interact with wallets.
  • Asset Management: Retrieves the assets associated with a specific wallet, add assets to wallet and more.
  • Address Operations: Retrieve addresses associated with a specific wallet, withdrawal and more.
  • Transactions Management: Fetch transactions, initiate a sweep of assets and more.
  • AML(Anti Money Laundering) Module: Perform an anti-money laundering (AML) lookup for a given address and blockchain.
  • Auto Settlements Module: Add a beneficiary to a specific wallet, fetch beneficiaries, and more.
  • Asset Recovery Module: Calculates and returns the estimated network fee and more.
  • Payment Links Module: create a payment link, retrieve links, and more.
  • Custom Smart Contracts: Interacting with smart contracts on the blockchain.
  • Miscellaneous Module: Additional operations & utilities.
  • Easy-to-Use API: Designed for Node.js developers.
  • Type Safety: Fully typed methods for params & responses.

πŸ“¦ Installation

npm install blockradar-sdk

πŸš€ Quick Start

const BlockRadar = require("blockradar-sdk");

// πŸ‘‡πŸ½ for ES6 & TS

import BlockRadar from "blockradar-sdk";

// ----- Initialize the SDK ----------

const sdk = new BlockRadar(process.env.API_KEY, "<wallet_id>");

async function main() {
  const wallet = await sdk.wallet.retrieve();
  console.log("Wallet:", wallet);

  const balance = await sdk.address.getBalance({ addressId: "<addressid>" });
  console.log("Balance:", balance);
}

main();

πŸ“‚ Modules Overview

1️⃣ Wallet Module

Retrieve wallet information

(async () => {
  const wallet = await sdk.wallet.retrieve();
  console.log("Wallet: ", wallet);
})();

Update wallet information

(async () => {
  const wallet = await sdk.wallet.updateWallet({ name: "", description: "" });
  console.log("Update wallet: ", wallet);
})();

2️⃣ Asset Module

Retrieve assets associated with a specific wallet

(async () => {
  const assets = await sdk.asset.getWalletAssets();
  console.log("Wallet assets: ", assets);
})();

πŸ“Œ Development Progress

Features & TasksStatusNotes
BlockRadar API implementationβœ… DoneSupports creating and managing wallets, address operations, payment links, etc
README DocsπŸ”„ In ProgressSDK usage docs
TestsπŸ”„ In ProgressTests for each module
Types & interfacesπŸ”„ In ProgressTypes & interfaces for all function params & responses
Github workflow for npm package CD❌ Not DonePlanned for future updates

πŸ‘¨β€πŸ’» Contributing – We Welcome PRs! 🀝

We love contributions! If you have suggestions, bug reports, or improvements, feel free to open an issue or submit a pull request (PR).

πŸ“Œ How to Contribute

Follow these simple steps to fork, edit, and submit a PR:

1️⃣ Fork the Repository

Click the "Fork" button at the top right of the repo to create your own copy.

2️⃣ Clone Your Fork

Once forked, clone the repo to your local machine:

git clone https://github.com/your-username/repo-name.git
cd repo-name

3️⃣ Create a New Branch

Before making changes, create a new branch:

git checkout -b feature-or-bugfix-name

4️⃣ Make Your Changes & Commit

Edit the code, then commit your changes:

git add .
git commit -m "feat: Add awesome new feature"

5️⃣ Push to Your Fork

git push origin feature-or-bugfix-name

6️⃣ Open a Pull Request (PR)

  • Go to the original repo on GitHub.
  • Click "Compare & pull request".
  • Add a clear title and description of your changes.
  • Click "Create pull request"! πŸŽ‰

βœ… Contribution Guidelines

βœ” Keep PRs focused on one feature or fix.

βœ” Follow the project’s code style & linting rules.

βœ” Link any related issues in the PR description.

βœ” Be respectful & collaborative in discussions.


πŸ“œ License

MIT License


1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago