Overview
This node integrates with the Chainstream API to perform operations related to blockchain tokens and decentralized exchanges. Specifically, for the Token - Search operation, it allows users to search for tokens across specified blockchain networks (chains) using a query string. This is useful when you want to find tokens matching certain criteria or names on multiple blockchains simultaneously.
Practical examples include:
- Searching for tokens by name or symbol across several blockchains.
- Filtering tokens based on specific chains to narrow down results.
- Limiting the number of returned tokens to manage data volume.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication; currently supports "API Key". |
| Chains | Comma-separated list of blockchain networks to search tokens within. |
| Query | Search string used to filter tokens by name, symbol, or other attributes. |
| Limit | Maximum number of token results to return (between 1 and 250). |
Output
The output is a JSON array where each item represents a token matching the search criteria. Each token object contains details as provided by the Chainstream API, such as token identifiers, metadata, and associated chain information.
No binary data output is produced by this operation.
Dependencies
- Requires an active Chainstream API key credential for authentication.
- The node makes HTTP GET requests to the Chainstream API endpoints.
- No additional environment variables are needed beyond the API key configuration in n8n.
Troubleshooting
- Empty Results: If no tokens are returned, verify that the
Chainsproperty includes valid blockchain identifiers and that theQuerystring is correctly specified. - API Errors: Common errors may arise from invalid or missing API keys. Ensure the API key credential is correctly set up.
- Limit Exceeded: Setting the
Limitproperty above 250 will be rejected; keep it within the allowed range. - Network Issues: Connectivity problems can cause request failures; check network access to the Chainstream API endpoint.
Links and References
- Chainstream API Documentation (for detailed API usage and token data structure)
- n8n Documentation on Creating Custom Nodes