npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

n8n-nodes-dcc

v0.3.2

Published

n8n community nodes for interacting with DecentralChain (DCC) node REST API (accounts, tokens, transactions, utilities).

Downloads

842

Readme

Banner image

DCC Node Api Connector for N8N

Production readiness: early 0.x; expect breaking changes until 1.0. Follow semver guidance below.

The DCC Node REST API offers the ability to read blockchain data such as account data, token data, active leases, blocks, transactions, and other data including feature activation status and block reward voting status. It also provides transaction management functions like broadcasting signed transactions, pre-validating and checking transaction status. Additionally, it offers utilities for generating addresses from public keys, validating addresses, generating random seeds, calculating hashes, and more.

With this N8N you will be able to connect the DCC node api to your workflows, automate blockchain tasks or trigger wallet creations and more.

Installation

Install the community package in your n8n instance (requires enabling Community Nodes):

npm install n8n-nodes-dcc

Restart n8n after installation so it loads the new node bundle.

Enabling Community Nodes (if not already)

  1. In n8n UI go to Settings > Community Nodes.
  2. Enable the feature (confirm the security notice).
  3. Add this package name n8n-nodes-dcc if using the in-app installer or install via CLI as above.

Updating

npm update n8n-nodes-dcc

Check changelog and commit history for potential breaking changes (0.x minor bumps may be breaking until 1.0.0).

Semantic Versioning

This project follows Semantic Versioning principles; however while in 0.x the API surface (parameters, field names) may change in minor releases. Once 1.0.0 is reached:

  • MAJOR: Breaking changes to node description/fields/behavior.
  • MINOR: Backwards-compatible features (new resources / operations / optional fields).
  • PATCH: Backwards-compatible bug fixes and internal maintenance.

Pin exact versions in mission‑critical environments to avoid unexpected changes.

Releasing Manually

  1. Update CHANGELOG.md with changes.
  2. Bump version in package.json following SemVer guidance.
  3. Commit: chore(release): vX.Y.Z.
  4. Tag: git tag -a vX.Y.Z -m "vX.Y.Z" then git push --tags.
  5. Release workflow (after added) publishes on matching tag.

See detailed steps in CONTRIBUTING.md.

Features / Operations

Resources supported:

  • Account
    • Get Account: Retrieve balance & basic account info
  • Token
    • Get Token: Retrieve token / asset metadata
  • Transaction
    • List Transactions: Paginated list for an address (limit & offset)
    • Broadcast Transaction: Broadcast a signed transaction JSON
  • Utility
    • Generate Address: Derive address from a supplied public key
    • Validate Address: Check if an address is valid in the network
  • Matcher
  • Get Order Books/Book/Status/Restrictions
  • Asset Rates (get/upsert/delete)
  • Place Orders (limit/market) and Cancel (by pair or all)

Credentials

The node can operate with or without credentials.

  • Create a credential of type DccApi to centrally manage the Node Base URL and/or include a bearer token for authenticated endpoints (future expansion).
  • Create a credential of type DccMatcherApi to centrally manage the Matcher Base URL and API token. This is separate from the node API and is used only for the Matcher resource.

Credential fields:

| Field | Description | |-------|-------------| | Base URL | Optional override of default public node endpoint | | Token | Bearer token (if your node requires auth) |

Matcher credential (DccMatcherApi) fields:

| Field | Description | |-------|-------------| | Base URL | Matcher endpoint, e.g. https://mainnet-matcher.decentralchain.io | | Token | Bearer token used by your matcher instance (if required) |

If no credential is supplied, the node uses the Base URL parameter on the node itself.

Usage Examples

1. Get Account

  1. Add the DCC node.
  2. Select Resource = Account, Operation = Get Account.
  3. Enter the account Address.
  4. Execute to receive balances and other basic data.

2. List Transactions

  1. Resource = Transaction, Operation = List Transactions.
  2. Provide Owner Address, adjust Limit & Offset as needed.
  3. Execute to return an array of transactions.

3. Broadcast Transaction

  1. Resource = Transaction, Operation = Broadcast Transaction.
  2. Paste the signed transaction JSON into the Signed Transaction JSON field.
  3. Execute; response includes success status or validation errors.

3b. Transfer with Attachment

  1. Resource = Transaction, Operation = Transfer.
  2. Fill Recipient Address, Amount, and optionally Asset ID.
  3. In the Attachment section, choose Mode:
  • Plain Text: enter human-readable text. The node encodes it as UTF‑8 and then Base58. The decoded byte length must be <= 140 bytes.
  • Base58: paste a Base58 string. The node will validate and enforce the 140‑byte limit after decoding.
  1. Execute. If the attachment is too large or invalid Base58, you’ll get a clear validation error with the byte count.

4. Generate Address

  1. Resource = Utility, Operation = Generate Address.
  2. Provide a Public Key.
  3. Execute to get derived address.

5. Validate Address

6. Matcher: Get Order Book

  1. Resource = Matcher, Operation = Get Order Book.
  2. Fill Amount Asset and Price Asset (use DCC for the native asset).
  3. Optionally set Depth.
  4. Execute to get bids/asks and market info.

7. Matcher: Place Limit Order (user-friendly form)

  1. Resource = Matcher, Operation = Place Limit Order.
  2. Provide Amount Asset, Price Asset, Order Type (buy/sell), Amount (long units), Price (long units), Fee, Fee Asset, Sender Public Key, Expiration, Version.
  3. Execute; the node builds the order JSON for you and sends it to the matcher.
  4. If you prefer to paste raw JSON, enable "Use Raw Order JSON" and supply the full order object.

8. Matcher: Cancel Order(s)

  1. Resource = Matcher, Operation = Cancel Order (by Pair) or Cancel All Orders.
  2. By default, use the form fields: Sender Address, Order ID (optional to cancel all in pair), Timestamp (0 to auto), Signature (optional if your matcher requires it).
  3. For advanced cases, enable "Use Raw Cancel JSON" and paste the exact body expected by the matcher.

Notes:

  • Matcher Base URL will be taken from the DccMatcherApi credential when provided; otherwise the node uses the "Matcher Base URL" field on the node.
  • Amount/Price are expected in long units (smallest units) as per matcher conventions.
  1. Resource = Utility, Operation = Validate Address.
  2. Provide the address string.
  3. Execute to get validation result.

Attachments: Details and Limits

  • DCC transfer and mass transfer attachments are binary payloads represented as Base58 strings on-chain.
  • This node provides a user-friendly Attachment section:
    • Mode = Plain Text: we encode your text as UTF‑8, then Base58, and validate size.
    • Mode = Base58: we validate your Base58 string and its decoded size.
  • Size limit: up to 140 bytes AFTER decoding (UTF‑8 bytes). Longer payloads are rejected with an error indicating the size.
  • Examples:
    • Text: "hello" → 5 bytes → OK
    • Emoji: "😀" → UTF‑8 is multi‑byte; ensure total bytes ≤ 140
    • Base58: paste only if you already have the encoded form; otherwise use Plain Text mode.

Development / Build

Install dependencies and build:

npm install
npm run build
npm run check:dist

Lint & format:

npm run lint
npm run lintfix
npm run format

Project Health

Prerequisites

You need the following installed on your development machine:

  • Node API Key, you can get this by running your own node or renting an API from someone else in the network.

More information

Refer to our documentation to get more background on how the DCC node works: DecentralChain Documentation

Contributing

Issues & PRs welcome. Please open security-related issues with the SECURITY prefix (see Security Policy).

License

MIT