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 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-centrifuge

v1.0.0

Published

n8n community nodes for Centrifuge blockchain - Real World Asset (RWA) tokenization platform built on Substrate/Polkadot

Downloads

93

Readme

n8n-nodes-centrifuge

[Velocity BPA Licensing Notice]

This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).

Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.

For licensing information, visit https://velobpa.com/licensing or contact [email protected].

A comprehensive n8n community node for the Centrifuge blockchain, providing Real World Asset (RWA) tokenization capabilities with 7 resource categories and 15+ operations for pool management, investments, loans, and document handling.

npm version License: BSL 1.1

Features

Centrifuge Node (Action Node)

  • Account Operations: Get balance, transfer CFG tokens
  • Pool Operations: Query all pools, get pool details and metadata
  • Tranche Operations: Get tranches, token prices
  • Investment Operations: Get orders, positions
  • Loan Operations: Query loans, get loan details
  • Document Operations: Upload to IPFS, retrieve from IPFS
  • Utility Operations: Chain info, validate address, convert address formats

Centrifuge Trigger Node

Real-time blockchain event monitoring via WebSocket:

  • Pool events (creation, updates, NAV changes, epochs)
  • Investment events (orders, collections)
  • Loan events (creation, borrowing, repayment)
  • Account events (transfers, balance changes)
  • Epoch lifecycle events
  • Governance events (proposals, voting)

Installation

Community Nodes (Recommended)

  1. Open your n8n instance
  2. Go to SettingsCommunity Nodes
  3. Click Install a community node
  4. Enter: n8n-nodes-centrifuge
  5. Click Install

Manual Installation

# Navigate to your n8n custom extensions folder
cd ~/.n8n/custom

# Install the package
npm install n8n-nodes-centrifuge

# Restart n8n

Development Installation

# Clone the repository
git clone https://github.com/Velocity-BPA/n8n-nodes-centrifuge.git
cd n8n-nodes-centrifuge

# Install dependencies
npm install

# Build the project
npm run build

# Create symlink to n8n custom nodes directory
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-centrifuge

# Restart n8n
n8n start

Credentials Setup

Centrifuge Network Credentials

Required for all blockchain operations:

| Field | Description | |-------|-------------| | Network | Select network (Mainnet, Testnet, Altair, Development, Custom) | | Authentication Type | Seed Phrase, Private Key, or Read-only | | Seed Phrase | 12 or 24 word mnemonic (for Seed Phrase auth) | | Private Key | Hex-encoded private key (for Private Key auth) | | Key Type | SR25519 (default) or ED25519 |

Centrifuge API Credentials (Optional)

For off-chain data access:

| Field | Description | |-------|-------------| | Environment | Production, Staging, or Custom | | API Key | Your Centrifuge API key | | SubQuery Endpoint | GraphQL endpoint for advanced queries |

IPFS Storage Credentials (Optional)

For document operations:

| Field | Description | |-------|-------------| | Provider | Pinata, Infura, Web3.Storage, or Custom | | Gateway URL | IPFS gateway for retrieval | | API Key/Token | Provider-specific authentication |

Resources & Operations

Account Resource

| Operation | Description | |-----------|-------------| | Get Balance | Retrieve CFG token balance for an address | | Transfer | Send CFG tokens to another address |

Pool Resource

| Operation | Description | |-----------|-------------| | Get All | List all pools on the network | | Get Pool | Get detailed information about a specific pool |

Tranche Resource

| Operation | Description | |-----------|-------------| | Get All | List all tranches for a pool |

Investment Resource

| Operation | Description | |-----------|-------------| | Get Orders | Get investment orders for a pool | | Get Positions | Get investment positions |

Loan Resource

| Operation | Description | |-----------|-------------| | Get All | List all loans in a pool | | Get Loan | Get detailed loan information |

Document Resource

| Operation | Description | |-----------|-------------| | Upload to IPFS | Upload document content to IPFS | | Get from IPFS | Retrieve document from IPFS by CID |

Utility Resource

| Operation | Description | |-----------|-------------| | Get Chain Info | Get blockchain information | | Validate Address | Check if an address is valid | | Convert Address | Convert address between formats |

Trigger Node

The Centrifuge Trigger node monitors blockchain events in real-time.

Event Categories

  • Pool: Pool creation, updates, epoch execution
  • Investment: Order submissions, collections
  • Loan: Creation, borrowing, repayment events
  • Account: Balance changes, transfers
  • Epoch: Epoch lifecycle events
  • Governance: Proposals, voting
  • Document: Document anchoring events
  • All: Monitor all event types

Filters

  • Pool IDs: Filter events for specific pools
  • Accounts: Filter events for specific accounts
  • Tranche IDs: Filter by tranche
  • Min Amount: Filter by minimum transaction amount

Usage Examples

Get Account Balance

{
  "resource": "account",
  "operation": "getBalance",
  "address": "4dTeMxuPJCK7zQGhFcgCivSJqBs9Hp2xrUPKuD9gy3X4FNQU"
}

Query All Pools

{
  "resource": "pool",
  "operation": "getAll"
}

Upload Document to IPFS

{
  "resource": "document",
  "operation": "uploadToIpfs",
  "documentContent": "{\"title\": \"Invoice #123\", \"amount\": 5000}",
  "documentName": "invoice-123.json"
}

Centrifuge Concepts

Pools

Pools are the core primitive in Centrifuge, representing a collection of real-world assets that have been tokenized. Each pool has tranches with different risk/return profiles.

Tranches

Tranches represent different risk layers within a pool. Senior tranches have priority for returns but lower yields, while junior tranches take more risk for higher potential returns.

Epochs

Epochs are time periods during which investment orders are collected and then executed at the end of the epoch. This ensures fair pricing for all participants.

NAV (Net Asset Value)

The NAV represents the total value of assets in a pool minus liabilities. It's calculated on-chain and used for tranche token pricing.

Networks

| Network | Chain ID | SS58 Prefix | Native Token | |---------|----------|-------------|--------------| | Centrifuge Mainnet | Polkadot Parachain #2031 | 36 | CFG | | Altair | Kusama Parachain #2088 | 136 | AIR | | Testnet | Rococo | 36 | CFG | | Development | Local | 42 | CFG |

Error Handling

The node includes comprehensive error handling:

  • Connection Errors: Automatic retry with exponential backoff
  • Transaction Failures: Detailed error messages with failure reasons
  • Validation Errors: Input validation before blockchain operations
  • Rate Limiting: Respects API rate limits

Security Best Practices

  1. Seed Phrases: Never share or expose seed phrases. Use environment variables in production.
  2. Private Keys: Store securely using n8n's credential encryption.
  3. Read-Only Access: Use read-only mode when possible for queries.
  4. Proxy Accounts: Consider using proxy accounts for limited permissions.
  5. Network Selection: Always verify you're connected to the intended network.

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

# Run linting
npm run lint

# Fix linting issues
npm run lint:fix

# Watch mode for development
npm run dev

Author

Velocity BPA

Licensing

This n8n community node is licensed under the Business Source License 1.1.

Free Use

Permitted for personal, educational, research, and internal business use.

Commercial Use

Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.

For licensing inquiries: [email protected]

See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Please ensure your code passes linting and tests before submitting.

Support

Acknowledgments

  • Centrifuge - Real World Asset tokenization platform
  • n8n - Workflow automation platform
  • Polkadot - Substrate blockchain framework