DecentralChain (DCC) icon

DecentralChain (DCC)

Create, sign and broadcast DecentralChain transactions, plus query blockchain data

Overview

This node provides various interactions with the DecentralChain (DCC) blockchain, including creating and broadcasting transactions, querying account and token data, and utility functions. Specifically, the Utility - Validate Address operation validates whether a given DCC address is correctly formatted according to the blockchain's rules.

Use cases for the Validate Address operation include:

  • Ensuring user input addresses are valid before attempting transactions.
  • Filtering or verifying addresses in batch processing workflows.
  • Preventing errors caused by malformed addresses in automated blockchain operations.

Example: Before sending tokens to an address, you can use this node to confirm the address format is valid, reducing failed transaction attempts.

Properties

Name Meaning
Base URL The base URL of the DecentralChain node API endpoint to use if no credential is supplied. Default is https://nodes.decentralchain.io.
Address to Validate The DCC blockchain address string that you want to validate for correct format.

Output

The output JSON contains the response from the DecentralChain API validating the address. Typically, it includes fields indicating whether the address is valid or not, for example:

{
  "valid": true,
  "address": "some-address-string"
}

The exact structure depends on the API response but generally confirms validity status.

No binary data output is produced by this operation.

Dependencies

  • Requires access to a DecentralChain node API endpoint, either via:
    • An API key credential configured in n8n (optional).
    • Or the Base URL parameter specifying the node API endpoint.
  • Uses HTTP requests to communicate with the blockchain node.
  • No other external services or libraries are required specifically for address validation.

Troubleshooting

  • Common issues:

    • Invalid or unreachable Base URL: Ensure the node API endpoint URL is correct and accessible.
    • Network connectivity problems: Verify network access to the specified Base URL.
    • Malformed address input: Provide a properly formatted DCC address string.
  • Error messages:

    • If the API request fails, the node returns an error message describing the failure.
    • If the address is invalid, the API response will indicate so; handle accordingly in your workflow.
  • Resolution tips:

    • Double-check the Base URL and credentials.
    • Validate the address format manually if unsure.
    • Enable "Continue On Fail" in the node settings to handle errors gracefully in workflows.

Links and References

Discussion