Back to Nodes

Chainstream

v0.0.92
Last updated Dec 8, 2025

Chainstream nodes for n8n workflows

6 Weekly Downloads
199 Monthly Downloads

Included Nodes

Chainstream
Chainstream Trigger

Description

Version: 0.0.91
Status: Submitted to Creator Portal, awaiting approval
Compatible with: n8n v1.0.0+ (tested on v1.113.0)

n8n-nodes-chainstream

Verified on MseeP

n8n-nodes-chainstream is an n8n community node that enables workflows to access real-time blockchain data via Chainstream. It supports token, wallet, and trade queries across multiple chains, and is designed for reuse, easy extension, and straightforward review.


๐Ÿš€ Installation

npm install n8n-nodes-chainstream
  • Restart n8n to load the new community node.
  • Add the Chainstream node to your workflow and configure credentials.

๐Ÿ” Credentials

Create a new credential in n8n:

  • API Client ID โ€” Chainstream public key
  • API Client Secret โ€” Chainstream private key

โš ๏ธ Do not commit real keys to your repository or exported workflows. Use placeholders in templates and bind credentials after import.


โšก Quickstart

  1. Go to Workflows โ†’ Import in n8n and upload /templates/workflow.json from this repo.

  2. Run:

    npm install n8n-nodes-chainstream
    
  3. Create and bind your Chainstream credential.

  4. Configure a trigger (e.g., Telegram, webhook, cron).

  5. Run the workflow and inspect the Chainstream node output.

Note: /templates/workflow.json uses credential placeholders. Replace them after import.


๐Ÿงช Example Node Configuration

Node: Chainstream

  • Credentials: ChainstreamApi
  • Resource: token
  • Operation: get
  • Chain ID: 137
  • Token Address: 0x1234...abcd
  • Options: (leave default)

Example output:

{
	"symbol": "ABC",
	"name": "Token ABC",
	"decimals": 18,
	"address": "0x..."
}

For batch runs, use expressions or upstream nodes to supply dynamic parameters.


๐Ÿ“š Supported Resources

Short summary of supported resources (full mapping in DEVELOPER.md):

  • token โ€” metadata, prices, holders, liquidity, security, mint/burn
  • trade โ€” listings, activities, leaderboards
  • wallet โ€” balance queries

๐Ÿง‘โ€๐Ÿ’ป Developer Notes

The execute method builds requests dynamically:

  1. Reads resource and operation per item
  2. Calls buildRequest() to map to { method, path, qs }
  3. Sends request via chainstreamApiRequest()
  4. Wraps response with constructExecutionMetaData()
  5. Handles errors via NodeOperationError, respects continueOnFail

Full handler mapping and endpoint patterns are in DEVELOPER.md.


๐Ÿ› ๏ธ Troubleshooting

  • Invalid resource/operation โ†’ check for typos
  • Bad parameters โ†’ test with single item before batching
  • API errors โ†’ inspect node output, verify credentials
  • Batch runs โ†’ enable Continue On Fail to capture per-item errors

Debug tips:

  • Use Executions view to inspect inputs/outputs
  • Add a Set node to test static parameters
  • Start with one item to simplify debugging

๐Ÿงช Contributing & CI

npm run build   # Compile TypeScript
npm run lint    # Run ESLint
npm run test    # Run Jest tests
  • prepublishOnly runs build + lint before publishing
  • Use GitHub Actions to automate lint/build/test
  • Keep TypeScript strict and ESLint green

To add a new operation:

  1. Add handler in buildRequest()
  2. Extract parameters via getNodeParameter(..., i)
  3. Return { method, path, qs? }
  4. Add tests and update DEVELOPER.md

๐Ÿ“ฆ Templates & Reviewer Guidance

  • /templates/workflow.json โ€” example workflow
  • /templates/README-template.md โ€” import instructions
  • If reviewers lack production keys, provide:
    • mock API
    • test account
    • recorded executions

When submitting:

  • Include repo link, npm package name/version
  • Provide install steps and sample outputs
  • Add screenshots if possible

๐Ÿ“ฌ Contact & Support


๐Ÿ“„ License

MIT